

/* ============================================================= */
/*                     ADISHREE MASTER STYLESHEET                */
/*                     (Modernized + Grouped + Safari-Safe)      */
/* ============================================================= */
/* INDEX                                                         */
/* ------------------------------------------------------------- */
/*  1. GLOBAL RESET + FONTS                                      */
/*  2. LANDING / HERO / LOGIN                                    */
/*  3. MODALS + OVERLAYS                                         */
/*  4. DASHBOARD BASE LAYOUT                                     */
/*  5. TOP GOLDEN STRIP (VIVALDI TITLE)                          */
/*  6. KUMKUM-RED MENU BAR (UNIFIED + SAFARI-SAFE)               */
/*  7. BUTTON SYSTEM (UNIFIED ADISHREE BUTTONS)                  */
/*  8. TABLES + ANALYTICS GRID                                   */
/*  9. ADITYA STUDY ZONE (NAMESPACED)                            */
/* 10. UTILITIES + ANIMATIONS                                    */
/* ------------------------------------------------------------- */
/*  NOTE:                                                        */
/*  - Vivaldi font is loaded as a webfont for cross-browser use  */
/*  - Book Antiqua is the global font everywhere else            */
/*  - Red-on-yellow and white-on-red color scheme retained       */
/*  - All dropdowns Safari/iPad compatible                       */
/*  - All buttons unified under .adishree-btn                    */
/*  - All legacy duplicates removed                              */
/* ============================================================= */


/* --------------------------------------------- */
/*  1. GLOBAL RESET + FONTS                      */
/* --------------------------------------------- */

/* Vivaldi webfont (add actual files in /static/fonts) */
@font-face {
    font-family: "Vivaldi";
    src: url("/static/fonts/Vivaldi.woff2") format("woff2"),
         url("/static/fonts/Vivaldi.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* Global base */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Book Antiqua", "Palatino Linotype", serif;
    background: black;
    color: white;
}

/* --------------------------------------------- */
/*  2. LANDING / HERO / LOGIN                    */
/* --------------------------------------------- */

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 (gold, Vivaldi) */
.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 (gold glass) */
.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);
}

/* --------------------------------------------- */
/*  3. MODALS + OVERLAYS                         */
/* --------------------------------------------- */

.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;
}

/* --------------------------------------------- */
/*  4. DASHBOARD BASE LAYOUT                     */
/* --------------------------------------------- */

.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;
}

/* --------------------------------------------- */
/*  5. TOP GOLDEN STRIP (VIVALDI TITLE)          */
/* --------------------------------------------- */

.top-strip {
    width: calc(100% - 40px);
    margin: 0 auto;
    background: #FFD700;
    padding: 28px 20px 34px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

/* 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 (if used) */
.top-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 160px;
}

/* --------------------------------------------- */
/*  6. KUMKUM-RED MENU BAR (UNIFIED + SAFARI-SAFE) */
/* --------------------------------------------- */

.menu-bar {
    width: calc(100% - 40px);
    margin: 8px auto 0 auto;
    background: #8B0000;
    padding: 6px 20px;
    border-radius: 6px;

    position: -webkit-sticky;
    position: sticky;
    top: 0;

    display: -webkit-flex;
    display: flex;
    justify-content: center;
    gap: 24px;
    z-index: 2000;
}

.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;
}

/* Dropdown container */
.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);
}

/* Hover + focus-within for Safari/iPad */
.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown {
    display: block;
}

/* 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, padding-left 0.2s;
}

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

/* --------------------------------------------- */
/*  7. BUTTON SYSTEM (UNIFIED ADISHREE BUTTONS)  */
/* --------------------------------------------- */

.adishree-btn {
    background: transparent;
    border: 1px solid #e6b800;
    color: #ffcc00;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;

    display: inline-block;
    text-decoration: none !important;

    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.adishree-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Bottom-right horizontal golden tabs (Your Page / Admin / Logout) */
.bottom-right-tabs {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 9999;
}

/* Gold tab buttons (match Enter button, smaller) */
.gold-tab {
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    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;
}

.gold-tab:hover {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

/* --------------------------------------------- */
/*  8. TABLES + ANALYTICS GRID                   */
/* --------------------------------------------- */

.compact-grid {
    width: auto;
    margin: 0 auto;
    border-collapse: collapse;
}

.compact-grid th,
.compact-grid td {
    padding: 4px 8px;
    white-space: nowrap;
}

.compact-grid th {
    background: #f2f2f2;
    font-weight: bold;
    color: black;
}

/* You can add .analytics-table if needed */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

/* --------------------------------------------- */
/*  9. ADITYA STUDY ZONE (NAMESPACED)            */
/* --------------------------------------------- */

.aditya-main {
    background: #000;
    padding: 40px;
    min-height: 80vh;
    color: white;
}

/* Aditya dropdowns (namespaced) */
.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: 260px;
    z-index: 3000;
    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;
}

/* --------------------------------------------- */
/* 10. UTILITIES + ANIMATIONS                    */
/* --------------------------------------------- */

/* Role tabs (if still used anywhere) */
.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);
}
