/* HMC Digital Library - Main Stylesheet */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #1f2937;
    --light-bg: #f0f4f8;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --gradient-start: #e0e7ff;
    --gradient-end: #f0f9ff;
}

body.dark-theme {
    --light-bg: #111827;
    --dark-bg: #1f2937;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --border-color: #374151;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%, #f8fafc 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: professionalGradient 30s ease infinite;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Professional Pattern Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes professionalGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
}

/* Professional Background for Logged-in Users */
body.logged-in {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 20%, #f1f5f9 40%, #e2e8f0 60%, #f1f5f9 80%, #f8fafc 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: loggedInProfessional 35s ease infinite;
    position: relative;
}

/* Clean Professional Pattern for Logged-in */
body.logged-in::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(148, 163, 184, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.015) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.015) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.01) 0%, transparent 50%);
    background-size: 80px 80px, 80px 80px, 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Subtle Professional Accent */
body.logged-in::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 50% 10%, rgba(147, 197, 253, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 30% 90%, rgba(191, 219, 254, 0.02) 0%, transparent 40%);
    background-size: 100% 100%;
    animation: professionalAccent 40s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes loggedInProfessional {
    0%, 100% {
        background-position: 0% 50%;
    }
    20% {
        background-position: 25% 25%;
    }
    40% {
        background-position: 75% 25%;
    }
    60% {
        background-position: 100% 50%;
    }
    80% {
        background-position: 75% 75%;
    }
}

@keyframes professionalAccent {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, -15px) scale(1.02);
        opacity: 0.4;
    }
    50% {
        transform: translate(-10px, 10px) scale(0.98);
        opacity: 0.5;
    }
    75% {
        transform: translate(15px, 5px) scale(1.01);
        opacity: 0.4;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Site Header Top - Beautiful Animated Theme for Logged-in Users */
.site-header-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease-in-out infinite;
}

/* Beautiful Multi-Color Gradient Animation */
@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
    20% {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
    }
    40% {
        background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #30cfd0 100%);
    }
    60% {
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #fbc2eb 100%);
    }
    80% {
        background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%);
    }
    100% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
}

/* Smooth Flowing Wave Background Layer 1 */
.site-header-top::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    animation: smoothWave 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes smoothWave {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(10%, 10%) rotate(120deg) scale(1.1);
        opacity: 0.9;
    }
    66% {
        transform: translate(-10%, 5%) rotate(240deg) scale(0.95);
        opacity: 0.95;
    }
}

/* Beautiful Bokeh Particles Layer 2 */
.site-header-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 45% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 65% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 28%),
        radial-gradient(circle at 25% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 22%),
        radial-gradient(2px 2px at 20% 50%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 80% 30%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 60% 40%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 
        400% 400%, 350% 350%, 300% 300%, 320% 320%, 280% 280%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    animation: bokehFloat 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bokehFloat {
    0%, 100% {
        background-position: 
            0% 0%, 100% 100%, 50% 50%, 75% 25%, 25% 75%,
            0% 0%, 100% 100%, 50% 50%, 25% 75%, 75% 25%;
        opacity: 1;
    }
    25% {
        background-position: 
            25% 25%, 75% 75%, 60% 40%, 80% 30%, 30% 80%,
            20% 30%, 80% 70%, 60% 40%, 35% 65%, 85% 35%;
        opacity: 0.95;
    }
    50% {
        background-position: 
            50% 50%, 50% 50%, 70% 30%, 85% 35%, 35% 85%,
            40% 60%, 60% 40%, 70% 30%, 45% 55%, 95% 45%;
        opacity: 0.9;
    }
    75% {
        background-position: 
            75% 75%, 25% 25%, 40% 60%, 70% 40%, 40% 70%,
            60% 40%, 40% 60%, 80% 20%, 55% 45%, 65% 55%;
        opacity: 0.95;
    }
}

.site-brand-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.site-logo-large {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.1) brightness(1.08) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    backface-visibility: hidden;
    transform: translateZ(0);
    animation: logoSmoothFloat 5s ease-in-out infinite, logoColorGlow 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoSmoothFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    20% {
        transform: translateY(-3px) rotate(1deg) scale(1.02);
    }
    40% {
        transform: translateY(-7px) rotate(0deg) scale(1.04);
    }
    60% {
        transform: translateY(-10px) rotate(-1deg) scale(1.05);
    }
    80% {
        transform: translateY(-5px) rotate(0deg) scale(1.02);
    }
}

