:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --secondary: #0f172a;
    --secondary-hover: #1e293b;
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: #f3f4f6;
    color: var(--secondary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary);
    color: white;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.sidebar-title span {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-400);
    display: block;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-item {
    margin-bottom: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    color: var(--gray-300);
    font-weight: 500;
    font-size: 14px;
}

.sidebar-link:hover, .sidebar-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.sidebar-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-400);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    max-width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Header */
.main-header {
    height: var(--header-height);
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray-600);
    display: none;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.user-role {
    font-size: 11px;
    color: var(--gray-500);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

/* Page Container */
.page-container {
    padding: 30px;
    flex-grow: 1;
}

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

.page-header > div:first-child {    
    min-width: 0;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.page-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.total-books-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.total-books-badge > i {
    font-size: 28px;
    opacity: 0.9;
}

.total-books-badge > div {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.total-books-number {
    font-size: 26px;
    font-weight: 800;
}

.total-books-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.programa-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 999px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    border: 1px solid var(--primary);
}

.programa-count-badge i {
    font-size: 16px;
}

.programa-count-badge strong {
    font-size: 18px;
    font-weight: 800;
}

/* Grid Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.card-stat {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.card-stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.card-stat-info p {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 4px;
}

.card-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.card-stat-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.card-stat-icon.success { background-color: var(--success-light); color: var(--success); }
.card-stat-icon.danger { background-color: var(--danger-light); color: var(--danger); }
.card-stat-icon.warning { background-color: var(--warning-light); color: var(--warning); }

/* Table Section */
.card-table {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.table-search-box {
    position: relative;
    width: 300px;
}

.table-search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.table-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.table-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table-custom th {
    background-color: var(--gray-100);
    padding: 16px 24px;
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.table-custom td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table-custom tr:hover {
    background-color: rgba(248, 250, 252, 0.6);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active { background-color: var(--success-light); color: var(--success); }
.badge-inactive { background-color: var(--danger-light); color: var(--danger); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: var(--secondary); color: white; }
.btn-secondary:hover { background-color: var(--secondary-hover); }
.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 8px; }

.catalog-grid:not(.list-view) .book-card .book-actions {
    flex-direction: column;
    gap: 6px;
}

.catalog-grid:not(.list-view) .book-card .btn {
    width: 100%;
    padding: 7px 8px;
    font-size: 11px;
    gap: 6px;
    border-radius: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
}

.catalog-grid:not(.list-view) .book-card .btn i {
    font-size: 10px;
    flex-shrink: 0;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-500);
}

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

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Public Catalog Layout */
.catalog-section {
    padding: 40px 0;
}

.catalog-filters {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

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

.results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background-color: var(--primary-light);
    color: var(--secondary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
}

.results-info strong {
    color: var(--primary);
    font-weight: 700;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Catalog view toolbar */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.catalog-results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 14px;
}

.catalog-results-count strong {
    color: var(--primary);
    font-weight: 700;
}

.catalog-toolbar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.view-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.view-toggle-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

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

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

/* List view */
.catalog-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.catalog-grid.list-view .book-card {
    flex-direction: row;
}

.catalog-grid.list-view .book-cover-container {
    width: 150px;
    height: auto;
    align-self: stretch;
    flex-shrink: 0;
}

.catalog-grid.list-view .book-card:hover .book-cover {
    transform: none;
}

.catalog-grid.list-view .book-info {
    padding: 16px 20px;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
}

.catalog-grid.list-view .book-info > div:first-child {
    flex: 1;
    justify-content: center;
}

.catalog-grid.list-view .book-info > div:last-child {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--gray-200);
    padding-left: 20px;
}

.catalog-grid.list-view .book-edition-year {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-top: none;
    padding-top: 0;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 10px;
}

.catalog-grid.list-view .book-actions {
    flex-wrap: wrap;
}

.catalog-grid.list-view .book-actions .btn:first-child {
    flex: 1 1 100%;
    white-space: nowrap;
}

.catalog-grid.list-view .book-actions .btn:not(:first-child) {
    flex: 1;
}

.catalog-grid.list-view .book-meta {
    justify-content: flex-start;
    gap: 16px;
}

/* User Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: white;
    border-radius: var(--border-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
    background-color: white;
}

.profile-header-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-header-info p {
    font-size: 13px;
    opacity: 0.92;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.profile-card {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.profile-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-upload-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-upload-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-300);
    flex-shrink: 0;
    background-color: var(--gray-100);
}

.book-card {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.book-cover-container {
    height: 280px;
    position: relative;
    background-color: var(--gray-100);
    overflow: hidden;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.book-meta {
    font-size: 11px;
    color: var(--gray-400);
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.book-summary {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.book-edition-year {
    font-size: 11px;
    color: var(--gray-400);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--gray-100);
    padding-top: 8px;
    margin-bottom: 10px;
}

.book-actions {
    display: flex;
    gap: 8px;
}

.book-actions .btn {
    flex: 1;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 12px 14px;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.pagination-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

.pagination-jump-label {
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}

.pagination-jump-input {
    width: 64px;
    height: 34px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary);
    background-color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.pagination-jump-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background-color: white;
}

.pagination-jump-input::-webkit-outer-spin-button,
.pagination-jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination-jump-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.pagination-jump-total {
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}

.pagination-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    background-color: var(--gray-100);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
    user-select: none;
}

.pagination-item a:hover:not(.active) {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.pagination-item.active a {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.pagination-item.disabled a {
    opacity: 0.45;
    pointer-events: none;
    background-color: var(--gray-100);
    color: var(--gray-400);
    box-shadow: none;
}

.pagination-item.pagination-arrow a {
    background-color: white;
    border: 1px solid var(--gray-200);
    font-size: 12px;
}

.pagination-item.pagination-arrow a:hover:not(.disabled) {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.pagination-item.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 38px;
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-400);
    padding: 0 4px;
}

/* Login Page style */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../uploads/covers/bg-instituto2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(79, 70, 229, 0.6) 100%);
    z-index: 1;
}

.login-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    z-index: 2;
    position: relative;
}

.login-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}

.login-header p {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Excel upload zone */
.excel-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--gray-100);
    position: relative;
}

.excel-upload-zone:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.excel-upload-zone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.excel-upload-icon {
    font-size: 36px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.show {
        left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .catalog-grid.list-view .book-card {
        flex-direction: column;
    }
    .catalog-grid.list-view .book-cover-container {
        width: 100%;
        height: 200px;
    }
    .catalog-grid.list-view .book-info {
        flex-direction: column;
    }
    .catalog-grid.list-view .book-info > div:last-child {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray-200);
        padding-left: 0;
        padding-top: 16px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    .login-card {
        padding: 24px;
    }
}
