/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Warna khas IPM */
:root {
    --ipm-yellow: #FFD700;  /* Kuning emas */
    --ipm-green: #006400;   /* Hijau tua */
    --ipm-light-green: #228B22;  /* Hijau hutan */
    --ipm-light-yellow: #FFFACD; /* Kuning lemon */
    --ipm-gold: #FFC107;    /* Kuning emas cerah */
    --ipm-dark-green: #004d00;  /* Hijau sangat tua */
    --ipm-white: #FFFFFF;
    --ipm-gray: #f5f5f5;
}

body {
    background: linear-gradient(135deg, var(--ipm-green) 0%, var(--ipm-dark-green) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    display: flex;
}

/* Login Card */
.login-card {
    padding: 50px;
    width: 50%;
    background: var(--ipm-gray);
}

/* Logo IPM */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.logo-image::before {
    content: 'IPM';
    font-size: 32px;
    font-weight: bold;
    color: var(--ipm-green);
    font-family: 'Arial', sans-serif;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-text h1 {
    color: var(--ipm-green);
    font-size: 28px;
    font-weight: 700;
}

.logo-text .subtitle {
    color: var(--ipm-light-green);
    font-size: 16px;
    font-weight: 500;
}

.logo-text .system-name {
    color: var(--ipm-gold);
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ipm-green);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--ipm-gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* Button */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
    color: var(--ipm-green);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, var(--ipm-gold) 0%, var(--ipm-yellow) 100%);
}

.btn-login:active {
    transform: translateY(-1px);
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: var(--ipm-light-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--ipm-green);
    text-decoration: underline;
}

/* Features Section */
.features-image {
    width: 80%;
    opacity: 0.5;
    height: 80%;
    display: block;
    margin: 0 auto;

}

.judul{
    
    text-align: center,;
    color: var(black);
    font-size: 28px;
    font-weight: 600;
    margin-top: 30px;
    margin: 20px auto;
    padding: 0 -20px;
}

.features {
    width: 50%;
    background: linear-gradient(135deg, var(--ipm-green) 0%, var(--ipm-dark-green) 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    size: 40%;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></svg>');
    opacity: 0.1;
}

.feature {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.feature i {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--ipm-yellow);
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    opacity: 0.9;
}

/* IPM Motto */
.ipm-motto {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 14px;
    z-index: 1;
}

/* Dashboard Styles - Updated Colors */
.dashboard-container {
    width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--ipm-green) 0%, var(--ipm-dark-green) 100%);
    padding: 20px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left h1 i {
    color: var(--ipm-yellow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--ipm-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ipm-green);
    font-weight: bold;
}

/* Sidebar */
.dashboard-sidebar {
    width: 250px;
    background: white;
    min-height: calc(100vh - 80px);
    padding: 30px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    border-right: 4px solid var(--ipm-green);
}

.nav-item {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    margin: 5px 0;
}

.nav-item:hover {
    background: var(--ipm-light-yellow);
    color: var(--ipm-green);
    border-left: 4px solid var(--ipm-yellow);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
    color: var(--ipm-green);
    font-weight: 600;
    border-left: 4px solid var(--ipm-green);
}

.nav-item i {
    width: 20px;
    text-align: center;
    color: inherit;
}

.sidebar-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    padding: 30px;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 4px solid var(--ipm-green);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.book {
    background: linear-gradient(135deg, var(--ipm-green) 0%, var(--ipm-light-green) 100%);
}

