/* =========================
   AI THEME (LIGHT PROFESSIONAL)
========================= */
:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;

    --bg: #f8fafc;
    --card: #ffffff;

    --text: #0f172a;
    --muted: #64748b;

    --border: #e2e8f0;

    --radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);

    --transition: all 0.25s ease;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 5%;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* =========================
   BACK BUTTON
========================= */
.back-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
}

/* =========================
   PROFILE BUTTON
========================= */
.profile-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 8px 14px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* =========================
   DROPDOWN
========================= */
.profile-menu {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    overflow: hidden;
    animation: fadeIn 0.25s ease;
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
}

.dropdown a:hover {
    background: #f1f5f9;
}

/* =========================
   MOBILE MENU
========================= */
.menu-btn {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border);
}

.mobile-menu a {
    padding: 12px;
    text-decoration: none;
    color: var(--text);
}

.mobile-menu.active {
    display: flex;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 92%;
    max-width: 1100px;
    margin: auto;
    padding: 30px 0;
}

/* =========================
   CARD SYSTEM (VERY IMPORTANT)
========================= */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

/* =========================
   FOOTER
========================= */
.footer {
    margin-top: 60px;
    padding: 40px 5%;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer h3 {
    margin-bottom: 10px;
}

.footer a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    margin: 6px 0;
    font-size: 14px;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
}

