/* Main styles for Bird Sightings Database */
body { 
    font-family: Arial, sans-serif; 
    margin: 20px; 
    line-height: 1.6;
}

h1, h2 { 
    color: #4863A0; 
    margin-bottom: 20px;
}

/* Form styles */
.form-container {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.form-group {
    margin-right: 20px;
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], 
input[type="date"], 
input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button styles */
button, .button {
    background-color: #4863A0;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

button:hover, .button:hover {
    background-color: #737CA9;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.primary-button {
    background-color: #4863A0;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.secondary-button {
    background-color: #4863A0;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.export-button {
    background-color: #4863A0;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.primary-button:hover {
    background-color: #53597a;
}

.secondary-button:hover {
    background-color: #53597a;
}

.export-button:hover {
    background-color: #53597a;
}

/* Table styles */
table { 
    border-collapse: collapse; 
    width: 100%; 
    margin-top: 20px;
}

th, td { 
    border: 1px solid #ddd; 
    padding: 10px; 
    text-align: left; 
}

th { 
    background-color: #f2f2f2; 
    position: sticky;
    top: 0;
}

tr:nth-child(even) { 
    background-color: #f9f9f9; 
}

tr:hover {
    background-color: #f1f1f1;
}

/* Results section styles */
.results-heading {
    margin-top: 30px;
    border-bottom: 2px solid #4863A0;
    padding-bottom: 10px;
}

.no-results {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 4px;
    color: #856404;
}

.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Message styles */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Admin panel styles */
.admin-panel {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #f8f9fa;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Navigation */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Tab styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.tab.active {
    background-color: #4863A0;
    color: white;
    border-color: #4863A0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form validation */
.required:after {
    content: " *";
    color: red;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .form-group {
        flex-basis: 100%;
        margin-right: 0;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .button-row button {
        margin-bottom: 10px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-actions button {
        margin-top: 10px;
    }
}
