/* ============================================================
   GHOSTTRACK — DARK INDUSTRIAL UI THEME
   FINAL VERSION — FIXED SIDEBAR, BUTTONS, INPUTS, TABLES, MODALS
   ============================================================ */

body.dark-bg {
    background: #0a0a0a;
    color: #d0f8d0;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    height: 100vh;
    background: #000; /* FIXED — was #222 */
    padding: 20px;
    box-shadow: 4px 0 10px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-logo {
    color: #00ff99;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #00ff99;
}

.sidebar-nav a {
    color: #00ffcc;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    font-size: 16px;
    transition: 0.2s ease;
}

.sidebar-nav a:hover {
    color: #fff;
    padding-left: 10px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
    margin-left: 250px;
    padding: 30px;
}

/* ============================================================
   CARDS
   ============================================================ */
.gt-card {
    background: #111;
    border: 1px solid #00ff99;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 255, 150, 0.2);
}

.page-title {
    font-size: 30px;
    margin-bottom: 20px;
}

/* ============================================================
   INPUTS
   ============================================================ */
.gt-input {
    width: 100%;
    background: #000;
    border: 1px solid #00ff99;
    color: #00ffcc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 12px;
    font-family: inherit;
}

.gt-input:focus {
    border-color: #00ffaa;
    outline: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    background: #00ff99;
    border: none;
    color: #000;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: 0.2s;
    margin-right: 6px;
}

.btn:hover {
    background: #00ffaa;
}

.btn.small {
    padding: 6px 10px;
    font-size: 14px;
}

.btn.danger {
    background: #ff0044;
    color: white;
}

.btn.danger:hover {
    background: #ff3366;
}

/* ============================================================
   TABLES
   ============================================================ */
.gt-table {
    width: 100%;
    border-collapse: collapse;
    color: #ccffe6;
}

.gt-table th {
    background: #003322;
    padding: 12px;
    border-bottom: 2px solid #00ff99;
}

.gt-table td {
    padding: 10px;
    border-bottom: 1px solid #004422;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    width: 400px;
    background: #111;
    border: 1px solid #00ff99;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0, 255, 150, 0.3);
}

/* ============================================================
   STATUS / EMPTY STATES
   ============================================================ */
.loading {
    color: #00ffaa;
}
.empty {
    color: #777;
}
.error {
    color: #ff4444;
    font-weight: bold;
}
/* ============================================================
   FIX INPUTS TURNING WHITE ON TYPE / FOCUS / AUTOFILL
   ============================================================ */

.gt-input,
.gt-input:focus,
.gt-input:hover,
.gt-input:active {
    background: #000 !important;
    color: #00ffcc !important;
    border: 1px solid #00ff99 !important;
    -webkit-text-fill-color: #00ffcc !important;
    box-shadow: none !important;
}

/* Chrome autofill fix */
input.gt-input:-webkit-autofill,
input.gt-input:-webkit-autofill:hover,
input.gt-input:-webkit-autofill:focus,
input.gt-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #000 inset !important;
    -webkit-text-fill-color: #00ffcc !important;
    caret-color: #00ffcc !important;
}