/* =========================
   SOCIAL ICONS
========================= */
.social-icons a {
    margin-right: 10px;
    font-size: 18px;
    color: var(--muted);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* =========================
   MOBILE NAV (BOTTOM)
========================= */
.mobile-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.nav-item {
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover {
    color: var(--primary);
}

/* =========================
   ANIMATIONS
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.zoom {
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition);
}

.zoom.show {
    opacity: 1;
    transform: scale(1);
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

/* =========================
   ABOUT PAGE
========================= */
.about-page {
    padding-bottom: 60px;
}

/* HERO */
.about-hero {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 40px 40px;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 700;
}

.hero-content p {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.9;
}

/* CONTAINER */
.about-container {
    width: 92%;
    max-width: 1000px;
    margin: auto;
    margin-top: 40px;
}

/* SECTION */
.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* FEATURE CARD */
.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card i {
    font-size: 26px;
    color: #6366f1;
    margin-bottom: 10px;
}

.feature-card h3 {
    margin-bottom: 5px;
}

.feature-card p {
    color: #64748b;
    font-size: 14px;
}

/* HOVER EFFECT */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* DEVELOPER CARD */
.developer-card {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.developer-card i {
    font-size: 50px;
    margin-bottom: 10px;
}

.developer-card h3 {
    margin: 5px 0;
}

.developer-card p {
    opacity: 0.9;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .about-hero {
        padding: 60px 15px;
    }
}

/* =========================
   ADMIN LAYOUT
========================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar h2 {
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: #f1f5f9;
    color: #6366f1;
}

/* =========================
   MAIN AREA
========================= */
.admin-main {
    flex: 1;
    padding: 25px;
    background: #f8fafc;
}

/* HEADER */
.admin-header h1 {
    font-size: 26px;
}

.admin-header p {
    color: #64748b;
    margin-top: 5px;
}

/* =========================
   STATS CARDS
========================= */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stat-card span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
}

/* hover */
.stat-card:hover {
    transform: translateY(-5px);
}

/* =========================
   SECTIONS
========================= */
.section {
    margin-top: 30px;
}

.section h3 {
    margin-bottom: 10px;
}

/* =========================
   TABLE (PROFESSIONAL)
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

th, td {
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

th {
    background: #f1f5f9;
    color: #334155;
}

tr {
    border-bottom: 1px solid #e2e8f0;
}

tr:hover {
    background: #f8fafc;
}

/* =========================
   BUTTONS (UPGRADED)
========================= */
.btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 5px;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn.success {
    background: #22c55e;
    color: white;
}

.btn.danger {
    background: #ef4444;
    color: white;
}

.btn.primary {
    background: #6366f1;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
    }

    .sidebar a {
        margin-right: 10px;
        white-space: nowrap;
    }
}

/* =========================
   BTECH PAGE
========================= */
.btech-page {
    padding-top: 20px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* CARD */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ICON */
.card-icon {
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-icon i {
    color: white;
    font-size: 22px;
}

/* TEXT */
.card h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.card p {
    font-size: 13px;
    color: #64748b;
}

/* HOVER EFFECT (IMPORTANT) */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    opacity: 0;
    transition: 0.3s;
    z-index: 0;
}

.card:hover::before {
    opacity: 0.08;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* keep content above gradient */
.card * {
    position: relative;
    z-index: 1;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .grid {
        gap: 15px;
    }

    .card {
        padding: 20px;
    }
}

/* =========================
   CONTACT PAGE
========================= */
.contact-page {
    padding: 30px 0;
}

/* CONTAINER */
.contact-container {
    width: 92%;
    max-width: 900px;
    margin: auto;
}

/* TITLE */
.page-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

/* GRID */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* CARD */
.info-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* HOVER */
.info-card:hover {
    transform: translateY(-5px);
}

/* TEXT */
.info-card h2 {
    margin-bottom: 15px;
}

.info-card p {
    margin: 10px 0;
    color: #475569;
    font-size: 15px;
}

/* ICON STYLE */
.info-card p strong {
    color: #0f172a;
}

/* =========================
   OPTIONAL CONTACT ACTIONS
========================= */
.contact-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .page-title {
        font-size: 22px;
    }
}

/* =========================
   DASHBOARD PAGE
========================= */
.dashboard {
    padding-bottom: 60px;
}

/* =========================
   HERO
========================= */
.dashboard-hero {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    color: white;
    padding: 50px 20px;
    border-radius: 20px;
    text-align: center;
    margin: 20px auto;
    width: 92%;
    max-width: 1000px;
}

.dashboard-hero h2 {
    font-size: 26px;
}

.dashboard-hero p {
    margin-top: 8px;
    opacity: 0.9;
}

/* =========================
   GRID
========================= */
.dashboard-container {
    width: 92%;
    max-width: 1000px;
    margin: auto;
    margin-top: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* =========================
   CARDS
========================= */
.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s ease;
}

.dashboard-card i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #6366f1;
}

.dashboard-card h3 {
    font-size: 16px;
}

/* HOVER */
.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ADMIN CARD SPECIAL */
.dashboard-card.admin {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.dashboard-card.admin i {
    color: white;
}

/* =========================
   GALLERY
========================= */
.dashboard-gallery {
    width: 92%;
    max-width: 1000px;
    margin: 50px auto;
}

.dashboard-gallery h3 {
    margin-bottom: 15px;
}

/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* IMAGES */
.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* HOVER */
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .dashboard-hero h2 {
        font-size: 20px;
    }
}

/* =========================
   POLICY / DISCLAIMER PAGE
========================= */
.policy-page {
    padding: 40px 0;
}

/* CONTAINER */
.policy-container {
    width: 92%;
    max-width: 900px;
    margin: auto;
}

/* CARD */
.policy-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    line-height: 1.7;
}

/* MAIN TITLE */
.policy-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

/* SUBHEADINGS */
.policy-card h2 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 8px;
    color: #0f172a;
}

/* TEXT */
.policy-card p {
    color: #475569;
    font-size: 15px;
}

/* HIGHLIGHT STRONG */
.policy-card strong {
    color: #0f172a;
}

/* SPACING IMPROVEMENT */
.policy-card p + p {
    margin-top: 10px;
}

/* =========================
   OPTIONAL HOVER EFFECT
========================= */
.policy-card:hover {
    transform: translateY(-3px);
    transition: 0.3s ease;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .policy-card {
        padding: 25px 18px;
    }

    .policy-card h1 {
        font-size: 22px;
    }
}


