@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Sanskrit:wght@400;700&display=swap');

/* --------------------------------------------- */
/*  GLOBAL                                       */
/* --------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, Helvetica, sans-serif;
    background: black;
    color: white;
}

/* --------------------------------------------- */
/*  LANDING / HERO / LOGIN  (UNCHANGED)          */
/* --------------------------------------------- */

header {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 10;
}

.login-btn {
    background: rgba(255,255,255,0.25);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.login-btn:hover {
    background: rgba(255,255,255,0.5);
}

/* Fullscreen background image for landing */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/background.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Brand title */
.brand-title {
    font-family: "Tiro Devanagari Sanskrit", serif;
    font-size: 100px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.55);
    letter-spacing: 2px;
    margin-top: 0;
    white-space: nowrap;
}

/* Swiper */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* Brand container */
.brand-container {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Shri Yantra logo */
.logo-overlay {
    width: 150px;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.65));
    animation: slowPulse 6s ease-in-out infinite;
}

/* Logo pulse animation */
@keyframes slowPulse {
    0%   { transform: scale(1);   opacity: 0.80; }
    50%  { transform: scale(1.08); opacity: 1.0; }
    100% { transform: scale(1);   opacity: 0.80; }
}

/* Enter button */
.enter-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 40px;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: 0.3s ease;
}

.enter-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transform: translateX(-50%) scale(1.05);
}

/* --------------------------------------------- */
/*  LOGIN MODAL (UNIFIED + PREMIUM)              */
/* --------------------------------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #111;
    padding: 32px;
    width: 320px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.35);
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-box h2 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 26px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #FFD700;
    background: rgba(0,0,0,0.35);
    color: white;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

.modal-input:focus {
    border-color: #ffea80;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.modal-button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #FFD700;
    color: black;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    transition: 0.25s ease;
}

.modal-button:hover {
    background: #ffea80;
    transform: scale(1.03);
}

.modal-error {
    color: #ff4444;
    margin-top: 12px;
    font-size: 14px;
}

.modal-success {
    color: #00cc66;
    margin-top: 12px;
    font-size: 14px;
}


/* --------------------------------------------- */
/*  SHARED DASHBOARD COMPONENTS                  */
/* --------------------------------------------- */

/* Main dashboard container – black background + brain (Abhishek) */
.dashboard-container {
    position: relative;
    padding: 120px 40px;
    min-height: 600px;
    background: black;
    overflow: hidden;
}

/* Faded brain background */
.dashboard-container::before {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 550px;
    height: 550px;
    background: url("/static/images/brain.png") no-repeat center;
    background-size: contain;
    opacity: 0.30;
    filter: invert(1) brightness(2.8) contrast(3.2);
    z-index: 0;
}

/* Ensure content stays above background */
.dashboard-container > * {
    position: relative;
    z-index: 2;
    color: white;
}

/* --------------------------------------------- */
/*  TOP YELLOW STRIP                             */
/* --------------------------------------------- */

.top-strip {
    width: calc(100% - 40px);
    margin: 0 auto;
    background: #FFD700; /* Golden yellow */
    padding: 28px 20px 34px 20px; /* Increased height + extra bottom padding */
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;          /* Ensures no black line */
    box-shadow: none;      /* Ensures no shadow line */
}


/* Flexible spacer */
.flex-spacer {
    flex: 1;
    min-width: 180px;
}

/* Centered title in Vivaldi font */
.center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Vivaldi", cursive;
    font-size: 54px;
    color: #8B0000;
    font-weight: 600;
    top: 4px;
    letter-spacing: 2px;
}

/* Right-side buttons container */
.top-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 160px;
}

/* Admin button */
.admin-btn {
    background: #C00000;
    color: white !important;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    display: inline-block;
}

.admin-btn:hover {
    background: #A00000;
}

/* Logout button */
.logout-btn {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

/* --------------------------------------------- */
/*  KUMKUM RED MENU BAR WITH DROPDOWNS           */
/* --------------------------------------------- */

.menu-bar {
    width: calc(100% - 40px);
    margin: -2px auto 0 auto;   /* FIX: pull red bar upward to remove black stripe */
    background: #8B0000;        /* Kumkum red */
    padding: 6px 20px;          /* Narrow height */
    border-radius: 6px;

    display: flex;
    justify-content: center;
    gap: 24px;
}

.menu-item {
    position: relative;
}

.menu-label,
.menu-item > span {
    color: white;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    display: inline-block;
}

.menu-item, .menu-label, .aditya-dropbtn {
    font-family: "Book Antiqua", "Palatino Linotype", serif;
    font-weight: 600;
    font-size: 18px;
}

/* Abhishek dropdown (shared) */
.menu-item:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #A30000;
    padding: 10px;
    border-radius: 0 0 6px 6px;
    min-width: 200px;
    z-index: 20;
    margin-top: -1px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Safety bridge */
.menu-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    display: block;
}

.dropdown a {
    display: block;
    color: white;
    padding: 8px 0;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown a:hover {
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 5px;
}

/* --------------------------------------------- */
/*  ROLE TABS (BOTTOM)                           */
/* --------------------------------------------- */

.role-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.75);
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    backdrop-filter: blur(6px);
    z-index: 999;
}

.role-tab-btn {
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    transition: 0.2s ease;
}

.role-tab-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* --------------------------------------------- */
/*  ABHISHEK DASHBOARD                           */
/* --------------------------------------------- */
/* (Uses dashboard-container + shared components) */

/* Add any Abhishek-specific overrides here if needed */

/* --------------------------------------------- */
/*  ADITYA DASHBOARD                             */
/* --------------------------------------------- */

/* Main content area (black study zone) */
.aditya-main {
    background: #000;
    padding: 40px;
    min-height: 80vh;
    color: white;
}

/* Aditya dropdowns (namespaced to avoid conflict) */
.aditya-dropdown {
    position: relative;
    display: inline-block;
}

.aditya-dropbtn {
    background-color: #8B0000;
    color: white;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
}

.aditya-dropdown-content {
    display: none;
    position: absolute;
    background-color: #A30000;
    min-width: 200px;
    z-index: 20;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.aditya-dropdown-content a {
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
}

.aditya-dropdown:hover .aditya-dropdown-content {
    display: block;
}

/* Lesson area (dark) */
#lesson-area {
    width: 100%;
    min-height: 300px;
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    overflow-y: auto;
}

/* Symbol bar */
.symbol-bar button {
    background: #222;
    color: #FFD700;
    border: 1px solid #444;
    padding: 6px 12px;
    margin: 4px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Response area */
.response-area textarea {
    width: 100%;
    height: 250px;
    padding: 12px;
    font-size: 16px;
    resize: vertical;
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
}
