/* Global Dark Theme overrides if needed, focusing on header first */

/* Header / Navbar Customization */
.navbar-custom {
    background-color: #0d1117;
    /* Dark background similar to screenshot */
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #21262d;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-blue {
    color: #4da3ff;
    /* Adjust to match the blue in screenshot */
}

.brand-white {
    color: #ffffff;
}

.navbar-custom .nav-link {
    color: #e6edf3 !important;
    font-weight: 500;
    margin-right: 15px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-custom .nav-link:hover {
    color: #4da3ff !important;
}

.navbar-custom .nav-link i {
    margin-right: 5px;
}

/* Custom Buttons in Navbar */
.btn-nav-outline {
    border: 1px solid #30363d;
    color: #4da3ff;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-nav-outline:hover {
    border-color: #4da3ff;
    background-color: rgba(77, 163, 255, 0.1);
    color: #4da3ff;
}

.btn-nav-alert {
    border: 1px solid #30363d;
    color: #ff7b72;
    /* Reddish for logout */
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-nav-alert:hover {
    border-color: #ff7b72;
    background-color: rgba(255, 123, 114, 0.1);
    color: #ff7b72;
}

/* Notification Bell */
.nav-icon-link {
    color: #e6edf3;
    font-size: 1.1rem;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.nav-icon-link:hover {
    color: #fff;
}

/* Main Body Dark Theme Background (to match header for the page) */
body {
    background-color: #0d1117;
    color: #c9d1d9;
}

/* Adjust headings for dark theme */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
}

/* Specific text highlights */
.text-highlight-green {
    color: #d2f700;
    /* Lime green/yellow styling */
}

/* Cards dark theme */
.card-custom {
    border-radius: 6px;
}

/* Dark Theme Cards */
.card {
    background-color: #161b22;
    border: 1px solid #30363d;
}

.card .card-title {
    color: #ccff00 !important;
    /* Neon Green Title */
}

.card .card-text {
    color: #8b949e;
}

/* Override text-secondary within cards to be white or light gray if needed */
.card .text-secondary {
    color: #c9d1d9 !important;
}

/* Button in Card - White Outline */
.card .btn-outline-light,
.card .btn-primary,
.card a[class*="btn-"] {
    color: #ffffff;
    border-color: #ffffff;
    background-color: transparent;
    transition: all 0.2s;
}

.card .btn-outline-light:hover,
.card .btn-primary:hover,
.card a[class*="btn-"]:hover {
    background-color: #ffffff;
    color: #161b22;
}

/* =========================================
   GLOBAL DARK MODE OVERRIDES
   ========================================= */

/* Force Body Background */
body {
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
}

/* Override Backgrounds */
.bg-light,
.bg-white {
    background-color: #0d1117 !important;
    /* Main Dark BG */
}

/* Sections that were light/white should seamlessly blend */
section.bg-light,
section.bg-white {
    background-color: #0d1117 !important;
}

/* Secondary Backgrounds (often lighter gray) -> Darker Gray */
.bg-secondary {
    background-color: #161b22 !important;
    /* Slightly lighter than main BG */
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #ffffff !important;
}

/* Override Text Colors - Placed AFTER headings to ensure they take precedence */
.text-dark {
    color: #e6edf3 !important;
    /* Light text */
}

.text-muted {
    color: #afbecf !important;
    /* Gray text */
}

.text-secondary {
    color: #ccff00 !important;
    /* Neon Green from user request */
}



.btn-secondary {
    background-color: #ccff00;
    border-color: #ccff00;
    color: #000000;
    /* Black text on neon background */
}

.btn-secondary:hover {
    background-color: #b3e600;
    border-color: #b3e600;
    color: #000000;
}

/* Links (default) */
a {
    color: #4da3ff;
}

a:hover {
    color: #79c0ff;
}

/* List Groups (if any) */
.list-group-item {
    background-color: #161b22;
    border-color: #30363d;
    color: #c9d1d9;
}

/* Form Controls (Inputs) */
.form-control {
    background-color: #0d1117;
    border-color: #30363d;
    color: #c9d1d9;
}

.form-control:focus {
    background-color: #0d1117;
    border-color: #4da3ff;
    color: #ffffff;
}

/* Tables (if any) */
.table {
    color: #c9d1d9;
    border-color: #30363d;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    color: #c9d1d9;
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.05);
}