/* =========================
   HERO WITH IMAGE
========================= */
/* =========================
   HERO (NO OVERLAY - FULL IMAGE)
========================= */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* BACKGROUND IMAGE */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/static/images/library.jpg") center/cover no-repeat;
    z-index: 0;

    /* smooth zoom animation */
    animation: heroZoom 18s ease-in-out infinite alternate;
}

/* CONTENT */
.hero > div {
    position: relative;
    z-index: 2;
    color: white;

    /* text shadow for readability (instead of overlay) */
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* =========================
   TEXT ANIMATION
========================= */
.hero h1 {
    font-size: 44px;
    font-weight: 700;
    animation: fadeSlideUp 1s ease forwards;
}

.hero p {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.3s;
}

/* =========================
   BUTTONS
========================= */
.hero .btn {
    margin: 15px 8px 0;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    backdrop-filter: blur(6px);
}

/* primary */
.hero .btn.primary {
    background: rgba(255,255,255,0.9);
    color: #6366f1;
}

.hero .btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
}

/* outline */
.hero .btn.outline {
    border: 2px solid white;
    color: white;
}

.hero .btn.outline:hover {
    background: rgba(255,255,255,0.15);
}

/* =========================
   ANIMATIONS
========================= */

/* zoom background */
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* text entrance */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        padding: 20px;
    }

    .hero h1 {
        font-size: 26px;
    }
}

/* =========================
   SEARCH BAR (AI STYLE)
========================= */
.search-box {
    width: 92%;
    max-width: 900px;
    margin: 30px auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.search-box input,
.search-box select {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search-box button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: white;
    cursor: pointer;
}

/* =========================
   NOTES (CORE FEATURE)
========================= */
.notes-container {
    width: 92%;
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* NOTE CARD */
.note-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.note-card h3 {
    margin-bottom: 8px;
}

.note-card p {
    font-size: 13px;
    color: #64748b;
}

/* ACTIONS */
.note-actions {
    margin-top: 10px;
}

.note-actions a {
    margin-right: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #6366f1;
}

/* HOVER */
.note-card:hover {
    transform: translateY(-6px);
}

/* =========================
   PAGINATION
========================= */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
}

.pagination a.active {
    background: #6366f1;
    color: white;
}

/* =========================
   STATS
========================= */
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    font-weight: 600;
}

/* =========================
   GALLERY
========================= */
.gallery {
    width: 92%;
    max-width: 1000px;
    margin: auto;
}

.gallery h2 {
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* =========================
   FEATURES
========================= */
.features {
    text-align: center;
    margin: 50px 0;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* =========================
   CTA
========================= */
.cta {
    text-align: center;
    padding: 50px 20px;
}

.cta h2 {
    margin-bottom: 10px;
}

/* =========================
   ANIMATIONS
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: 0.5s ease;
}

.zoom.show {
    opacity: 1;
    transform: scale(1);
}

/* =========================
   AUTH SECTION BASE
========================= */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    overflow: hidden;
}

/* =========================
   CONTAINER
========================= */
.auth-container {
    width: 900px;
    max-width: 95%;
    height: 520px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.1);
    background: white;
    position: relative;
}

/* =========================
   LEFT PANEL (SLIDING)
========================= */
.auth-left {
    width: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.6s ease;
}

.auth-left h1 {
    font-size: 32px;
    font-weight: 700;
}

.auth-left p {
    margin-top: 10px;
    opacity: 0.9;
}

/* =========================
   RIGHT PANEL
========================= */
.auth-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: 0.6s ease;
}

/* =========================
   CARD
========================= */
.auth-card {
    width: 100%;
    max-width: 320px;
    animation: fadeSlide 0.8s ease;
}

.auth-card h2 {
    margin-bottom: 20px;
}

