/* ==========================================
   OPAC Main Stylesheet
   Puslajar Library v2.0 - Modern Library Catalog
   ========================================== */

:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --accent: #f59e0b;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

.opac-body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

/* ==========================================
   NAVBAR
   ========================================== */
.opac-navbar {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.opac-navbar .nav-link {
    color: #475569 !important;
    font-weight: 600;
    padding: 10px 20px !important;
    transition: all 0.2s ease;
}

.opac-navbar .nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.opac-navbar .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.opac-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 100px 0 140px;
    color: #fff;
    text-align: center;
    /* border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px; */
    position: relative;
    overflow: hidden;
}

.opac-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100px;
    background: #f8fafc;
    border-radius: 50%;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ==========================================
   COMMON HEADER SECTION
   ========================================== */
.header-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.header-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../puslajar/dist/img/pattern.svg');
    opacity: 0.1;
    pointer-events: none;
}

/* ==========================================
   SLIDER
   ========================================== */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slider-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 400px;
}

.slider-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 30px;
    color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    padding: 15px 0;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-container {
    margin: -40px auto 60px;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
}

.search-box .btn {
    border-radius: 40px;
    padding: 12px 40px;
    font-weight: 800;
}

/* ==========================================
   CARDS
   ========================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.book-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    border: 2px solid #eef2f7;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.book-cover {
    height: 220px;
    width: 155px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* ==========================================
   STATS BOX
   ========================================== */
.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 24px;
    text-align: center;
    min-width: 150px;
    margin: 0 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   UTILITIES
   ========================================== */
.mt-n5 {
    margin-top: -3rem !important;
}

.text-xs {
    font-size: 0.75rem;
}

.opacity-90 {
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Badge Styles */
.badge-primary-soft {
    background: rgba(30, 60, 114, 0.1);
    color: var(--primary);
}

.badge-warning-soft {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.badge-purple-soft {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.btn-purple {
    background: #6f42c1;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background: #59359a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.text-purple {
    color: #6f42c1 !important;
}

.badge-purple {
    background: #6f42c1;
    color: white;
}

.badge-success-soft {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-info-soft {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-danger-soft {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}