/* Library Management System - Custom Styles */

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 250px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar .nav-link {
    padding: 12px 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #0d6efd;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 56px;
    padding: 25px;
    min-height: calc(100vh - 56px);
    background: #f4f6f9;
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .card-body {
    padding: 20px;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

/* Tables */
.table th {
    font-weight: 600;
    background: #f8f9fa;
}

/* Forms */
.form-label {
    font-weight: 500;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Badge styles */
.badge-issued {
    background-color: #ffc107;
    color: #000;
}

.badge-returned {
    background-color: #198754;
}

.badge-overdue {
    background-color: #dc3545;
}

/* Page header */
.page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

/* Public Pages */
.public-body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 60px 0;
}

.hero-section .display-4 {
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-weight: 700;
    color: #1a1a2e;
}

.book-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.book-card .card-title {
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card .progress {
    border-radius: 3px;
    background-color: #e9ecef;
}

.public-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    margin-top: auto;
}

.public-footer h5 {
    color: white;
    font-weight: 600;
}

/* Public navbar override */
.navbar-dark.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

/* Responsive for public pages */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    .hero-section .display-4 {
        font-size: 2rem;
    }
}