.stat-icon.borrow {
    background: linear-gradient(135deg, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
}

.stat-icon.user {
    background: linear-gradient(135deg, var(--ipm-light-green) 0%, #34a853 100%);
}

.stat-icon.money {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
}

.stat-info h3 {
    font-size: 28px;
    color: var(--ipm-green);
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--ipm-yellow);
}

.table-title {
    margin-bottom: 20px;
    color: var(--ipm-green);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-title i {
    color: var(--ipm-gold);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, var(--ipm-green) 0%, var(--ipm-light-green) 100%);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

td {
    color: #333;
}

tbody tr:hover {
    background: var(--ipm-light-yellow);
}

/* Action Buttons */
.btn-action {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-borrow {
    background: linear-gradient(135deg, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
    color: var(--ipm-green);
    font-weight: 600;
}

.btn-borrow:hover {
    background: linear-gradient(135deg, var(--ipm-gold) 0%, var(--ipm-yellow) 100%);
    transform: translateY(-2px);
}

.btn-return {
    background: linear-gradient(135deg, var(--ipm-green) 0%, var(--ipm-light-green) 100%);
    color: white;
    font-weight: 600;
}

.btn-return:hover {
    background: linear-gradient(135deg, var(--ipm-light-green) 0%, var(--ipm-green) 100%);
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    font-weight: 600;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-2px);
}

.btn-edit {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    font-weight: 600;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #138496 0%, #17a2b8 100%);
    transform: translateY(-2px);
}

/* Badge Status */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-available {
    background: #d4edda;
    color: #155724;
}

.badge-borrowed {
    background: #f8d7da;
    color: #721c24;
}

.badge-active {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-late {
    background: #fff3cd;
    color: #856404;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 5px solid var(--ipm-yellow);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ipm-light-yellow);
}

.modal-header h2 {
    color: var(--ipm-green);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--ipm-yellow);
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--ipm-green);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-modal:hover {
    background: var(--ipm-light-yellow);
}

/* Form in Modal */
.modal .form-group label {
    color: var(--ipm-green);
    font-weight: 600;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    border-color: #ddd;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    border-color: var(--ipm-yellow);
}

/* Footer */
.dashboard-footer {
    background: var(--ipm-green);
    color: white;
    padding: 15px 40px;
    text-align: center;
    margin-top: auto;
    font-size: 14px;
}

.dashboard-footer a {
    color: var(--ipm-yellow);
    text-decoration: none;
}

.dashboard-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-card, .features {
        width: 100%;
    }
    
    .login-card {
        padding: 30px;
    }
    
    .features {
        padding: 30px;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
}

/* Print Button */
.btn-print {
    background: linear-gradient(135deg, #6f42c1 0%, #6610f2 100%);
    color: white;
    font-weight: 600;
}

.btn-print:hover {
    background: linear-gradient(135deg, #6610f2 0%, #6f42c1 100%);
    transform: translateY(-2px);
}

/* Search Input */
.search-filter input:focus {
    border-color: var(--ipm-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* Modal Delete Confirmation Styles */
.confirm-delete-modal .modal-content {
    max-width: 600px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.delete-warning {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.delete-warning i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.user-details-delete {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

.user-details-delete p {
    margin: 8px 0;
    color: #333;
}

.consequences-list {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.consequences-list ul {
    margin: 10px 0 0 20px;
    color: #856404;
}

.consequences-list li {
    margin: 5px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-delete-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-delete-confirm:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-cancel-delete {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-cancel-delete:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Ranking Styles */
.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.ranking-item:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.ranking-item.top-1 {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
}

.ranking-item.top-2 {
    border-left-color: #C0C0C0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ranking-item.top-3 {
    border-left-color: #CD7F32;
    background: linear-gradient(135deg, #f5e8d0 0%, #e7d9c1 100%);
}

.rank-number {
    width: 40px;
    height: 40px;
    background: var(--ipm-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
}

.rank-number.top-1 {
    background: #FFD700;
    color: var(--ipm-green);
}

.rank-number.top-2 {
    background: #C0C0C0;
    color: var(--ipm-green);
}

.rank-number.top-3 {
    background: #CD7F32;
    color: white;
}

.rank-user-info {
    flex: 1;
}

.rank-user-name {
    font-weight: 600;
    color: var(--ipm-green);
    margin-bottom: 3px;
}

.rank-user-details {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
}

.rank-user-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rank-score {
    background: var(--ipm-yellow);
    color: var(--ipm-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.rank-score i {
    margin-right: 5px;
}

/* Ranting Ranking */
.rank-ranting-info {
    flex: 1;
}

.rank-ranting-name {
    font-weight: 600;
    color: var(--ipm-green);
    margin-bottom: 5px;
}

.rank-ranting-school {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.rank-ranting-stats {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #666;
}

.rank-ranting-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Activity Feed */
.activity-feed {
    max-height: 280px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--ipm-light-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ipm-yellow);
    font-size: 16px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.activity-text strong {
    color: var(--ipm-green);
}

.activity-time {
    font-size: 12px;
    color: #666;
}

/* Chart Styles */
.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
    border-radius: 5px 5px 0 0;
    min-height: 10px;
    position: relative;
    transition: height 0.5s;
}

.chart-bar:hover {
    background: linear-gradient(to top, var(--ipm-gold) 0%, var(--ipm-yellow) 100%);
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #666;
}

.chart-bar-value {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--ipm-green);
}

/* Ranting Growth */
.ranting-growth-item {
    flex: 1;
    min-width: 150px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ranting-growth-name {
    font-weight: 600;
    color: var(--ipm-green);
    margin-bottom: 10px;
    font-size: 14px;
}

.ranting-growth-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ranting-growth-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
    border-radius: 5px;
    transition: width 1s;
}

.ranting-growth-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* Loading States */
.loading, .chart-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.loading i, .chart-loading i {
    margin-right: 10px;
}

/* Badge Styles */
.badge-small {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #d4edda;
    color: #155724;
}

.badge-active {
    background: #cce5ff;
    color: #004085;
}

.badge-hot {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 992px) {
    main .dashboard-main > div:first-child {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .rank-number {
        margin-right: 0;
    }
    
    .rank-user-details, .rank-ranting-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .welcome-section > div {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* ==================== BOOK SELECTION & BORROW STYLES ==================== */

.section-title {
    font-size: 1.5em;
    color: var(--ipm-green);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.3em;
}

/* Book Grid Container */
.book-selection-container {
    margin-bottom: 50px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    animation: fadeIn 0.3s ease-in;
}

/* Book Card */
.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(26, 125, 61, 0.2);
    border-color: var(--ipm-green);
}

.book-cover {
    font-size: 4em;
    padding: 20px;
    background: linear-gradient(135deg, var(--ipm-light-green) 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    font-weight: bold;
}

.book-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    font-size: 0.95em;
    margin: 0 0 5px 0;
    color: var(--ipm-green);
    line-height: 1.3;
    flex-grow: 1;
}

.book-author {
    font-size: 0.8em;
    color: #666;
    margin: 3px 0;
}

.book-category {
    display: inline-block;
    font-size: 0.75em;
    background: var(--ipm-light-green);
    color: var(--ipm-green);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

.book-category-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--ipm-yellow) 0%, var(--ipm-gold) 100%);
    color: var(--ipm-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.btn-small {
    font-size: 0.85em !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
}

/* Borrow History Container */
.borrow-history-container {
    margin-bottom: 30px;
}

.borrow-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    animation: fadeIn 0.3s ease-in;
}

/* Borrow Card */
.borrow-card {
    background: white;
    border-left: 5px solid var(--ipm-green);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.borrow-card:hover {
    box-shadow: 0 4px 12px rgba(26, 125, 61, 0.15);
    transform: translateY(-2px);
}

.borrow-card.late {
    border-left-color: #d32f2f;
    background: rgba(211, 47, 47, 0.02);
}

.borrow-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.borrow-card-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: var(--ipm-green);
    flex: 1;
}

.borrow-card-body {
    margin-bottom: 15px;
}

.borrow-card-body p {
    margin: 10px 0;
    font-size: 0.95em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.borrow-card-body i {
    color: var(--ipm-green);
    min-width: 20px;
}

.borrow-card-body strong {
    color: var(--ipm-green);
}

.borrow-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.borrow-card-actions .btn-action {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9em;
}

/* Modal Header & Footer */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ipm-light-green);
}

.modal-header h2 {
    margin: 0;
    color: var(--ipm-green);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .borrow-cards-container {
        grid-template-columns: 1fr;
    }

    .book-cover {
        font-size: 3em;
        min-height: 120px;
    }

    .book-info h3 {
        font-size: 0.9em;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ADMIN TABS STYLES ==================== */

.admin-tab-btn {
    transition: all 0.3s ease;
}

.admin-tab-btn:hover {
    color: var(--ipm-green) !important;
}

.admin-tab-content {
    animation: fadeIn 0.3s ease-in;
}

/* Highlight late rows */
table tbody tr.late td {
    background: rgba(211, 47, 47, 0.05);
    border-left: 3px solid #d32f2f;
}