:root {
    --primary-color: #3498db;
    --secondary-color: #f1c40f;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/library-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.book-cover {
    height: 200px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    padding: 1.5rem;
}

.book-info h3, .book-info h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.book-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.book-meta {
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.book-location {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #2980b9;
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #333;
}

.btn-secondary:hover {
    background-color: #f39c12;
    color: #333;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Book Detail */
.book-detail-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.book-cover-large {
    flex: 0 0 300px;
}

.book-cover-large img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.book-status {
    margin: 1.5rem 0;
    font-weight: bold;
}

.status-disponible {
    color: var(--success-color);
}

.status-prestado {
    color: var(--warning-color);
}

.status-reservado {
    color: var(--info-color);
}

.status-mantenimiento {
    color: var(--danger-color);
}

.loan-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.loan-info h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.book-description {
    margin-bottom: 3rem;
}

.book-description h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Search Section */
.search-section {
    padding: 3rem 0;
}

.search-form {
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-bar button {
    padding: 0 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #2980b9;
}

.search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.login-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
}

.login-form h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.remember input {
    width: auto;
}

.login-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Admin Dashboard */
.admin-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    padding: 1.5rem 0;
}

.admin-sidebar nav ul {
    list-style: none;
}

.admin-sidebar nav li {
    margin-bottom: 0.5rem;
}

.admin-sidebar nav a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-sidebar nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar nav a.active {
    background-color: var(--primary-color);
}

.admin-sidebar nav i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background-color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.bg-blue {
    background-color: var(--primary-color);
}

.bg-green {
    background-color: var(--success-color);
}

.bg-orange {
    background-color: var(--warning-color);
}

.bg-red {
    background-color: var(--danger-color);
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-sections {
    margin-top: 3rem;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: var(--dark-color);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Text Colors */
.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-info {
    color: var(--info-color);
}

.text-success {
    color: var(--success-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

.mobile-menu {
    display: none;
    background-color: var(--dark-color);
    padding: 1rem;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 0.5rem;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .book-detail-header {
        flex-direction: column;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
}

/* Estilos para el footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 0;
    position: relative;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-logo img {
    margin-bottom: 1rem;
    max-width: 120px;
}

.footer-description {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: #ecf0f1;
    background-color: #34495e;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #f1c40f;
    color: #2c3e50;
    transform: translateY(-3px);
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #ecf0f1;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav a:hover {
    color: #f1c40f;
}

.footer-nav i {
    width: 16px;
    text-align: center;
}

.footer-hours-list li {
    margin-bottom: 0.5rem;
    display: flex;
}

.footer-hours-list span {
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 100px;
}

.footer-newsletter {
    margin-top: 1.5rem;
}

.footer-newsletter h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.btn-newsletter {
    background-color: #f1c40f;
    color: #2c3e50;
    border: none;
    padding: 0 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-newsletter:hover {
    background-color: #e67e22;
    color: white;
}

.footer-address p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-address a {
    color: #ecf0f1;
    transition: color 0.3s;
}

.footer-address a:hover {
    color: #f1c40f;
}

.footer-address i {
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: #bdc3c7;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #f1c40f;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f1c40f;
    color: #2c3e50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Estilos específicos para la gestión de libros */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-cover-thumb {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.book-cover-thumb:hover {
    transform: scale(1.1);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-disponible {
    background-color: #d4edda;
    color: #155724;
}

.status-no-disponible {
    background-color: #f8d7da;
    color: #721c24;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    margin: 0 2px;
    padding: 0.25rem 0.5rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card-body {
    padding: 1.5rem;
}

/* Adaptaciones para DataTables */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ddd;
    padding: 0.25rem;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .actions {
        width: 100%;
    }
    
    .actions .btn {
        width: 100%;
    }
}

/* Estilos para el formulario de agregar libro */
.book-form {
    margin-top: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.image-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    text-align: center;
    background: white;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Estilos específicos para la página de login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/library-bg.jpg');
    background-size: cover;
    background-position: center;
}

.login-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-logo {
    margin-bottom: 1.5rem;
}

.login-logo img {
    border-radius: 50%;
    border: 5px solid #f1c40f;
}

.login-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.form-group.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.form-group.remember input {
    width: auto;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.login-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .login-logo img {
        width: 150px;
        height: 150px;
    }
}

/* Estilos específicos para registro */
.register-page .container {
    max-width: 1200px;
    padding: 2rem 1rem;
}

.register-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.register-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.register-benefits {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    align-self: start;
    position: sticky;
    top: 1rem;
}

.register-benefits h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.register-benefits ul {
    list-style: none;
    padding: 0;
}

.register-benefits li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.register-benefits li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #3498db;
}

.catalog-preview {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.catalog-preview h4 {
    font-size: 1rem;
    color: #7f8c8d;
}

.book-sample {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.book-sample img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.book-sample .book-info {
    flex: 1;
}

.book-sample h5 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.book-sample p {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.btn-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .register-container {
        grid-template-columns: 1fr;
    }
    
    .register-benefits {
        position: static;
    }
}

/* Estilos para gestión de usuarios */
.profile-pic {
    object-fit: cover;
    border: 2px solid #eee;
}

.profile-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1c40f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-activo {
    background-color: #d4edda;
    color: #155724;
}

.status-inactivo {
    background-color: #f8d7da;
    color: #721c24;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    margin: 0 2px;
    padding: 0.25rem 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .actions-cell {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .actions-cell .btn {
        width: 100%;
        margin: 2px 0;
    }
}

/* Estilos para edición de usuario */
.user-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.current-photo {
    margin-bottom: 1rem;
    text-align: center;
}

.current-photo img {
    border: 2px solid #eee;
}

.profile-default-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f1c40f;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.user-form .form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .user-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .user-form .form-actions {
        flex-direction: column;
    }
    
    .user-form .form-actions button,
    .user-form .form-actions a {
        width: 100%;
    }
}

/* Estilos para agregar usuario */
.user-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.user-form .form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .user-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .user-form .form-actions {
        flex-direction: column;
    }
    
    .user-form .form-actions button,
    .user-form .form-actions a {
        width: 100%;
    }
}

/* Estilos para la página de detalle de libro */
.book-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.book-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.book-cover {
    flex: 0 0 300px;
}

.book-cover-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.book-info {
    flex: 1;
    min-width: 300px;
}

.book-meta {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #555;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-meta i {
    width: 16px;
    color: #3498db;
}

.book-status {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.status-disponible {
    color: #27ae60;
}

.status-prestado, .status-no-disponible {
    color: #e74c3c;
}

.status-reservado {
    color: #f39c12;
}

.status-mantenimiento {
    color: #7f8c8d;
}

.download-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-download {
    background-color: #2ecc71;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}

.btn-download:hover {
    background-color: #27ae60;
}

.download-info {
    display: block;
    margin-top: 0.5rem;
    color: #7f8c8d;
}

.login-required {
    margin: 2rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffeeba;
    color: #856404;
}

.loan-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #e8f4fd;
    border-radius: 8px;
}

.loan-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

.book-description {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.book-description h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.related-books {
    margin-top: 3rem;
}

.related-books h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .book-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .book-cover {
        flex: 0 0 auto;
        text-align: center;
    }
    
    .book-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}