/*:root { 
    --primary: #2ecc71; 
    --dark: #2c3e50; 
    --bg: #fcfcfc; 

}
body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--bg); 
    margin: 0; 
    
}*/

/*new updated*/

/* --- 1. STUDIO MONOCHROME (Ultra-High-End) --- */
:root {
    /* Main Accent - Electric Vermillion (Not regular red, but a premium orange-red) */
    --primary: #ff4532;       
    --primary-hover: #e63e2d;
    --primary-glow: rgba(255, 69, 50, 0.15);
    
    /* Studio Palette - Grayscale Perfection */
    --dark: #000000;          /* Absolute Black for Headings */
    --text-main: #111111;     /* Rich Black for body */
    --text-muted: #888888;    /* Neutral Gray for secondary */
    
    /* Backgrounds - Stark & Clean */
    --bg: #ffffff;            /* Paper White */
    --bg-alt: #f2f2f2;        /* Light Studio Gray */
    
    /* Borders & Glass - Thin & Sharp */
    --border-soft: #eeeeee;   /* Very subtle borders */
    --border-dark: #111111;   /* Sharp accent borders */
    
    /* Shadows - Sharp & Realistic (No soft fuzziness) */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.04);
    --shadow-lg: 0 40px 80px rgba(0,0,0,0.08);
}

/* Base Setup */
body { 
    font-family: 'Poppins', sans-serif; 
    /*background-color: var(--bg); */
    color: var(--text-main);
    margin: 0; 
    line-height: 1.5;
    letter-spacing: -0.03em; /* Very tight, premium typography */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;


    padding: 0;
    /* ☁️ Soft Greyish-White (Warm White) */
    background-color: #F1F5F9; 
    color: #0F172A; /* Midnight Dark for text - High readability */
    font-family: 'Inter', sans-serif;
}

/* Logo - The 'Grasp' Branding */
.logo { 
    font-size: 28px; 
    font-weight: 800; 
    text-decoration: none; 
    color: var(--dark) !important;
    letter-spacing: -2px; /* Super tight logo */
    text-transform: uppercase; /* Minimalist Studio Look */
}

.logo span { 
    color: var(--primary);
    position: relative;
}

/* Optional: Logo paina chinna dot or accent line */
.logo span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: -8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.navbar { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    padding: 10px 6% !important; 
    position: fixed !important; /* Page scroll chesthe navbar kadalakunda */
    top: 0; 
    left: 0;
    width: 100%; 
    height: 70px;
    z-index: 2200; 
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8) !important; /* White Glass */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
/* end updated*/

/*
.navbar { 
    display: flex; 
    justify-content: space-between; 
    padding: 15px 5%; background: white; 
    position: fixed; 
    top: 0; width: 100%; 
    z-index: 2200; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); box-sizing: border-box; 
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-soft);
}*/

.logo { font-size: 24px; font-weight: 800; text-decoration: none; color: var(--dark); }
/*.logo span { color: var(--primary); }*/

/*new updated*/
.history-sidebar { 
    position: fixed; 
    left: 20px; 
    top: 100px; 
    width: 210px; 
    
    /* ⚡ Layer: Thaggincham, result cards venakale untundi */
    
    
    /* Midnight Glass Style */
    background: #0F172A !important; 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    
    padding: 20px; 
    border-radius: 24px; 
    
    /* Border & Shadow */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: none;
    
    max-height: 75vh; 
    overflow-y: auto; 
    
    /* Scrollbar Hide */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    
    /* Content text color fix */
    color: white;

    /* ⚡ HIDDEN STATE */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); /* Koncham paiki lift ayyi untundi */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}

/* --- 💡 PURE WHITE TEXT & HOVER --- */

/* Section Titles (e.g., "History") */
.history-sidebar h3, .history-sidebar h4 {
    color: #FFFFFF !important; /* Pure White for Titles */
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FF471A; /* Mana Brand Color Underline */
    padding-bottom: 5px;
    display: inline-block;
}

/* History Links */
.history-sidebar a, .history-item {
    color: #FFFFFF !important; /* Pure White Text */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85; /* Lightly transparent for hierarchy */
    cursor: pointer !important; 
    user-select: none; /* Text accidental ga select avvakunda */

}