/* =========================
   INPUT GROUP
========================= */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* INPUT */
.input-group input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: #6366f1;
}

/* LABEL */
.input-group label {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    transition: 0.2s;
    pointer-events: none;
}

/* FLOAT EFFECT */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -6px;
    left: 30px;
    font-size: 11px;
    background: white;
    padding: 0 5px;
}

/* =========================
   BUTTON
========================= */
.auth-card .btn.primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.auth-card .btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.3);
}

/* =========================
   LINK
========================= */
.auth-link {
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
}

.auth-link a {
    color: #6366f1;
    text-decoration: none;
}

/* =========================
   SLIDING EFFECT (DESKTOP)
========================= */
.auth-container.slide-mode:hover .auth-left {
    transform: translateX(10px);
}

.auth-container.slide-mode:hover .auth-right {
    transform: translateX(-10px);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE UI (FULL ANIMATION)
========================= */
@media (max-width: 768px) {

    .auth-container {
        flex-direction: column;
        height: auto;
        border-radius: 0;
    }

    .auth-left {
        width: 100%;
        padding: 40px 20px;
        text-align: center;
        animation: slideDown 0.6s ease;
    }

    .auth-right {
        width: 100%;
        padding: 30px 20px;
        animation: slideUp 0.6s ease;
    }

    .auth-card {
        max-width: 100%;
    }
}

/* MOBILE ANIMATIONS */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   NOTES PAGE (MODERN UI)
========================= */
.notes-page {
    width: 92%;
    max-width: 1100px;
    margin: auto;
    padding: 30px 0;
}

/* HEADER */
.notes-header {
    margin-bottom: 25px;
}

.notes-header h2 {
    font-size: 26px;
    font-weight: 600;
}

/* =========================
   TOP SECTION
========================= */
.top-section {
    margin-bottom: 35px;
}

.top-section h3 {
    margin-bottom: 12px;
    color: #6366f1;
}

/* =========================
   GRID
========================= */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

/* =========================
   NOTE CARD
========================= */
.note-card {
    position: relative;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* GRADIENT GLOW */
.note-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    opacity: 0;
    transition: 0.3s;
    z-index: 0;
}

/* CONTENT ABOVE */
.note-card * {
    position: relative;
    z-index: 1;
}

/* TEXT */
.note-card h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.note-card p {
    font-size: 13px;
    color: #64748b;
}

/* =========================
   ACTIONS
========================= */
.note-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.note-actions a,
.note-actions button {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s ease;
}

/* BUTTON COLORS */
.note-actions a:first-child {
    background: #6366f1;
    color: white;
}

.note-actions a:nth-child(2) {
    background: #22c55e;
    color: white;
}

.note-actions button {
    background: #f1f5f9;
}

/* HOVER EFFECT */
.note-actions a:hover,
.note-actions button:hover {
    transform: scale(1.05);
}

/* CARD HOVER */
.note-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.note-card:hover::before {
    opacity: 0.06;
}

/* =========================
   TOP NOTES SPECIAL
========================= */
.top-section .note-card {
    border: 2px solid #6366f1;
}

/* =========================
   EMPTY STATE
========================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #64748b;
    animation: fadeUp 0.6s ease;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.note-card {
    animation: fadeUp 0.5s ease;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .notes-header h2 {
        font-size: 20px;
    }
}

/* =========================
   POLICY PAGE (MODERN)
========================= */
.policy-page {
    padding: 50px 0;
    background: #f8fafc;
}

/* CONTAINER */
.policy-container {
    width: 92%;
    max-width: 900px;
    margin: auto;
}

/* CARD */
.policy-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    line-height: 1.7;
    animation: fadeUp 0.6s ease;
}

/* TITLE */
.policy-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

/* SUBHEADINGS */
.policy-card h2 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #0f172a;
    position: relative;
}

