/* --- ROOT VARIABLES --- */
:root {
    --red: #ff0000;
    --red-glow: rgba(255, 0, 0, 0.6);
    --neon-green: #00ffcc; /* Input box numbers & success states */
    --bg-dark: #050505;
    --sidebar-bg: #0a0a0a;
    --card-bg: #000000;
    --border-color: #1a1a1a;
    --text-main: #ffffff;
    --text-dim: #555555;
    --orbitron: 'Orbitron', sans-serif;
    --roboto: 'Roboto Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- CORE RESET --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    touch-action: manipulation; 
}

html, body { 
    height: 100%; 
    width: 100%; 
    background: var(--bg-dark); 
    color: var(--text-main); 
    font-family: var(--orbitron);
    overflow-x: hidden;
}

/* --- LAYOUT STRUCTURE --- */
body { display: flex; flex-direction: column; }

.admin-header {
    width: 100%; 
    background: #000; 
    border-bottom: 2px solid var(--red);
    padding: 10px 25px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.brand-section { display: flex; flex-direction: column; align-items: center; flex: 1; }
.brand-img { max-width: 220px; filter: drop-shadow(0 0 8px var(--red)); }

.logout-btn {
    background: transparent; 
    border: 1px solid var(--red); 
    color: var(--red);
    padding: 8px 16px; 
    font-family: var(--roboto); 
    font-weight: bold;
    cursor: pointer; 
    border-radius: 4px; 
    text-transform: uppercase; 
    transition: var(--transition);
}
.logout-btn:hover { background: var(--red); color: #fff; box-shadow: 0 0 15px var(--red); }

/* --- MAIN WRAPPER --- */
.admin-wrapper { display: flex; flex: 1; height: calc(100vh - 70px); }

/* --- SIDEBAR NAVIGATION --- */
.sidebar {
    width: 260px; 
    background: var(--sidebar-bg); 
    border-right: 1px solid var(--border-color);
    display: flex; 
    flex-direction: column; 
    padding: 15px 10px;
    overflow-y: hidden;
}

.nav-scroll-container {
    display: flex; 
    flex-direction: column; 
    overflow-y: auto; 
    flex: 1;
}

.nav-scroll-container::-webkit-scrollbar { width: 3px; }
.nav-scroll-container::-webkit-scrollbar-thumb { background: var(--red); }

.nav-group-label {
    font-size: 10px; 
    color: #444; 
    margin: 15px 0 8px 10px;
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 900;
}

.nav-btn {
    background: #0d0d0d; 
    border: 1px solid #151515; 
    color: #777;
    padding: 12px 15px; 
    margin-bottom: 6px; 
    text-align: left;
    font-family: var(--roboto); 
    font-size: 12px; 
    text-transform: uppercase;
    cursor: pointer; 
    transition: var(--transition); 
    display: flex;
    align-items: center; 
    gap: 12px; 
    border-radius: 4px;
}

.nav-btn i { width: 18px; color: var(--red); font-size: 14px; text-align: center; }
.nav-btn.white-accent i { color: #fff; }

.nav-btn:hover, .nav-btn.active {
    background: #1a0000; 
    color: #fff; 
    border-color: var(--red);
    box-shadow: inset 4px 0 0 var(--red);
}

.nav-btn.active { 
    background: var(--red) !important; 
    box-shadow: 0 0 15px var(--red-glow); 
}
.nav-btn.active i { color: #fff; }

/* --- CONTENT AREA --- */
.content-area {
    flex: 1; 
    padding: 30px; 
    background: radial-gradient(circle at top right, #100000, #050505);
    overflow-y: auto;
}

.panel-header { border-left: 4px solid var(--red); padding-left: 20px; margin-bottom: 30px; }
.panel-header h1 { font-size: 22px; letter-spacing: 2px; text-transform: uppercase; }
.panel-header p { font-family: var(--roboto); color: var(--text-dim); font-size: 12px; margin-top: 5px; }

/* --- MODULE COMPONENTS --- */
.module-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.7); 
    max-width: 850px; 
    animation: fadeIn 0.4s ease-out; 
}

/* Profit / Loss / Numbers Styling */
h1, h2, h3 { font-family: var(--orbitron); }
.module-card h1 { 
    font-family: var(--roboto); 
    font-weight: 900; 
    font-size: 32px; 
    text-shadow: 0 0 15px var(--red-glow); 
}

/* --- INPUTS & BUTTONS --- */
.input-label { 
    font-size: 10px; 
    color: #666; 
    margin-bottom: 6px; 
    display: block; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.input-box { 
    width: 100%; 
    background: #080808; 
    border: 1px solid #222; 
    padding: 12px; 
    color: var(--neon-green); 
    font-family: var(--roboto); 
    font-weight: bold; 
    margin-bottom: 18px; 
    border-radius: 4px; 
    outline: none; 
    transition: 0.2s;
}
.input-box:focus { border-color: var(--red); background: #0c0c0c; }

.action-btn { 
    width: 100%; 
    padding: 16px; 
    background: var(--red); 
    border: none; 
    color: #fff; 
    font-family: var(--orbitron); 
    font-weight: 900; 
    cursor: pointer; 
    transition: 0.3s; 
    box-shadow: 0 0 15px var(--red-glow); 
    border-radius: 4px; 
    text-transform: uppercase;
}
.action-btn:hover { transform: scale(1.01); filter: brightness(1.2); }
.action-btn:active { transform: scale(0.98); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .admin-wrapper { flex-direction: column; }
    
    .sidebar {
        width: 100%; 
        height: auto; 
        border-right: none; 
        border-bottom: 1px solid var(--border-color);
        padding: 10px;
    }

    .nav-scroll-container {
        flex-direction: row; 
        overflow-x: auto; 
        gap: 8px; 
        padding-bottom: 8px;
    }

    .nav-btn {
        flex: 0 0 auto; 
        margin-bottom: 0; 
        padding: 10px 15px; 
        font-size: 11px;
    }

    .nav-group-label { display: none; }
    
    .brand-img { max-width: 160px; }
    
    .content-area { padding: 15px; }
    .panel-header { margin-bottom: 20px; }
    .panel-header h1 { font-size: 18px; }

    .module-card { padding: 15px; }
}

.action-btn {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: 1px solid #333;
    font-family: 'Orbitron';
    font-size: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* Animations */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Custom Scrollbar for Content Area */
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-track { background: #000; }
.content-area::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
.content-area::-webkit-scrollbar-thumb:hover { background: var(--red); }
/* --- SOCIAL MEDIA ICONS OLD COLOR --- */
.social-row { 
    display: flex; 
    gap: 20px; 
    margin-top: 10px; 
}

.social-row a { 
    color: #ffffff !important;   /* Default White Color */
    font-size: 18px; 
    transition: all 0.3s ease; 
}

.social-row a:hover { 
    color: #ff0000 !important;   /* Hover chesinappudu Red Color */
    transform: scale(1.2);       /* Chinna zoom effect */
}
