/* 
 * SAS System - FINAL POLISHED THEME
 * Full Responsive - Zero White Backgrounds - High Visibility
 */

:root {
    --dark-bg: #010812;
    --sidebar-bg: #020c1b;
    --panel-bg: #020c1b;
    --neon-cyan: #00f2ff;
    --neon-blue: #00d2ff;
    --neon-green: #00ff9d;
    --neon-red: #ff0055;
    --text-main: #ffffff;
    --text-dim: #b0b8d1;
    --border-color: rgba(0, 242, 255, 0.2);
}

* { box-sizing: border-box; }

body {
    background-color: var(--dark-bg) !important;
    color: var(--text-main) !important;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.orbitron { font-family: 'Orbitron', sans-serif; }

/* RESPONSIVE WRAPPER */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* SIDEBAR - DESKTOP & MOBILE */
#sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 1050;
    height: 100vh;
    position: fixed;
}

#sidebar.active {
    margin-left: -260px;
}

#content {
    width: 100%;
    margin-left: 260px;
    transition: all 0.3s ease;
    min-height: 100vh;
    background: var(--dark-bg);
}

#content.active {
    margin-left: 0;
}

@media (max-width: 992px) {
    #sidebar { margin-left: -260px; }
    #sidebar.active { margin-left: 0; }
    #content { margin-left: 0; }
}

/* NAVIGATION LINKS */
.tactical-sidebar ul.components li a {
    color: var(--neon-blue) !important;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.tactical-sidebar ul.components li a:hover, 
.tactical-sidebar ul.components li.active > a {
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-cyan) !important;
    border-left-color: var(--neon-cyan);
}

/* NAVBAR */
.tactical-navbar {
    background: var(--sidebar-bg) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* TABLE & TEXT VISIBILITY (STRICT) */
.table, .tactical-table {
    background: transparent !important;
    width: 100%;
}

.table tr, .table td, .table th {
    background: transparent !important;
    color: #ffffff !important; /* Force white text */
    border-color: var(--border-color) !important;
}

.table thead th {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    background: rgba(0, 242, 255, 0.05) !important;
}

/* Fix for activity log text visibility */
.activity-details, .log-text {
    color: var(--text-dim) !important;
}

/* STAT CARDS */
.tactical-stat-card {
    background: rgba(2, 12, 27, 0.8);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #fff;
}

/* Tactical Clock */
.tactical-clock-container {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 4px;
    text-align: right;
    min-width: 200px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    backdrop-filter: blur(5px);
}

.clock-label {
    font-size: 0.65rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    margin-bottom: 2px;
    font-family: 'Orbitron', sans-serif;
}

.clock-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
    line-height: 1;
}

.clock-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
    font-family: 'Orbitron', sans-serif;
}

/* BUTTONS */
.btn-neon {
    border: 1px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    background: transparent !important;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.btn-neon:hover {
    background: var(--neon-cyan) !important;
    color: #000 !important;
}

.btn-tactical {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--neon-cyan) !important;
}

/* UTILITIES */
.tactical-title {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif;
    border-left: 5px solid var(--neon-cyan);
    padding-left: 15px;
}

.text-neon-blue { color: var(--neon-blue) !important; }
.text-neon-cyan { color: var(--neon-cyan) !important; }

/* Tactical Notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tactical-notification {
    background: var(--panel-bg);
    border: 1px solid var(--neon-blue);
    border-left: 4px solid var(--neon-blue);
    width: 320px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tactical-notification.show { transform: translateX(0); }
.tactical-notification.error { border-color: var(--neon-red); border-left-color: var(--neon-red); box-shadow: 0 0 20px rgba(255, 0, 85, 0.2); }
.tactical-notification.success { border-color: var(--neon-green); border-left-color: var(--neon-green); box-shadow: 0 0 20px rgba(0, 255, 157, 0.2); }

.notify-icon { font-size: 1.5rem; }
.tactical-notification.success .notify-icon { color: var(--neon-green); }
.tactical-notification.error .notify-icon { color: var(--neon-red); }

.notify-title { font-family: 'Orbitron', sans-serif; font-weight: bold; font-size: 0.75rem; margin-bottom: 2px; }
.notify-msg { font-size: 0.85rem; color: var(--text-dim); }

.notify-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--neon-blue);
    width: 100%;
    animation: notify-progress 4s linear forwards;
}
.tactical-notification.success .notify-progress { background: var(--neon-green); }
.tactical-notification.error .notify-progress { background: var(--neon-red); }

@keyframes notify-progress {
    from { width: 100%; }
    to { width: 0%; }
}