/* underline accent */
.policy-card h2::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #6366f1;
    display: block;
    margin-top: 5px;
    border-radius: 10px;
}

/* TEXT */
.policy-card p {
    color: #475569;
    font-size: 15px;
}

/* LIST */
.policy-card ul {
    padding-left: 20px;
    margin-top: 5px;
}

.policy-card li {
    margin-bottom: 6px;
    color: #475569;
    font-size: 14px;
}

/* STRONG */
.policy-card strong {
    color: #0f172a;
}

/* =========================
   HOVER EFFECT
========================= */
.policy-card:hover {
    transform: translateY(-4px);
    transition: 0.3s ease;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .policy-card {
        padding: 25px 18px;
    }

    .policy-card h1 {
        font-size: 22px;
    }
}

/* =========================
   PROFILE PAGE
========================= */
.profile-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

/* CARD */
.profile-card {
    width: 90%;
    max-width: 380px;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    animation: fadeUp 0.6s ease;
    transition: 0.3s;
}

/* HOVER */
.profile-card:hover {
    transform: translateY(-6px);
}

/* =========================
   AVATAR
========================= */
.profile-avatar {
    margin-bottom: 15px;
}

.profile-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #6366f1;
    box-shadow: 0 8px 20px rgba(99,102,241,0.2);
}

/* =========================
   NAME
========================= */
.profile-card h2 {
    margin-bottom: 5px;
}

/* =========================
   ROLE BADGE
========================= */
.role-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

/* =========================
   DETAILS
========================= */
.profile-details {
    margin: 20px 0;
}

.detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    margin-bottom: 10px;
}

.detail span {
    color: #64748b;
    font-size: 13px;
}

.detail strong {
    font-size: 14px;
}

/* =========================
   LOGOUT BUTTON
========================= */
.logout-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    background: #ef4444;
    color: white;
    transition: 0.3s;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239,68,68,0.3);
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .profile-card {
        padding: 25px 20px;
    }
}

/* =========================
   AUTH SYSTEM (LOGIN + REGISTER)
========================= */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

/* CONTAINER */
.auth-container {
    width: 900px;
    max-width: 95%;
    height: 540px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.1);
    background: white;
    position: relative;
}

/* =========================
   LEFT PANEL
========================= */
.auth-left {
    width: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.6s ease;
    position: relative;
    z-index: 2;
}

/* =========================
   RIGHT PANEL
========================= */
.auth-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: 0.6s ease;
    position: relative;
    z-index: 2;
}

/* =========================
   SLIDING EFFECT
========================= */
.auth-container.slide-mode.register-mode .auth-left {
    transform: translateX(10%);
}

.auth-container.slide-mode.register-mode .auth-right {
    transform: translateX(-10%);
}

/* =========================
   CARD
========================= */
.auth-card {
    width: 100%;
    max-width: 340px;
    animation: fadeUp 0.7s ease;
}

.auth-card h2 {
    margin-bottom: 20px;
}

/* =========================
   INPUT GROUP
========================= */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* INPUT */
.input-group input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    outline: none;
    font-size: 14px;
    transition: 0.25s;
}

/* FOCUS */
.input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

/* LABEL */
.input-group label {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    transition: 0.25s;
}

/* FLOAT LABEL */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -6px;
    left: 30px;
    font-size: 11px;
    background: white;
    padding: 0 5px;
}

/* =========================
   BUTTON
========================= */
.auth-card .btn.primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.auth-card .btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.3);
}

/* =========================
   LINK
========================= */
.auth-link {
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
}