/* Hover Effect: Full Opacity & Brand Background */
.history-sidebar a:hover, .history-item:hover {
    background: rgba(255, 71, 26, 0.2) !important; /* Soft Vermillion Glow */
    color: #FFFFFF !important;
    opacity: 1; /* Full White on Hover */
    transform: translateX(10px); /* Premium Slide */
    box-shadow: -5px 0 0 #FF471A; /* Left Side Brand Indicator */
    cursor: pointer !important;
}

/* Icons inside sidebar */
.history-sidebar i {
    color: #FF471A !important; /* Icons in Brand Color */
    font-size: 16px;
}

/* Chrome/Safari lo scrollbar kanipinchakunda */
.history-sidebar::-webkit-scrollbar {
    display: none;
}
/* end updated*/


/*
.history-sidebar { 
    position: fixed; 
    left: 20px; 
    top: 90px; 
    width: 210px; 240px nundi 210px ki thaggincha 
    background: white; 
    padding: 15px; 
    border-radius: 20px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.05); 
    max-height: 75vh; 
    overflow-y: auto; 
    z-index: 500; 
}*/


/*.history-item { 
    font-size: 13px; 
    font-weight: 500; 
    padding: 12px 0; /* Side paddings teeseysi pure flat look iccha 
    margin-bottom: 0; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    color: var(--text-muted); /* Default ga konchem light ga untundi 
    border-bottom: 1px solid #f0f0f0; /* Paper-thin separator line 
    position: relative;
}

/* Hover Effect - Studio Minimalist Style 
.history-item:hover { 
    color: var(--dark); /* Text bold ga dark avthundi 
    padding-left: 10px; /* Text light ga munduki vasthundi 
}

/* Accent Line on Hover 
.history-item::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 0%;
    background: var(--primary); /* Mana Electric Vermillion 
    transition: 0.3s ease;
}

.history-item:hover::before {
    height: 60%; /* Hover chesinappude accent line vasthundi 
}

/* Trash Icon - Super Subtle 
.history-item span:last-child {
    font-size: 11px;
    filter: grayscale(1);
    opacity: 0;
    transition: 0.3s;
    background: #f5f5f5;
    padding: 5px 8px;
    border-radius: 6px;
}

.history-item:hover span:last-child {
    opacity: 1;
}

.history-item span:last-child:hover {
    background: #fff0f0;
    filter: grayscale(0);
    color: var(--primary);
}



/*
.history-item { font-size: 13px; padding: 10px; border-radius: 10px; margin-bottom: 5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.history-item:hover { background: #f4fdf7; color: var(--primary); }*/


/*new updated
/* --- 10. THE MODERN UTILITY (Modified for Auto-Slide) --- */

.search-wrapper { 
    position: fixed; 
    /* Default Center Position */
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 90%; 
    max-width: 720px; 
    text-align: center; 
    z-index: 2000; 
    /* Smooth Slide Animation */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- SEARCH ACTIVE LOGIC (CSS ONLY) --- */
/* User type cheyagane (placeholder vanish avvagaane) bar kindaki velthundi */
.search-wrapper:has(input:not(:placeholder-shown)) {
    top: auto;
    bottom: 30px;
    transform: translate(-50%, 0);
}

/* Welcome text ni hide cheyadam search modal lo */
.search-wrapper:has(input:not(:placeholder-shown)) #welcome-text {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    transition: 0.3s;
}

/* 1. Normal Placeholder logic (Type chesthunnappudu kindaki velthundi) */
.search-wrapper:has(input:not(:placeholder-shown)) {
    top: auto;
    bottom: 30px;
    transform: translate(-50%, 0);
}

/* 2. RESULTS VACHAKA (Input empty unna sare kindane undali) */
/* 'results-view' block lo unte, ante results unnattu. Appudu search-wrapper ni bottom ki force chesthunnam */
body:has(#results-view[style*="display: block"]) .search-wrapper {
    top: auto;
    bottom: 30px;
    transform: translate(-50%, 0);
}

/* 3. Welcome Text ni kuda ade logic tho hide cheyali */
body:has(#results-view[style*="display: block"]) #welcome-text {
    opacity: 0;
    visibility: hidden;
    height: 0;
}



/* --- THE SOLID SEARCH BOX (Nuvvu icchina style) --- */
.search-box { 
    display: flex; 
   /* background: #ffffff; 
    padding: 8px 12px; 
    border-radius: 14px; 
    border: 1px solid #e5e7eb; 
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); */
    transition: all 0.2s ease;
    align-items: center;

    background: #FFFFFF !important;
    border: 2px solid #0F172A !important; /* Midnight Dark Border */
    border-radius: 12px;
    padding: 12px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);



}

