:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

#navbar {
    background-color: var(--primary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.auth-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#book-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative; /* Added for positioning the close button */
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 4px;
    color: white;
    z-index: 2000;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

.book-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.book-status {
    font-weight: bold;
}

.available {
    color: green;
}

.unavailable {
    color: red;
}

.book-actions {
    margin-top: 10px;
}

.borrow-btn, .return-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.borrow-btn {
    background-color: #4CAF50;
    color: white;
}

.return-btn {
    background-color: #2196F3;
    color: white;
}

.borrowed-notice {
    color: #888;
    font-style: italic;
}

.book-author, .book-language {
    color: #555;
    margin: 5px 0;
}

.return-date {
    color: #e67e22;
    font-weight: bold;
}

/* Add these styles */
#account-modal .modal-content {
    max-width: 450px;
}

#profile-form-container, #password-form-container {
    margin-bottom: 30px;
}

#profile-form-container h4, #password-form-container h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#myAccountBtn {
    background-color: #4267B2;
    color: white;
}

#verification-status-container {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.verified {
    color: #28a745;
    font-weight: bold;
}

.not-verified {
    color: #dc3545;
    font-weight: bold;
}

#resend-verification {
    margin-top: 5px;
    background-color: #6c757d;
    font-size: 0.9em;
    padding: 5px 10px;
}