/* assets/css/style.css - Styles complets de l'application */

/* ========================================================================== */
/* VARIABLES CSS - Thèmes                                                     */
/* ========================================================================== */

:root {
    /* Couleurs principales */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    
    /* Couleurs de texte et fond */
    --text-color: #333;
    --text-muted: #6c757d;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    
    /* Ombres */
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.3);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Thème Classique Clair (par défaut) */
[data-theme="classic-light"] {
    --primary-color: #8b4513;
    --secondary-color: #cd853f;
    --text-color: #2c1810;
    --bg-color: #f4e8d8;
    --card-bg: #faf6f0;
    --border-color: #d4b896;
}

/* Thème Classique Sombre */
[data-theme="classic-dark"] {
    --primary-color: #d4a574;
    --secondary-color: #f4a460;
    --text-color: #e8dcc8;
    --text-muted: #a89984;
    --bg-color: #1a1410;
    --card-bg: #2c2418;
    --border-color: #4a3c28;
    --shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Thème Moderne Clair */
[data-theme="modern-light"] {
    --primary-color: #2563eb;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --text-color: #1f2937;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
}

/* Thème Moderne Sombre */
[data-theme="modern-dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #22d3ee;
    --success-color: #34d399;
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ========================================================================== */
/* RESET ET BASE                                                              */
/* ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================================================== */
/* CONTENEUR                                                                  */
/* ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================================================== */
/* HEADER                                                                     */
/* ========================================================================== */

.main-header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.user-btn:hover {
    background-color: var(--bg-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    margin-top: 10px;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--bg-color);
}

/* ========================================================================== */
/* BOUTONS                                                                    */
/* ========================================================================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-clear {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.btn-clear:hover {
    color: var(--error-color);
    background-color: rgba(231, 76, 60, 0.1);
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--bg-color);
}

/* ========================================================================== */
/* PAGE DE CONNEXION                                                          */
/* ========================================================================== */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

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

/* ========================================================================== */
/* FORMULAIRES                                                                */
/* ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group .optional {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 0.9em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ========================================================================== */
/* ALERTES                                                                    */
/* ========================================================================== */

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ========================================================================== */
/* DASHBOARD                                                                  */
/* ========================================================================== */

.dashboard {
    max-width: 900px;
    margin: 0 auto;
}

/* Message de bienvenue */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-banner h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.welcome-banner p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Section de recherche */
.search-section {
    margin-bottom: 30px;
}

.search-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.search-help {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: var(--card-bg);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.search-help i {
    color: var(--warning-color);
}

/* Actions rapides */
.quick-actions {
    margin: 30px 0;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Statistiques */
.stats-section {
    margin-top: 40px;
}

.stats-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 2.5em;
    color: var(--secondary-color);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--text-muted);
    font-size: 0.9em;
}

.stat-loading {
    color: var(--text-muted);
}

/* ========================================================================== */
/* RÉSULTATS DE RECHERCHE                                                     */
/* ========================================================================== */

.search-results {
    margin-top: 30px;
}

.results-count {
    background-color: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
}

.no-results i {
    font-size: 4em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.no-results .help-text {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
    text-align: left;
    display: inline-block;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-result {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.book-result:hover {
    box-shadow: var(--shadow-hover);
}

.book-result.already-added {
    opacity: 0.8;
    border: 2px solid var(--success-color);
}

.book-cover {
    flex-shrink: 0;
}

.book-cover img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.book-info {
    flex: 1;
}

.book-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.book-info .author,
.book-info .isbn,
.book-info .date,
.book-info .pages {
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.book-info .description {
    margin-top: 12px;
    line-height: 1.6;
    color: var(--text-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-info {
    background-color: var(--info-color);
    color: white;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

/* ========================================================================== */
/* MODAL                                                                      */
/* ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1999;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 50px auto;
    border-radius: 12px;
    max-width: 600px;
    position: relative;
    z-index: 2001;
    box-shadow: var(--shadow-strong);
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--error-color);
    background-color: rgba(231, 76, 60, 0.1);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Contenu du modal */
.book-add-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.book-preview {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.book-preview img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.book-preview-info {
    flex: 1;
}

.book-preview-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.book-preview-info .author,
.book-preview-info .isbn,
.book-preview-info p {
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.book-summary {
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.book-summary h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-summary p {
    line-height: 1.8;
    color: var(--text-color);
}

/* Détails du livre dans modal */
.book-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.book-header {
    display: flex;
    gap: 30px;
}

.book-header img {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.book-meta {
    flex: 1;
}

.book-meta h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.book-meta .author {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.book-meta p {
    margin-bottom: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-description {
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.book-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-description p {
    line-height: 1.8;
    color: var(--text-color);
}

.book-links {
    text-align: center;
}

/* ========================================================================== */
/* ÉDITEUR DE TEXTE RICHE                                                     */
/* ========================================================================== */

.rich-editor {
    min-height: 200px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    background-color: var(--card-bg);
    color: var(--text-color);
    overflow-y: auto;
    max-height: 400px;
}

.rich-editor:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.rich-editor:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
}

.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.format-btn {
    padding: 6px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.format-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.separator {
    margin: 0 5px;
    color: var(--border-color);
}

/* ========================================================================== */
/* NOTIFICATIONS                                                              */
/* ========================================================================== */

.notification {
    position: fixed;
    top: -100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    box-shadow: var(--shadow-strong);
    transition: top 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    top: 20px;
}

.notification i {
    font-size: 1.5em;
}

.notification span {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.notification-success {
    background-color: var(--success-color);
    color: white;
}

.notification-error {
    background-color: var(--error-color);
    color: white;
}

.notification-warning {
    background-color: var(--warning-color);
    color: white;
}

.notification-info {
    background-color: var(--info-color);
    color: white;
}

/* ========================================================================== */
/* LISTE DES LIVRES                                                           */
/* ========================================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.books-table {
    width: 100%;
    border-collapse: collapse;
}

.books-table thead {
    background-color: var(--primary-color);
    color: white;
}

.books-table th,
.books-table td {
    padding: 15px;
    text-align: left;
}

.books-table th {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.books-table th.sortable:hover {
    background-color: rgba(0,0,0,0.1);
}

.books-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.books-table tbody tr:hover {
    background-color: var(--bg-color);
}

.book-cover-thumb {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.title-cell strong {
    color: var(--primary-color);
}

.actions-cell {
    display: flex;
    gap: 5px;
}

.table-info {
    padding: 15px;
    text-align: right;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ========================================================================== */
/* PROFIL                                                                     */
/* ========================================================================== */

.profile-page h1 {
    margin-bottom: 30px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-sections {
    display: grid;
    gap: 30px;
}

.profile-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.profile-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ========================================================================== */
/* MDS                                                                 */
/* ========================================================================== */

.book-section {
    margin-top: 1.4em;
}




/* ========================================================================== */
/* RESPONSIVE                                                                 */
/* ========================================================================== */

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
    }
    
    .main-nav.show {
        display: flex;
    }
    
    .book-result {
        flex-direction: column;
    }
    
    .book-header {
        flex-direction: column;
        align-items: center;
    }
    
    .book-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* ========================================================================== */
/* IMPRESSION                                                                 */
/* ========================================================================== */

@media print {
    .main-header,
    .page-header .actions,
    .btn,
    .actions-cell {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .book-detail,
    .table-container {
        box-shadow: none;
    }
}