@keyframes logoColorGlow {
    0%, 100% {
        filter: contrast(1.1) brightness(1.08) drop-shadow(0 5px 15px rgba(102, 126, 234, 0.4));
    }
    25% {
        filter: contrast(1.15) brightness(1.12) drop-shadow(0 8px 25px rgba(67, 233, 123, 0.5));
    }
    50% {
        filter: contrast(1.15) brightness(1.12) drop-shadow(0 8px 25px rgba(250, 112, 154, 0.5));
    }
    75% {
        filter: contrast(1.15) brightness(1.12) drop-shadow(0 8px 25px rgba(254, 225, 64, 0.5));
    }
}

.site-logo-large:hover {
    transform: scale(1.2) rotate(8deg) translateY(-8px);
    filter: contrast(1.25) brightness(1.2) drop-shadow(0 12px 35px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 50px rgba(102, 126, 234, 0.8));
    animation-play-state: paused;
}

.site-name-large {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(
        120deg,
        #ffffff 0%,
        #fef3c7 15%,
        #fde68a 30%,
        #ffffff 45%,
        #ddd6fe 60%,
        #c7d2fe 75%,
        #ffffff 90%,
        #fef3c7 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShine 6s ease-in-out infinite, smoothFloat 5s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

@keyframes rainbowShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

@keyframes smoothFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) scale(1.015) rotate(0.5deg);
    }
    50% {
        transform: translateY(-7px) scale(1.025) rotate(0deg);
    }
    75% {
        transform: translateY(-4px) scale(1.015) rotate(-0.5deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
    }
    33% {
        filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(255, 223, 186, 0.6));
    }
    66% {
        filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(199, 210, 254, 0.6));
    }
}

