:root {
    --primary-color: #00349c; /* Cool blue for a refreshing look */
    --secondary-color: #6B7280; /* Vibrant orange for a lively appearance */
    --tertiary-color: #6B7280; /* Vibrant orange for a lively appearance */ /* Light gray for a clean background */
    --card-background: linear-gradient(135deg, #00000022, #00000044); /* Subtle gradient for cards */
    --title-color: #00349c; /* Light gray for a clean background */
    --text-color: #393b41; /* Dark gray for text */
    --shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    --hover-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Slightly stronger shadow for hover */
    --inner-shadow: inset 0 0 20px rgba(0, 0, 0, 0.469); /* Inner shadow for depth */
    --book-shadow: -0.4em 0.5em 0.25em -0.2em rgba(0,0,0,0.3),
                  -0.5em 0.6em 0.3em -0.2em rgba(0,0,0,0.2),
                  0.1em 0.6em 0.4em rgba(0,0,0,0.15);
    --spine-shadow: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.118) 0.65%,
        rgba(255, 255, 255, 0.2) 1.53%,
        rgba(255, 255, 255, 0.1) 2.38%,
        rgba(0, 0, 0, 0.05) 3.26%,
        rgba(255, 255, 255, 0.14) 5.68%,
        rgba(244, 244, 244, 0) 6.96%
    );
}

/* General button styles */
button, .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;

    border-radius: 6px;
    background-color: #e8eaed;
    color: var(--text-color);
    border: none;
    padding: 1em 1.2em;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}

button:hover,
.btn:hover {
    color: var(--primary-color);
    background-color: #e0e2e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    background-color: var(--primary-color);
}

body {
    font-family: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../images/bg_wood.jpg');
    background-size: auto;
    background-repeat: repeat;
    margin: 0;
    min-height: 100vh;
}

/* Modal open state */
html.modal-open {
    overflow: hidden !important;
    height: 100%;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    padding-right: 15px; /* Prevent content shift when scrollbar disappears */
    top: 0;
    left: 0;
}

/* Remove dialog styles */
dialog {
    display: none;
}

/* Common slide-in menu styles */
/* Overlay for dimming background when menu is open */
.slide-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 899;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.slide-menu-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.slide-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgb(208, 230, 241);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 1em;
    z-index: 900;
    overflow-y: auto;
    transition: 0.3s ease;
    max-width: 100%;
}

.blurred-background {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    transition: 0.3s ease;
}

.slide-menu.show {
    right: 0;
}

.slide-menu.show .blurred-background {
    right: 0;
}

.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
    margin-bottom: 1em;
}

.slide-menu-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.slide-menu-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Filter menu specific styles */
.filter-section {
    margin-bottom: 24px;
}

.filter-section h3 {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 600;
    padding-left: 8px;
}

.sort-options {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 15px;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sort-btn, .direction-btn, .tag-btn {
    text-align: left;
    padding: 10px 16px;
    border-radius: 4px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid rgb(185, 185, 185);
    justify-content: flex-start;
}

.sort-btn:hover {
    background-color: #f0f0f0;
    transform: translateX(4px);
}

.sort-btn.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.sort-btn.active:before {
    opacity: 1;
}

.sort-direction {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.direction-btn {
    justify-content: flex-start;
    font-size: 14px;
}

.direction-btn:hover {
    background-color: #f0f0f0;
    transform: translateX(4px);
}

.direction-btn.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.direction-btn i {
    width: 16px;
}

.category-list, .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-btn, .tag-btn, .format-btn {
    font-size: 13px;
    background: #f0f0f0;
    border-radius: 15px;
    padding: 6px 12px;
    width: auto;
}

.category-btn:hover, .tag-btn:hover, .format-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.category-btn.active, .tag-btn.active, .format-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Category display and selector styles */
.category-display-wrapper {
    width: 100%;
}

.category-display {
    margin-bottom: 8px;
}

.category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.category-badge.empty {
    background: #e0e0e0;
    color: #666;
}

.category-selector {
    margin-top: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.category-option-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-weight: 500;
}

.category-option-btn:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
    transform: translateY(-1px);
}

.category-option-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-new-input-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.category-new-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.category-new-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Ensure the filter button stays on top */
.filter-btn {
    position: relative;
    z-index: 901;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.container {
    max-width: 1400px;
    margin: 1em auto;
    padding-top: 2em;
    display: flex;
}
header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: .5em 1em;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: -2px -2px 0 white, 2px -2px 0 white, -2px 2px 0 white, 2px 2px 0 white;
}

.search-bar {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    max-width: 800px;
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

#searchButton {
    background-color: var(--primary-color);
    color: white;
}

#uploadButton {
    background-color: var(--secondary-color);
    color: white;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2em 3em;
    padding: 0 1em;
    position: relative;
    perspective: 1000px;
    flex: 1;
}

.book-card {
    background-color: var(--card-background);
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--book-shadow);
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--spine-shadow);
    pointer-events: none;
}

.book-card:hover,
.book-card.selected {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: var(--hover-shadow);
    z-index: 10;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    z-index: 10;
    padding: 15px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    height: auto;
    opacity: 0;
    box-shadow: 0 -10px 10px -10px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

.book-card:hover .card-info,
.book-card.selected .card-info {
    opacity: 1;
    transition-duration: 0.3s;
}

.card-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--primary-color);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info .author {
    font-size: 11px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.book-format-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20;
}

.book-card:hover .book-format-badge,
.book-card.selected .book-format-badge {
    opacity: 1;
    transform: translateY(0);
}