.search-box:focus-within {
    /*border-color: var(--primary); */
    box-shadow: 0 0 0 4px var(--primary-glow); 


    
    border-color: #FF471A !important; /* Focus avvagane Brand Color ki maruthundi */

}

/* Plus Icon (+) */
.plus-icon {
    padding: 0 12px; 
    color: #9ca3af; 
    font-size: 24px; 
    font-weight: 300;
    cursor: pointer; 
}

.plus-icon:hover {
    color: var(--dark);
}

/* Input Field */
.search-box input { 
    flex: 1; 
    border: none; 
    background: transparent; 
    padding: 12px; 
    outline: none; 
    font-size: 16px; 
    font-family: inherit;
    color: #1f2937; 
}

.search-box input::placeholder {
    color: #9ca3af;
}

/* Simple Action Button */
.search-box button { 
    background: #111827; 
    color: #ffffff; 
    border: none;
    padding: 10px 24px; 
    border-radius: 10px; 
    font-weight: 600; 
    font-size: 14px;
    cursor: pointer; 
    transition: background 0.2s;
}

.search-box button:hover { 
    background: var(--primary); 
}
/*end updated*/

/*--new updated--*/

/* --- RESULTS CONTAINER (Clean & Branded) --- */
.results-container { 
    display: none; 
    padding: 100px 5% 150px 280px; 
    transition: all 0.5s ease;
}

/* Logic: User type chesthe automatic ga reveal avvali (No JS logic) */
.search-wrapper:has(input:not(:placeholder-shown)) ~ .results-container {
    display: block;
}

/* --- THE RESULT CARD --- */
.result-card { 
    position: relative; 
    /* ⚡ Sidebar 500 unte, deenni 600 pedadam - So idi top layer */
    
    /* Premium Midnight Theme - White kadu, mana background color ki match cheddam */
    /*background-color: rgba(15, 23, 42, 0.9) !important; */
    backdrop-filter: blur(10px);
    
    /* Border: Left side mana Electric Vermillion accent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /*border-left: 6px solid #FF471A !important; 
    
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    color: white; /* Text white chesa readability kosam */
    
    /* ⚡ Shadow: Dark mode lo subtle glow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    isolation: isolate;

}



/*.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 71, 26, 0.12); /* Hover chesthe mana Vermillion glow 
}*/

/* --- MODAL OVERLAY --- */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top:0; left:0; width:100%; height:100%; 
    background: rgba(15, 23, 42, 0.7); /* Darker, premium overlay */
    z-index: 3000; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(8px); 
}