.auth-link a {
    color: #6366f1;
    text-decoration: none;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE (FULL ANIMATED UI)
========================= */
@media (max-width: 768px) {

    .auth-container {
        flex-direction: column;
        height: auto;
        border-radius: 0;
    }

    .auth-left {
        width: 100%;
        text-align: center;
        padding: 40px 20px;
        animation: slideDown 0.6s ease;
    }

    .auth-right {
        width: 100%;
        padding: 30px 20px;
        animation: slideUp 0.6s ease;
    }

    .auth-card {
        max-width: 100%;
    }
}

/* MOBILE ANIMATIONS */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   SEMESTER PAGE
========================= */
.semester-page {
    padding: 40px 0;
    text-align: center;
}

/* HEADER */
.semester-header {
    margin-bottom: 40px;
}

.semester-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.semester-header p {
    margin-top: 8px;
    color: #64748b;
}

/* =========================
   GRID
========================= */
.semester-grid {
    width: 92%;
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* =========================
   CARD
========================= */
.semester-card {
    position: relative;
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s ease;
}

/* GRADIENT GLOW */
.semester-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    opacity: 0;
    transition: 0.3s;
}

/* KEEP CONTENT ABOVE */
.semester-card * {
    position: relative;
    z-index: 1;
}

/* ICON */
.semester-card i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #6366f1;
}

/* TEXT */
.semester-card h3 {
    margin-bottom: 5px;
}

.semester-card p {
    font-size: 13px;
    color: #64748b;
}

/* BUTTON */
.semester-card .btn.primary {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

/* HOVER */
.semester-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.semester-card:hover::before {
    opacity: 0.08;
}

.semester-card:hover .btn.primary {
    transform: scale(1.05);
}

/* =========================
   ANIMATION
========================= */
.semester-card {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .semester-header h1 {
        font-size: 24px;
    }
}

/* =========================
   PAGE BACKGROUND
========================= */
body {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

/* =========================
   CONTAINER
========================= */
.share-container {
    max-width: 620px;
    margin: 50px auto;
    padding: 20px;
}

/* =========================
   CARD (GLASS UI)
========================= */
.share-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeUp 0.6s ease;
}

.share-card:hover {
    transform: translateY(-6px);
}

/* =========================
   TITLE
========================= */
.share-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* =========================
   DETAILS
========================= */
.share-details {
    margin-top: 10px;
}

.share-details p {
    margin: 10px 0;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
}

/* =========================
   BUTTON BASE
========================= */
.btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* DOWNLOAD */
.btn-download {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34,197,94,0.3);
}

/* COPY */
.btn-copy {
    background: #6366f1;
    color: white;
    border: none;
}

.btn-copy:hover {
    transform: scale(1.03);
}

/* WHATSAPP */
.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    transform: scale(1.03);
}

/* =========================
   ACTIONS
========================= */
.actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================
   DIVIDER
========================= */
hr {
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* =========================
   TOAST MESSAGE
========================= */
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
    .share-title {
        font-size: 20px;
    }

    .share-details p {
        font-size: 13px;
    }
}

/* =========================
   SUBJECTS PAGE
========================= */
.subjects-page {
    padding: 40px 0;
}

/* HEADER */
.subjects-header {
    text-align: center;
    margin-bottom: 30px;
}

.subjects-header h2 {
    font-size: 26px;
    font-weight: 600;
}

/* =========================
   GRID
========================= */
.subjects-grid {
    width: 92%;
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* =========================
   CARD
========================= */
.subject-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* GRADIENT OVERLAY */
.subject-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    opacity: 0;
    transition: 0.3s;
    z-index: 0;
}

/* KEEP CONTENT ABOVE */
.subject-card * {
    position: relative;
    z-index: 1;
}

/* ICON */
.subject-card i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 16px;
}

/* TEXT */
.subject-card span {
    font-size: 14px;
    font-weight: 500;
}

/* HOVER */
.subject-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.subject-card:hover::before {
    opacity: 0.06;
}

/* =========================
   ANIMATION
========================= */
.subject-card {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .subjects-header h2 {
        font-size: 20px;
    }
}

/* =========================
   TERMS / POLICY PAGE
========================= */
.policy-page {
    padding: 50px 0;
    background: #f8fafc;
}