.book-meta {
    font-size: 12px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.book-actions {
    display: flex;
    margin-top: auto;
    gap: 5px;
}

@keyframes open {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes close {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    margin: 0 auto;
}

/* When modal is open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 15px; /* Prevent content shift when scrollbar disappears */
}

html.modal-open {
    overflow: hidden !important;
    height: 100%;    /* Add this to prevent scrolling */
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 2em;
    align-items: stretch;
    flex-grow: 1;
    border-top: 1px solid #eee;
    padding-top: 1em;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

/* Form styles */

.form-group input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    height: 40px;
    line-height: 20px;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background: #f8f8f8;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0px;
    align-items: center;
    flex-grow: 1;
}

/* Upload form styles */
.upload-form-container {
    width: 100%;
}

.form-fields {
    flex: 1;
}

/* Delete modal styles */

.submit-btn {
    background-color: red;
    color: white;
}

.submit-btn:disabled {
    background-color: #e8eaed;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

#deleteForm label {
    color: gray;
    font-size: 12px;
}

#deleteForm .form-actions {
    display: flex;
    margin-top:0;
    padding-top:0;
}

@media (max-width: 600px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 375px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.analyze-btn {
    background-color: #6b46c1;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.analyze-btn:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.analyze-btn i {
    font-size: 1.1em;
}

.analysis-progress {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.analysis-progress.show {
    opacity: 1;
    transform: translateY(0);
}

.analysis-progress h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.progress-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.progress-step {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    opacity: 0.5;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.progress-step button,
.progress-step .btn {
    margin-top: 1em;
}

.progress-step.active {
    opacity: 1;
    transform: translateX(0);
}

.progress-step.done {
    opacity: 1;
    transform: translateX(0);
}

.progress-step.done .fa-check {
    transform: scale(1.2);
}

.progress-step i.fa-check {
    color: #4CAF50;
}

.progress-step i.fa-times {
    color: #dc3545;
}

.progress-step.error {
    color: #dc3545;
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

.upload-zone {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone i {
    font-size: 48px;
    color: #666;
    margin-bottom: 15px;
}

.upload-zone h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.upload-zone p {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
}

.upload-button input[type="file"] {
    display: none;
}

.upload-hint {
    color: #999 !important;
    font-size: 12px !important;
}

/* Update the form-group styles to remove the previous file input styling */
.form-group input[type="file"] {
    display: none;
}

.upload-zone.drag-highlight {
    border-color: var(--primary-color);
    background: #e8f0fe;
    transform: scale(1.01);
}

.step-details {
    display: block;
    margin-top: 12px;
    padding: 15px;
    font-size: 0.9em;
    line-height: 1.4;
    flex-grow: 1;
    background: white;
}

.step-details p {
    margin: 4px 0;
    color: var(--text-color);
    width: 100%;
}

.step-details strong {
    color: var(--text-muted);
    margin-right: 8px;
    font-weight: normal;
}

.step-details img {
    margin-top: 8px;
    display: block;
}

.metadata-fields {
    transition: opacity 0.3s ease;
}

.metadata-edit, .cover-edit, .step-details {
    margin-top: 10px;
    border-radius: 6px;
    width: 100%;
}

.metadata-edit .form-group {
    position: relative;
    margin-bottom: 10px;
}

.metadata-edit input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 3px;
}

.metadata-edit input:disabled {
    background: #f8f9fa;
    color: #666;
}

.cover-edit .cover-preview {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cover-preview img {
    max-height: 300px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.cover-edit {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

.form-actions {
    display: none;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-actions .save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.cancel-btn {
    background: red;
    border: 1px solid var(--border-color);
    color: white;
}

.cancel-btn:hover {
    background: rgb(172, 0, 0);
    border: 1px solid var(--border-color);
    color: white;
}

.save-btn {
    background: rgb(0, 172, 0);
    border: 1px solid var(--border-color);
    color: white;
}

.save-btn:hover {
    background: rgb(1, 131, 1);
    border: 1px solid var(--border-color);
    color: white;
}


.book-cover {
    overflow: hidden;
    border-radius: 4px;
    
    position: relative;
    margin: 0 auto;

    display:flex;
    flex-direction: column;
    align-items: flex-start;

    border-radius: 6px;
}

.book-cover img {
    object-fit: cover;
    width: 200px;
    height: 300px;

    margin-bottom: 3px;
}

.alert-success {
    position: fixed;
    top: -100px;
    right: 20px;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    z-index: 3000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-out;
    transform: translateY(-100%);
}

.alert-success.show {
    transform: translateY(120px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
    margin-bottom: 1em;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.description-content {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    min-height: 100px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.description-content .error {
    color: #dc3545;
    font-style: italic;
}

.generate-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.generate-btn:hover {
    background-color: #5a6268;
}

.generate-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

.generate-btn i {
    font-size: 14px;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.summary-content {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    min-height: 100px;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
}

.summary-content:empty::before {
    content: 'No summary available';
    color: #6c757d;
    font-style: italic;
}

.upload-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.upload-btn.active:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2.5em;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2em;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin: 0;
}

.login-modal-content .form-group {
    margin-bottom: 1.5em;
}

.login-modal-content .form-group label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--text-color);
    font-weight: 500;
}

.login-modal-content .form-group input {
    width: 100%;
    padding: 0.8em 1em;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-modal-content .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 52, 156, 0.1);
}

.login-submit-btn {
    width: 100%;
    padding: 1em;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1em;
}

.login-submit-btn:hover {
    background: #002d7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 52, 156, 0.3);
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0.8em;
    border-radius: 6px;
    margin-bottom: 1em;
    text-align: center;
    font-size: 0.9em;
}

.logout-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0.8em 1em;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}