/* --- THE MODAL CARD --- */
.modal-card { 
    background: white; 
    width: 320px; 
    padding: 30px; 
    border-radius: 20px; 
    text-align: center; 
    border: 1px solid rgba(255, 71, 26, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-card h2 {
    color: #0F172A; /* Dark theme color */
    font-weight: 800;
}

/* Modal Input - Focus logic included */
.modal-card input { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    box-sizing: border-box; 
    outline: none;
    transition: all 0.3s ease;
}

.modal-card input:focus {
    border-color: #FF471A; /* Electric Vermillion border */
    box-shadow: 0 0 0 3px rgba(255, 71, 26, 0.15); /* Soft primary glow */
}

/* Modal Button (If you have one) */
.modal-card button {
    background: #0F172A; /* Dark base */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.modal-card button:hover {
    background: #FF471A; /* Hover lo mana primary color */
}

/* end updated*/




/* Dynamic Search Animation */
/*.search-wrapper { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 600px; text-align: center; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2000; }
.search-wrapper.active { top: auto; bottom: 30px; transform: translate(-50%, 0); max-width: 800px; background: white; padding: 15px; border-radius: 40px; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }

.search-box { display: flex; background: #f1f3f4; border-radius: 50px; padding: 5px; border: 1px solid #ddd; }
.search-box input { flex: 1; border: none; background: transparent; padding: 12px 20px; outline: none; font-size: 16px; }
.search-box button { background: var(--primary); color: white; border: none; padding: 0 25px; border-radius: 50px; font-weight: 600; cursor: pointer; }




.results-container { display: none; padding: 100px 5% 150px 280px; }
.result-card { background: white; padding: 35px; border-radius: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); margin-bottom: 20px; }

.modal-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); z-index: 3000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-card { background: white; width: 320px; padding: 30px; border-radius: 20px; text-align: center; }
.modal-card input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; }
*/


.plus-icon:hover {
    color: var(--primary) !important;
    background: #e8f5e9;
    border-radius: 50px 0 0 50px;
}

/* Search box adjustment for plus symbol */
/*.search-box {
    display: flex;
    background: #f1f3f4;
    border-radius: 50px;
    padding: 2px; 
    border: 1px solid #ddd;
    overflow: hidden;
}*/



/* Tooltip Container */
.bookmark-btn {
    position: relative;
}

/* Tooltip Parent Container */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Tooltip Black Bubble */
.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 0;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Button ki paina */
    left: 50%;
    margin-left: -60px; /* Center align kosam */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    pointer-events: none; /* Mouse deeni meeda vellina ibbandi lekunda */
}

/* Tooltip Arrow (Kinda chinna triangle) */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Hover effect: Show tooltip */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Optional: Login lekapothe star light ga kanipisthundi */
.not-logged-in {
    opacity: 0.5;
    cursor: help !important;
}
/* --- Image Zoom Effect --- */
.zoomable-img:hover {
    transform: scale(1.6); /* Image size 1.6x peddaga avthundi */
    z-index: 100 !important; /* Text and other images venaka skip avvadu */
    box-shadow: 0 15px 35px rgba(0,0,0,0.25); /* Focus effect kosam shadow */
    border-radius: 10px;
}

/* --- Bookmark Tooltip --- */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 130px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 0;
    position: absolute;
    z-index: 200;
    bottom: 125%; /* Button paina */
    left: 50%;
    margin-left: -65px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.not-logged-in {
    opacity: 0.4;
}


.notes-btn {
        background: #2ecc71; color: white; border: none; padding: 8px 15px;
        border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
        transition: 0.3s; margin-bottom: 15px; display: flex; align-items: center; gap: 8px;
    }
    .notes-btn:hover { background: #27ae60; transform: translateY(-2px); }

    @media (max-width: 1024px) {
    .results-container {
        padding-left: 250px;
    }
}

@media (max-width: 850px) {
    /* Mobile/Small Tabs lo sidebar ni hide chesi content ni center cheyali */
    .history-sidebar {
        display: none; /* Mobile lo side bar unte design padavthundi */
    }
    .results-container {
        padding-left: 5%; /* Full width for mobile */
    }
}

/*new updated*/
/* --- MARKDOWN BODY POLISH (Brand Colors) --- */

.markdown-body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #334155; /* Neutral Dark Gray */
}

/* Titles with Mana Primary Color Accent */
.markdown-body h3 {
    color: #0F172A; /* Deep Dark */
    margin-top: 25px;
    border-left: 4px solid #FF471A; /* Electric Vermillion */
    padding-left: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 0 !important; /* Base padding reset for custom list style */
    margin: 20px 0 !important;
    display: block !important;
}

/* List Items - Clean & Modern */
.markdown-body li {
    list-style: none;
    background: #F8FAFC; /* Lightest Gray */
    margin-bottom: 10px !important;
    padding: 12px 18px !important;
    border-radius: 12px;
    border-left: 3px solid #E2E8F0; /* Soft Border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State - Mana Theme Touch */
.markdown-body li:hover {
    border-left-color: #FF471A; /* Vermillion Border on Hover */
    background: #FFF5F2; /* Very subtle Vermillion tint background */
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(255, 71, 26, 0.05);
}

/* Sub-text or Small Highlights */
.markdown-body sub {
    font-size: 0.8em;
    color: #FF471A; /* Primary color instead of orange */
    font-weight: 600;
    vertical-align: sub;
}

/* If you use bold text inside list items */
.markdown-body li strong {
    color: #0F172A;
}
/*end updated*/

/* 
.markdown-body ul, .markdown-body ol {
    padding-left: 25px !important;
    margin: 15px 0 !important;
    display: block !important; 
}
.markdown-body li {
    margin-bottom: 8px !important;
}
.markdown-body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #34495e;
}

.markdown-body h3 {
    color: #2ecc71;
    margin-top: 20px;
    border-left: 4px solid #2ecc71;
    padding-left: 10px;
    font-size: 1.2rem;
}

.markdown-body ul {
    list-style: none;
    padding-left: 0;
}

.markdown-body li {
    background: #f8f9fa;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    border-left: 3px solid #ddd;
    transition: 0.3s;
}

.markdown-body li:hover {
    border-left-color: #2ecc71;
    background: #f0fdf4;
    transform: translateX(5px);
}

.markdown-body sub {
    font-size: 0.75em;
    color: #e67e22;
    font-weight: bold;
}*/
.ai-diagram-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border: 2px solid #f1f3f5; /* సాఫ్ట్ బార్డర్ */
    padding: 10px;
    background: white;
    filter: contrast(1.05); /* బొమ్మ క్లారిటీ కోసం కొంచెం కాంట్రాస్ట్ */
    image-rendering: -webkit-optimize-contrast; /* టెక్స్ట్ క్లియర్ గా ఉండటానికి */
}
.diagram-check-icon {
    font-size: 14px;
    color: #2ecc71; /* గ్రీన్ కలర్ */
    margin-right: 5px;
}


/*new updated*/
/* --- NAV CONNECT BUTTON (Modern Utility Style) --- */

.nav-connect-btn {
    background: #0F172A !important;
    color: #FFFFFF !important; /* Deep Dark Gray */
    border: 2px solid #E2E8F0; /* Simple Light Gray Border */
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

/* Hover State - Direct Vermillion Pop */
.nav-connect-btn:hover {
    background: #FF471A !important; /* Force Electric Vermillion */
    color: #FFFFFF !important;      /* Force White Text */
    border-color: #FF471A !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 71, 26, 0.2); 
}

/* Active State */
.nav-connect-btn:active {
    transform: translateY(0);
}

/*end updated*/



/*
.nav-connect-btn {
    background: transparent;
    color: #6d4c41;  
    border: 2px solid #6d4c41;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    margin-right: 10px;
    transition: 0.3s;
}

.nav-connect-btn:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}*/



/* --- ⚡ MODAL FORCE BRANDING (No Green/Brown) --- */

/* 1. Backdrop Overlay */
#connector-modal, #connectModal {
    display: none; 
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important; /* Premium Dark Shade */
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px) !important;
}