/* CONTAINER */
.policy-container {
    width: 92%;
    max-width: 900px;
    margin: auto;
}

/* CARD */
.policy-card {
    background: #ffffff;
    padding: 36px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    line-height: 1.7;
    animation: fadeUp 0.6s ease;
    transition: 0.3s;
}

/* HOVER */
.policy-card:hover {
    transform: translateY(-4px);
}

/* =========================
   TITLE
========================= */
.policy-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

/* =========================
   HEADINGS
========================= */
.policy-card h2 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #0f172a;
    position: relative;
}

/* underline accent */
.policy-card h2::after {
    content: "";
    width: 45px;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    display: block;
    margin-top: 5px;
    border-radius: 10px;
}

/* =========================
   TEXT
========================= */
.policy-card p {
    color: #475569;
    font-size: 15px;
}

/* =========================
   LISTS
========================= */
.policy-card ul {
    margin-top: 5px;
    padding-left: 20px;
}

.policy-card li {
    margin-bottom: 6px;
    font-size: 14px;
    color: #475569;
}

/* =========================
   STRONG TEXT
========================= */
.policy-card strong {
    color: #0f172a;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .policy-card {
        padding: 25px 18px;
    }

    .policy-card h1 {
        font-size: 22px;
    }
}

/* =========================
   UPLOAD PAGE (FINAL PRO UI)
========================= */
.upload-page {
    min-height: 90vh;
    padding: 50px 0;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

/* CONTAINER */
.upload-container {
    width: 92%;
    max-width: 720px;
    margin: auto;
}

/* =========================
   CARD
========================= */
.upload-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    animation: fadeUp 0.6s ease;
    transition: 0.3s;
    z-index: 1;
}

/* FIX OVERLAY ISSUE */
.upload-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none; /* IMPORTANT FIX */
}

.upload-card:hover::before {
    opacity: 0.04;
}

.upload-card:hover {
    transform: translateY(-6px);
}

/* =========================
   TITLE
========================= */
.upload-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* =========================
   FORM ELEMENTS
========================= */
.upload-card label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #64748b;
}

/* SELECT */
.upload-card select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    outline: none;
    font-size: 14px;
    background: #fff;
    position: relative;
    z-index: 10; /* FIX CLICK ISSUE */
    transition: 0.2s;
}

.upload-card select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

/* =========================
   DROP AREA
========================= */
.drop-area {
    position: relative;
    margin-top: 10px;
    padding: 30px;
    border-radius: 14px;
    border: 2px dashed #c7d2fe;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: 0.3s;
    z-index: 1;
}

/* hidden input */
.drop-area input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.drop-area i {
    font-size: 28px;
    color: #6366f1;
}

.drop-area p {
    font-size: 14px;
    color: #64748b;
}

/* hover */
.drop-area:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

/* drag active */
.drop-area.active {
    background: #e0e7ff;
    border-color: #4f46e5;
}

/* =========================
   FILE INFO
========================= */
.file-info {
    margin-top: 10px;
    font-size: 13px;
    color: #0f172a;
}

/* ERROR */
.error {
    margin-top: 5px;
    color: #ef4444;
    font-size: 13px;
}

/* =========================
   PROGRESS BAR
========================= */
.progress-container {
    display: none;
    margin-top: 15px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    transition: width 0.2s ease;
}

/* =========================
   BUTTON
========================= */
.upload-card .btn.primary {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.upload-card .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.3);
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .upload-card {
        padding: 20px;
    }
}

/* Hide mobile bottom nav by default (desktop) */
.mobile-nav {
  display: none;
}

/* Show only on mobile screens */
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    
    background: #fff;
    border-top: 1px solid #ddd;
    
    justify-content: space-around;
    align-items: center;
    
    padding: 8px 0;
    z-index: 999;
  }

  .mobile-nav .nav-item {
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 12px;
  }

  .mobile-nav .nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
  }
}