﻿/* =========================================
   NAVBAR (SOFT, NOT HARSH BLACK)
========================================= */
.main-header.navbar {
    background-color: #2f353a !important;
    border-bottom: 1px solid #3a3f44;
}

/* =========================================
   SIDEBAR (MATCH ADMINLTE TONE)
========================================= */
.main-sidebar {
    background-color: #343a40 !important;
}

/* Brand */
.brand-link {
    background-color: #343a40 !important;
    border-bottom: 1px solid #3f474e;
    color: #fff !important;
}

/* =========================================
   USER PANEL
========================================= */
.user-panel {
    border-bottom: 1px solid #3f474e;
}

/* =========================================
   NAV ITEMS (THIS IS THE KEY FIX)
========================================= */
.nav-sidebar .nav-link {
    color: #c2c7d0 !important;
    border-radius: 6px;
    margin: 4px 10px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

    /* REMOVE harsh backgrounds */
    .nav-sidebar .nav-link:not(.active) {
        background: transparent !important;
    }

    /* HOVER (SOFT — THIS IS WHY ADMINLTE LOOKS GOOD) */
    .nav-sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
        color: #ffffff !important;
    }

    /* ACTIVE (YOUR GREEN — BUT SOFTENED) */
    .nav-sidebar .nav-link.active {
        background-color: #009900 !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

/* ICONS */
.nav-sidebar .nav-icon {
    margin-right: 10px;
    font-size: 14px;
}

/* =========================================
   HEADERS (UPDATE / USERS / ETC)
========================================= */
.nav-header {
    color: #8a939b !important;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 15px 5px;
}

/* =========================================
   TREEVIEW ARROWS
========================================= */
.nav-sidebar .nav-link > .right {
    right: 1rem;
}

/* =========================================
   CONTENT (KEEP CLEAN DEFAULT)
========================================= */
.content-wrapper {
    background-color: #f4f6f9;
}

/* =========================================
   CARDS (SOFT, LIKE DEMO)
========================================= */
.card {
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

/* =========================================
   BUTTONS (LESS HARSH)
========================================= */
.btn-primary {
    background-color: #009900;
    border-color: #009900;
}

    .btn-primary:hover {
        background-color: #007a00;
    }

/* =========================================
   FORMS (MATCH DEMO FEEL)
========================================= */
.form-control {
    border-radius: 4px;
}

    .form-control:focus {
        border-color: #009900;
        box-shadow: 0 0 0 0.15rem rgba(0,153,0,0.15);
    }

/* =========================================
   LIMPOPO BUTTON SYSTEM (FINAL - STRONG)
========================================= */

/* BASE FIX (protect against global overrides) */
.btn {
    border-radius: 4px;
    font-weight: 500;
}

    /* =========================================
   PRIMARY (GREEN)
========================================= */
    .btn.btn-primary,
    button.btn-primary {
        background-color: #009900 !important;
        border-color: #009900 !important;
        color: #ffffff !important;
    }

        .btn.btn-primary:hover,
        button.btn-primary:hover {
            background-color: #007a00 !important;
            border-color: #007a00 !important;
        }

    .btn.btn-success,
    button.btn-success {
        background-color: #009900 !important;
        border-color: #009900 !important;
        color: #ffffff !important;
    }

        .btn.btn-success:hover,
        button.btn-success:hover {
            background-color: #007a00 !important;
            border-color: #007a00 !important;
        }

    /* =========================================
   INFO (DARK GREY)
========================================= */
    .btn.btn-info,
    button.btn-info {
        background-color: #FFCC00 !important;
        border-color: #333333 !important;
        color: #333333 !important;
    }

        .btn.btn-info:hover,
        button.btn-info:hover {
            background-color: #333333 !important;
            border-color: #FFCC00 !important;
            color: #fff !important;
        }

    /* =========================================
   SECONDARY (LIGHT GREY)
========================================= */
    .btn.btn-secondary,
    .btn.btn-default,
    button.btn-secondary {
        background-color: #333333 !important;
        color: #fff !important;
    }

        .btn.btn-secondary:hover,
        button.btn-secondary:hover {
            background-color: #333333 !important;
            border-color: #009900 !important;
            color: #009900 !important;
        }

    /* =========================================
   WARNING (YELLOW)
========================================= */
    .btn.btn-warning,
    button.btn-warning {
        background-color: #FFCC00 !important;
        border-color: #FFCC00 !important;
        color: #000000 !important;
    }

        .btn.btn-warning:hover {
            background-color: #e6b800 !important;
        }

    /* =========================================
   DANGER (RED)
========================================= */
    .btn.btn-danger,
    button.btn-danger {
        background-color: #CC0000 !important;
        border-color: #CC0000 !important;
        color: #ffffff !important;
    }

        .btn.btn-danger:hover {
            background-color: #a30000 !important;
        }

    /* =========================================
   SMALL BUTTONS (EDIT ETC)
========================================= */
    .btn.btn-sm {
        padding: 4px 10px !important;
        font-size: 12px;
    }


.content-header h1 {
    color: #009900;
    font-weight: 600;
}

/* =========================================
   DATATABLE HEADERS - LIMPOPO CI
========================================= */

/* Header background */
table.dataTable thead th {
    background-color: #009900 !important;
    color: #ffffff !important;
    border-color: #007a00 !important;
}

    /* Sorting icons (important for visibility) */
    table.dataTable thead th.sorting,
    table.dataTable thead th.sorting_asc,
    table.dataTable thead th.sorting_desc {
        color: #ffffff !important;
    }

    /* Hover effect on header */
    table.dataTable thead th:hover {
        background-color: #007a00 !important;
    }

/* Fix for AdminLTE table borders */
.table thead th {
    border-bottom: 2px solid #007a00 !important;
}

/* =========================================
   TABS - LIMPOPO CI
========================================= */

/* Default tab */
.nav-tabs .nav-link {
    color: #333333 !important;
    background-color: #F2F2F2 !important;
    border: 1px solid #E6E9EE !important;
}

    /* Active tab */
    .nav-tabs .nav-link.active {
        background-color: #FFCC00 !important;
        color: #000000 !important;
        border-color: #FFCC00 !important;
        font-weight: 600;
    }

    /* Hover state */
    .nav-tabs .nav-link:hover {
        background-color: #ffe066 !important;
        color: #000000 !important;
    }

/* =========================================
   LINKS - LIMPOPO CI
========================================= */

/* Default links */
a:not(.btn):not(.nav-link):not(.page-link) {
    color: #FFCC00;
    text-decoration: none;
    transition: color 0.2s ease;
}

    /* Hover */
    a:not(.btn):not(.nav-link):not(.page-link):hover {
        color: #009900;
        text-decoration: underline;
    }

/* =========================================
   ENVIRONMENT BANNER - LIMPOPO CI
========================================= */

.env-banner {
    width: 100%;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background-color: #333333; /* charcoal */
    color: #FFCC00; /* CI yellow */

    border-bottom: 2px solid #FFCC00;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    /* Icons match text */
    .env-banner i {
        color: #FFCC00;
    }

/* Optional: subtle shadow for depth */
.env-banner {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* =========================================
   GLOBAL FORM TEXT CONSISTENCY
========================================= */

/* All inputs, selects, textareas */
input,
select,
textarea,
.form-control {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    color: #333333 !important;
    font-weight: 400;
}

/* Placeholder text */
::placeholder {
    color: #9aa0a6 !important;
    opacity: 1;
}

/* Dropdowns specifically */
select.form-control,
select {
    height: calc(2.25rem + 2px);
    padding: 6px 12px;
}

/* Textareas */
textarea.form-control {
    resize: vertical;
}

/* Disabled fields */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
}

/* =========================================
   SELECT2 FIX (IMPORTANT - YOU ARE USING IT)
========================================= */

.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px);
    border-radius: 4px;
    border: 1px solid #ced4da;
    font-size: 14px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.select2-container--default .select2-selection__rendered {
    line-height: 2.25rem;
    color: #333333;
}

.select2-container--default .select2-selection__arrow {
    height: 100%;
}

/* Focus state aligned with your green */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #009900 !important;
    box-shadow: 0 0 0 0.15rem rgba(0,153,0,0.15);
}

.btn-primary-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background-color: #FFF0 !important;
    border-color: #009900 !important;
    color: #000 !important;
}

/* =========================================
   Main layout Call centre css.
========================================= */

.main-header .support-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid #adb5bd;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
}

    .main-header .support-phone:hover,
    .main-header .support-phone:focus {
        background-color: #454d55;
        color: #fff;
        text-decoration: none;
    }

    .main-header .support-phone:focus-visible {
        outline: 3px solid #ffcc00;
        outline-offset: 2px;
    }

@media (max-width: 575.98px) {
    .main-header .support-phone-label {
        display: none;
    }
}