/* 2. Modal Content Card */
#connector-modal > div, .modal-card {
    background: #ffffff !important;
    padding: 35px !important;
    border-radius: 24px !important;
    width: 360px !important;
    max-width: 90% !important;
    /* Vermillion shadow for brand depth */
    box-shadow: 0 25px 50px rgba(255, 71, 26, 0.25) !important;
    text-align: center;
    position: relative !important;
    border: 2px solid #FF471A !important; /* Solid Vermillion Border */
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Text Styling */
#connector-modal h4, .modal-card h4, .modal-card h2 {
    margin-top: 0 !important;
    color: #0F172A !important; /* Solid Dark Gray */
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* 4. Labels (Interaction Elements) */
#connector-modal label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding: 12px 18px !important;
    background: #F8FAFC !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    border: 1px solid #E2E8F0 !important;
    transition: all 0.2s ease !important;
}

/* Force Hover State for Labels */
#connector-modal label:hover {
    border-color: #FF471A !important;
    background: #FFF5F2 !important;
    color: #FF471A !important;
    transform: scale(1.02);
}

/* 5. Buttons (Global Force) */
#connector-modal button, .modal-card button {
    background: #0F172A !important; /* Dark Gray */
    color: #FFFFFF !important;
    padding: 14px 28px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: 0.3s !important;
}

#connector-modal button:hover, .modal-card button:hover {
    background: #FF471A !important; /* Solid Vermillion */
    box-shadow: 0 10px 20px rgba(255, 71, 26, 0.3) !important;
}

/* 6. Form Inputs & Checkboxes */
#connector-modal input[type="text"], 
#connector-modal input[type="email"],
.modal-card input {
    border: 2px solid #E2E8F0 !important;
}

#connector-modal input:focus, .modal-card input:focus {
    border-color: #FF471A !important;
    outline: none !important;
}

#connector-modal input[type="checkbox"], 
#connector-modal input[type="radio"] {
    accent-color: #FF471A !important; /* Checkbox color */
}

/* Animation */
@keyframes modalPop {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}



/*
#connectModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999; 
}

.modal-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    animation: fadeIn 0.3s ease; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


#connector-modal {
    display: none;             
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;    
    height: 100vh !important;   
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important; 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); 
}


#connector-modal > div {
    background: white !important;
    padding: 25px !important;
    border-radius: 15px !important;
    width: 320px !important;
    max-width: 90% !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    text-align: center;
    position: relative !important;
    animation: modalPop 0.3s ease-out; 
}


@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 4. లోపల ఉన్న టెక్స్ట్ మరియు బటన్స్ సెట్టింగ్స్ 
#connector-modal h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 20px;
}

#connector-modal label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
}
*/