.site-brand-center i {
    font-size: 3rem;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Navbar */
.navbar {
    background-color: #60a5fa;
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Center navigation when logged in */
body.logged-in .navbar .container {
    justify-content: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-menu-centered {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
}

.nav-menu a:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
}

/* Responsive adjustments for centered header */
@media (max-width: 768px) {
    .site-logo-large {
        height: 50px;
        max-width: 180px;
    }
    
    .site-name-large {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .site-header-top {
        padding: 1rem 0;
    }
    
    .site-brand-center {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto;
}

.search-box form {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Home Hero Background - Professional Medium Size */
.home-hero-background {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    background-size: 200% 200%;
    background-position: center;
    animation: heroGradientShift 15s ease infinite;
    margin-bottom: 3rem;
}

@keyframes heroGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.home-hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 64, 175, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

.home-welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2.5rem 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 1s ease-out;
    max-width: 750px;
}

.home-welcome-content h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease-out;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.home-welcome-content h1 i {
    margin-right: 0.8rem;
    font-size: 1.8rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.home-welcome-content p {
    font-size: 1.15rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-out;
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
    color: #ffffff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-hero-background {
        min-height: 40vh;
        margin-bottom: 2rem;
    }
    
    .home-welcome-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .home-welcome-content h1 {
        font-size: 1.5rem;
        letter-spacing: 0.3px;
    }
    
    .home-welcome-content h1 i {
        font-size: 1.4rem;
        margin-right: 0.5rem;
    }
    
    .home-welcome-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .home-hero-background {
        min-height: 35vh;
    }
    
    .home-welcome-content {
        padding: 1.5rem 1.25rem;
    }
    
    .home-welcome-content h1 {
        font-size: 1.3rem;
    }
    
    .home-welcome-content p {
        font-size: 0.95rem;
    }
}

/* Categories */
.categories, .featured-books {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

/* Content Section Enhancement for Logged-in Users */
body.logged-in .categories,
body.logged-in .featured-books {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.categories h2, .featured-books h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(37, 99, 235, 0.2);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.book-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(37, 99, 235, 0.2);
}

.book-cover {
    height: 300px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-cover {
    font-size: 4rem;
    color: var(--text-light);
}

.book-info {
    padding: 1rem;
}

.book-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.book-info .author {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating {
    margin: 0.5rem 0;
}

.rating .fa-star {
    color: #ddd;
}

.rating .fa-star.filled {
    color: #fbbf24;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-info {
    background-color: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background-color: #0284c7;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Auth Pages - Beautiful Slideshow Background */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    background-color: #1e3c72;
}

/* Slideshow Background Layer */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideshow 36s ease-in-out infinite;
    z-index: 0;
}

/* Beautiful Slideshow Animation with 6 Images */
@keyframes slideshow {
    0%, 14% {
        background-image: url('../images/d1.jpg.jpg');
        opacity: 1;
        transform: scale(1);
    }
    15%, 16% {
        opacity: 0;
        transform: scale(1.08);
    }
    17%, 30% {
        background-image: url('../images/d2.jpg.jpg');
        opacity: 1;
        transform: scale(1);
    }
    31%, 32% {
        opacity: 0;
        transform: scale(1.08);
    }
    33%, 47% {
        background-image: url('../images/d3.jpg.jpg');
        opacity: 1;
        transform: scale(1);
    }
    48%, 49% {
        opacity: 0;
        transform: scale(1.08);
    }
    50%, 64% {
        background-image: url('../images/d4.jpg.jpg');
        opacity: 1;
        transform: scale(1);
    }
    65%, 66% {
        opacity: 0;
        transform: scale(1.08);
    }
    67%, 81% {
        background-image: url('../images/hmc-building.jpg.jpg');
        opacity: 1;
        transform: scale(1);
    }
    82%, 83% {
        opacity: 0;
        transform: scale(1.08);
    }
    84%, 98% {
        background-image: url('../images/std.jpg.jpg');
        opacity: 1;
        transform: scale(1);
    }
    99%, 100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

/* Animated Gradient Overlay with Color Shifts */
.auth-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.5) 100%);
    animation: overlayColorShift 36s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes overlayColorShift {
    0%, 16% {
        background: linear-gradient(135deg, rgba(30, 60, 114, 0.65) 0%, rgba(42, 82, 152, 0.55) 100%);
    }
    17%, 32% {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.5) 100%);
    }
    33%, 49% {
        background: linear-gradient(135deg, rgba(79, 172, 254, 0.6) 0%, rgba(0, 242, 254, 0.5) 100%);
    }
    50%, 66% {
        background: linear-gradient(135deg, rgba(250, 112, 154, 0.6) 0%, rgba(254, 225, 64, 0.5) 100%);
    }
    67%, 83% {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(236, 72, 153, 0.5) 100%);
    }
    84%, 100% {
        background: linear-gradient(135deg, rgba(168, 237, 234, 0.6) 0%, rgba(254, 214, 227, 0.5) 100%);
    }
}



@keyframes bokehFloat {
    0%, 100% {
        background-position: 
            0% 0%, 100% 100%, 50% 50%, 75% 25%,
            0% 0%, 100% 100%, 50% 50%, 25% 75%, 75% 25%, 10% 90%;
        opacity: 1;
    }
    25% {
        background-position: 
            25% 25%, 75% 75%, 60% 40%, 80% 30%,
            20% 30%, 80% 70%, 60% 40%, 35% 65%, 85% 35%, 15% 85%;
        opacity: 0.9;
    }
    50% {
        background-position: 
            50% 50%, 50% 50%, 70% 30%, 85% 35%,
            40% 60%, 60% 40%, 70% 30%, 45% 55%, 95% 45%, 20% 80%;
        opacity: 0.95;
    }
    75% {
        background-position: 
            75% 75%, 25% 25%, 40% 60%, 70% 40%,
            60% 40%, 40% 60%, 80% 20%, 55% 45%, 65% 55%, 25% 75%;
        opacity: 0.9;
    }
}

.auth-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 2rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: fadeInScale 1s ease-out, floatBox 6s ease-in-out infinite 1s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatBox {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    }
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 1.25rem;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    animation: fadeInDown 0.8s ease-out 0.2s both;
    letter-spacing: 0.3px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 13px;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.developer-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* Info Message */
.info-message {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-message i {
    color: #0284c7;
    font-size: 1.2rem;
}

.info-message p {
    margin: 0;
    color: #075985;
    font-weight: 500;
}


/* Site Logo in Navigation */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.site-name-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    vertical-align: middle;
    /* Improve image quality and sharpness */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Remove blur and improve clarity */
    filter: contrast(1.1) brightness(1.05);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.nav-brand i {
    font-size: 1.3rem;
}

/* Logo only mode - hide text on small screens if logo exists */
@media (max-width: 768px) {
    .site-logo {
        height: 40px;
        max-width: 140px;
    }
    
    .nav-brand a {
        font-size: 1rem;
    }
}

/* Logo display options */
.logo-with-text .site-logo {
    margin-right: 10px;
}

.logo-only .site-name-text {
    display: none;
}

.text-only .site-logo {
    display: none;
}


/* Reader Protection */
.reader-container {
    max-width: 100%;
}

.reader-content {
    position: relative;
}

.reader-content iframe {
    display: block;
    margin: 0 auto;
}

/* Read-only notice */
.read-only-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-only-notice i {
    color: #ffc107;
    font-size: 1.2rem;
}

.read-only-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}


/* Header Stats - Book Count */
.header-stats {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.book-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.book-count i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .book-count {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}


/* Quick Links Bar */
.quick-links-bar {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
}

.quick-links-bar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-links-label {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quick-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.quick-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.quick-links a i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .quick-links-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quick-links {
        gap: 0.75rem;
    }
    
    .quick-links a {
        font-size: 0.85rem;
        padding: 0.25rem 0.6rem;
    }
}


/* Contact Dropdown in Header */
.contact-dropdown {
    position: relative;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
    z-index: 1000;
}

.contact-dropdown:hover .contact-dropdown-content {
    display: block;
}

.contact-dropdown-content p {
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-dropdown-content i {
    color: var(--primary-color);
    width: 20px;
}

.contact-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

@media (max-width: 768px) {
    .contact-dropdown-content {
        right: auto;
        left: 0;
        min-width: 220px;
    }
    
    .contact-dropdown-content::before {
        right: auto;
        left: 20px;
    }
}


/* Enhanced Auth Form Styling with Animations */
.auth-box .form-group {
    margin-bottom: 1.15rem;
    animation: fadeInUp 0.8s ease-out both;
}

.auth-box .form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.auth-box .form-group:nth-child(3) {
    animation-delay: 0.4s;
}

.auth-box .form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    font-size: 13px;
    display: block;
}

.auth-box input[type="text"],
.auth-box input[type="password"],
.auth-box input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.auth-box input[type="text"]:focus,
.auth-box input[type="password"]:focus,
.auth-box input[type="email"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.auth-box .btn-primary {
    width: 100%;
    padding: 11px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: fadeInUp 0.8s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.auth-box .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-box .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.auth-box .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .auth-box {
        padding: 1.75rem 1.5rem 1.5rem;
        max-width: 100%;
        border-radius: 14px;
    }
    
    .auth-box h2 {
        font-size: 17px;
        margin-bottom: 1rem;
    }
    
    .auth-box .form-group {
        margin-bottom: 1rem;
    }
    
    .auth-box input[type="text"],
    .auth-box input[type="password"],
    .auth-box input[type="email"] {
        padding: 9px 12px;
        font-size: 14px;
    }
    
    .auth-box .btn-primary {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .auth-box h2 {
        font-size: 16px;
        margin-bottom: 0.9rem;
    }
    
    .auth-box .form-group label {
        font-size: 12px;
    }
}


/* Login Page Hero Layout */
.login-hero-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.hero-text {
    color: white;
    text-align: left;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.search-box-login {
    margin-bottom: 2rem;
}

.search-box-login form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-box-login input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    background: transparent;
}

.search-box-login button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-box-login button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hero-actions-login {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-actions-login .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-repository {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid transparent;
}

.btn-repository:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .login-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .hero-actions-login {
        justify-content: center;
    }
    
    .auth-box {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .login-hero-content {
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .search-box-login form {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-box-login input,
    .search-box-login button {
        border-radius: 10px;
    }
    
    .hero-actions-login {
        flex-direction: column;
    }
    
    .hero-actions-login .btn {
        width: 100%;
        justify-content: center;
    }
}


/* Zoom animation for background image */
@keyframes zoomInOut {
    0%, 100% {
        background-size: 100%;
    }
    50% {
        background-size: 110%;
    }
}

/* Animated dark overlay with gradient */
@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Animated light particles effect */
.home-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 33% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: particlesMove 30s linear infinite;
    pointer-events: none;
}

@keyframes particlesMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.home-welcome-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-welcome-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.home-welcome-content h1 i {
    font-size: 52px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.home-welcome-content > p {
    font-size: 22px;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 600;
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.home-link-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.home-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: white;
}

.home-link-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.home-link-card h3 {
    font-size: 24px;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.home-link-card p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-hero-background {
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .home-welcome-content h1 {
        font-size: 32px;
        flex-direction: column;
        gap: 10px;
    }
    
    .home-welcome-content h1 i {
        font-size: 40px;
    }
    
    .home-welcome-content > p {
        font-size: 18px;
        margin-bottom: 2rem;
    }
    
    .home-quick-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home-link-card {
        padding: 2rem 1.5rem;
    }
}


/* Form Section Divider */
.form-section-divider {
    margin: 2rem 0 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    border-radius: 8px;
}

.form-section-divider h3 {
    margin: 0 0 0.5rem 0;
    color: #0c4a6e;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-divider h3 i {
    color: #0ea5e9;
}

.section-description {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Enhanced Navigation with Icons */
.nav-menu a i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.nav-menu-centered a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Highlight Institutional Repository button */
.nav-menu a[href*="resources.php"]:not([href*="external"]) {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.nav-menu a[href*="resources.php"]:not([href*="external"]):hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Highlight E-Resources button */
.nav-menu a[href*="external-resources.php"] {
    background: rgba(102, 126, 234, 0.25);
    border: 1px solid rgba(102, 126, 234, 0.4);
    font-weight: 600;
}

.nav-menu a[href*="external-resources.php"]:hover {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
}

/* E-Books button styling */
.nav-menu a[href*="repository.php"] {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.nav-menu a[href*="repository.php"]:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.45);
}
/* Tagline/Subtitle Styling */
.subtitle {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.2rem;
}

/* About page subtitle */
.about-header .subtitle {
    color: #ffffff !important;
    font-weight: 600;
    margin-top: 0.5rem;
}
/* About Section Styling */
.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.about-section p {
    color: #3b82f6;
    font-weight: 500;
    line-height: 1.7;
    font-size: 1.1rem;
}

.section-icon {
    margin-bottom: 1rem;
}

.section-icon i {
    font-size: 2.5rem;
    color: #3b82f6;
}
/* Hayat Medical College Logo Styling - Clean Professional Design */
.site-logo-large,
.site-logo {
    max-height: 70px;
    width: auto;
    border-radius: 0;
    margin-right: 1.5rem;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
}

.site-logo-large {
    max-height: 80px;
}

/* Special styling for non-logged-in users (clean, professional logo) */
.nav-brand .site-logo {
    max-height: 80px;
    width: auto;
    height: 80px;
    margin-right: 1.5rem;
    box-shadow: none;
    border: none;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    padding: 0;
}

/* Ensure logo loads properly - clean design */
.site-logo-large,
.site-logo {
    object-fit: contain;
    background: transparent;
    padding: 0;
}

/* Remove white background for non-logged-in users */
.nav-brand .site-logo {
    background: transparent !important;
    padding: 0 !important;
}

/* Logo hover effect - subtle professional enhancement */
.site-logo-large:hover,
.site-logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    opacity: 0.9;
}

/* Enhanced logo container for professional display */
.logo-with-text {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    padding: 0.8rem 0 !important;
    min-height: 80px !important;
}

.site-brand-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 1rem 0 !important;
}

/* Professional site name text - compact sizing */
.site-name-text,
.site-name-large {
    font-weight: 700 !important;
    font-size: 1.6rem !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

.site-name-large {
    font-size: 1.8rem !important;
}

/* Navigation brand container - professional compact size */
.nav-brand {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 80px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-logo {
        max-height: 80px !important;
        margin-right: 1rem !important;
    }
    
    .site-logo-large {
        max-height: 100px !important;
    }
    
    .site-name-text {
        font-size: 1.4rem !important;
    }
    
    .site-name-large {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-height: 60px !important;
        margin-right: 0.8rem !important;
    }
    
    .site-name-text {
        font-size: 1.2rem !important;
    }
}
/* College Notice Board Section */
.notice-board-section {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    padding: 4rem 0;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Blue theme pattern overlay */
.notice-board-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.notice-board-section .container {
    position: relative;
    z-index: 2;
}

.notice-board-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.notice-board-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.notice-board-header h2 i {
    margin-right: 1rem;
    color: #fbbf24;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notice-board-header p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.notice-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.notice-board-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.notice-stats {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    color: white;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notice-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notice-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.notice-content h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
}

.notice-content p {
    margin: 0 0 1rem 0;
    color: #475569;
    line-height: 1.6;
}

.notice-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.notice-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-meta i {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notice-board-section {
        padding: 3rem 0;
    }
    
    .notice-board-header h2 {
        font-size: 2rem;
    }
    
    .notice-board-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .notice-item {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* Enhanced Navbar for Professional Display */
.navbar {
    padding: 0.8rem 0 !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
}

.navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Site header top enhancement for logged-in users - compact design */
.site-header-top {
    padding: 1rem 0 !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
}

/* Logo prominence enhancement */
.logo-with-text:hover,
.site-brand-center:hover {
    transform: translateY(-2px) !important;
    transition: transform 0.3s ease !important;
}

/* Better spacing for navigation menu */
.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Ensure proper logo visibility on all backgrounds */
.site-logo,
.site-logo-large {
    filter: none;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .navbar {
        min-height: 70px !important;
        padding: 0.6rem 0 !important;
    }
    
    .site-header-top {
        min-height: 70px !important;
        padding: 0.8rem 0 !important;
    }
    
    .nav-menu {
        gap: 1rem !important;
    }
    
    .nav-brand .site-logo {
        max-height: 60px !important;
        height: 60px !important;
        margin-right: 1rem !important;
    }
    
    .site-logo-large {
        max-height: 60px !important;
    }
    
    .site-name-text {
        font-size: 1.3rem !important;
    }
    
    .site-name-large {
        font-size: 1.4rem !important;
    }
}