:root {
    --bg-dark: #06090e;
    --bg-card: #0d131f;
    --bg-sidebar: #080d16;
    --primary-cyan: #00f0ff;
    --accent-green: #00ff87;
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    --border-color: #1e293b;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-body); }
html, body { background-color: var(--bg-dark); color: var(--text-white); width: 100%; min-height: 100vh; overflow-x: hidden; }

/* Main Grid Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-logo span { display: block; font-size: 0.65rem; color: var(--accent-green); letter-spacing: 1px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary-cyan);
    border-left: 3px solid var(--primary-cyan);
}

.nav-item i { font-size: 1.1rem; width: 22px; text-align: center; }

/* Main Content Operating Area */
.main-content {
    flex-grow: 1;
    padding: 1.8rem 2.5rem;
    width: 100%;
    max-width: 1400px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.top-bar h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #fff;
    letter-spacing: 1px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Corporate Cards & Data Tables */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: left;
}
.stat-box h4 { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; margin-bottom: 0.3rem; }
.stat-box .number { font-family: var(--font-heading); font-size: 1.8rem; color: var(--accent-green); font-weight: bold; }

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: #000;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-cyan);
}

.btn-submit {
    background: var(--primary-cyan);
    color: #000;
    border: none;
    padding: 0.85rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }

/* Data Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 600px; }
.data-table th, .data-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { background: rgba(0, 240, 255, 0.05); color: var(--primary-cyan); font-family: var(--font-heading); font-size: 0.8rem; }
.data-table td { color: #cbd5e1; }

.badge-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}
.badge-green { background: rgba(0, 255, 135, 0.15); color: #00ff87; border: 1px solid #00ff87; }
.badge-blue { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid #00f0ff; }

/* Responsive Mobile Rules */
@media screen and (max-width: 900px) {
    .app-container { flex-direction: column; }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    }
    .sidebar.mobile-open { transform: translateX(0); }

    .main-content { padding: 1.2rem 1rem; }
    .mobile-menu-toggle { display: block; }
}