.find-btn
{
    background:#0F172A; color:white; border:none; padding:10px 20px; border-radius:10px; cursor:pointer; font-weight:700;
}

.find-btn:hover
{
   background: #FF471A !important; /* Solid Vermillion */
    box-shadow: 0 10px 20px rgba(255, 71, 26, 0.3) !important;
}

.logo-group {
    display: flex;
    flex-direction: column; /* Arrow ni logo kinda pettadaniki */
    align-items: center;    /* Center arrow under logo */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-group:active {
    transform: scale(0.95); /* Click chesinappudu chinna bounce effect */
}

.nav-drop-arrow {
    font-size: 10px; /* Chinnadi ga unte premium ga untundi */
    color: #FF471A;
    margin-top: 2px;
    transition: transform 0.4s ease;
}

.logo-group.active .nav-drop-arrow {
    transform: rotate(180deg);
}

.navbar.active .nav-drop-arrow {
    transform: rotate(180deg);
}

.history-sidebar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Normal position ki vasthundi */
}

.auth-section {
    display: flex; 
    align-items: center; 
    gap: 15px;
}

#menu-trigger {
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: 0.3s;
}

#menu-trigger:hover {
    background: rgba(15, 23, 42, 0.05);
}

.nav-drop-arrow {
    animation: bounce-attention 2s ease-in-out 5; /* 3 times bounce ayyi aaguthundi */
}

@keyframes bounce-attention {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media screen and (max-width: 768px) {
    .history-sidebar {
        /* 1. RESET LAPTOP STYLES (Chala important) */
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        
        /* 2. NEW MOBILE DIMENSIONS */
        position: fixed !important;
        width: 85% !important; /* Width ni inkoncham thaggincha premium look kosam */
        max-width: 350px !important; /* Too wide avvakunda cap pettam */
        top: 80px !important;
        
        /* 3. VISIBILITY & STYLE */
        background: rgba(15, 23, 42, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 15px !important;
        z-index: 100000 !important;
        
        /* 4. ANIMATION */
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) !important;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }

    /* Active state for Mobile */
    .history-sidebar.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* Inside elements text color fix */
    .history-sidebar * {
        color: #ffffff !important;
    }
}

/* ⚡ Explain Me Section - Mobile Fix */
@media (max-width: 600px) {
    /* 1. మెయిన్ కంటైనర్ ని ఒకే లైన్ లో ఉంచి, స్క్రోల్ అయ్యేలా చేద్దాం */
    .length-selector-parent, 
    div[style*="justify-content:space-between"] {
        display: flex !important;
        flex-direction: row !important; /* కిందకి వెళ్లకుండా పక్కకే ఉండాలి */
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 10px !important;
        overflow-x: auto !important; /* పక్కకి స్క్రోల్ అవ్వడానికి */
        white-space: nowrap !important;
        padding: 10px !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Scrollbar ని హైడ్ చేద్దాం */
    .length-selector-parent::-webkit-scrollbar,
    div[style*="justify-content:space-between"]::-webkit-scrollbar {
        display: none;
    }

    /* 2. బటన్స్ కంటైనర్ కూడా పక్కకే ఉండాలి */
    .length-selector {
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0 !important; /* బటన్స్ సైజ్ తగ్గకుండా ఉండాలి */
    }

    /* 3. Explain Me బటన్ కూడా అదే లైన్ లో చివర ఉంటుంది */
    .explain-me-btn, 
    button[onclick*="startTeacherMode"] {
        flex-shrink: 0 !important; /* ఇది కూడా చిన్నగా అవ్వకూడదు */
        width: auto !important;
        margin: 0 !important;
    }
}

.len-btn {
    flex: 0 0 auto;
    padding: 6px 12px !important;
}


/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 480px) {
    .search-box {
        padding: 8px 12px !important; /* ప్యాడింగ్ తగ్గించాం */
        border-radius: 10px !important;
    }
    .search-box input {
        padding: 8px !important;
        font-size: 16px !important; /* మొబైల్ జూమ్ అవ్వకుండా ఉండటానికి */
    }
    .search-box button {
        padding: 8px 12px !important; /* బటన్ వెడల్పు తగ్గించాం */
        font-size: 13px !important;
        min-width: fit-content;
    }
}


