/* ==========================================================
   ADMIN GLOBAL
========================================================== */

:root {
    --admin-yellow: #ffda43;
    --admin-black: #000;
    --admin-dark: #000;
    --admin-bg: #f4f5f7;
    --admin-white: #ffffff;
    --admin-border: #e5e7eb;
    --admin-muted: #6b7280;
    --admin-green: #198754;
    --admin-red: #dc3545;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--admin-bg);
    color: var(--admin-black);
}


/* ==========================================================
   LOGIN
========================================================== */

.admin-login-page {
    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px;

    background:
        linear-gradient(135deg,
            #111111,
            #252525);
}

.admin-login-card {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    border-radius: 18px;

    padding: 45px 40px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);
}

.admin-logo {
    font-size: 14px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #111111;

    margin-bottom: 10px;
}

.admin-login-card h1 {
    font-size: 28px;

    font-weight: 800;

    margin: 0 0 8px;
}

.login-subtitle {
    color: var(--admin-muted);

    margin-bottom: 30px;
}

.admin-login-icon {
    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--admin-yellow);

    font-size: 28px;

    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label,
.admin-form-card label {
    font-weight: 700;

    margin-bottom: 8px;
}

.form-control,
.form-select {
    min-height: 46px;

    border: 1px solid #d9dce1;

    border-radius: 8px;

    box-shadow: none !important;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--admin-yellow);

    box-shadow:
        0 0 0 3px rgba(251, 195, 85, 0.2) !important;
}

.admin-login-button {
    width: 100%;

    border: 0;

    background: var(--admin-yellow);

    color: #111111;

    font-weight: 800;

    padding: 14px;

    border-radius: 8px;

    transition: 0.2s;
}

.admin-login-button:hover {
    background: #eeb340;
}


/* ==========================================================
   ADMIN LAYOUT
========================================================== */

.admin-body {
    min-height: 100vh;
}

.admin-wrapper {
    min-height: 100vh;

    display: flex;
}

.admin-sidebar {
    width: 250px;

    flex-shrink: 0;

    background: var(--admin-black);

    color: #ffffff;

    min-height: 100vh;

    padding: 25px 18px;
}

.admin-brand {
    font-size: 17px;

    font-weight: 900;

    letter-spacing: 1.5px;

    color: var(--admin-yellow);

    padding: 10px 12px 30px;
}

.admin-user {
    display: flex;

    gap: 12px;

    align-items: center;

    padding: 14px;

    background: #1d1d1d;

    border-radius: 10px;

    margin-bottom: 25px;
}

.admin-user>i {
    font-size: 30px;

    color: var(--admin-yellow);
}

.admin-user strong {
    display: block;

    font-size: 14px;
}

.admin-user small {
    color: #a5a5a5;
}

.admin-sidebar nav {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.admin-sidebar nav a {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #cfcfcf;

    text-decoration: none;

    padding: 13px 14px;

    border-radius: 8px;

    font-weight: 600;

    transition: 0.2s;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: var(--admin-yellow);

    color: #111111;
}

.admin-sidebar nav i {
    font-size: 18px;
}

.admin-main {
    flex: 1;

    min-width: 0;

    padding: 35px;
}

.admin-topbar {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 30px;
}

.admin-topbar h1 {
    font-size: 30px;

    font-weight: 850;

    margin: 5px 0;
}

.admin-topbar p {
    color: var(--admin-muted);

    margin: 0;
}

.back-link {
    color: #555;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}

.back-link:hover {
    color: #111;
}


/* ==========================================================
   STATISTICS
========================================================== */

.admin-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.admin-stat-card {
    background: #ffffff;

    border: 1px solid var(--admin-border);

    border-radius: 12px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 16px;
}

.admin-stat-icon {
    width: 52px;

    height: 52px;

    border-radius: 12px;

    background: #fff3cf;

    color: #111;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 23px;
}

.admin-stat-card span {
    display: block;

    color: var(--admin-muted);

    font-size: 13px;

    margin-bottom: 3px;
}

.admin-stat-card strong {
    display: block;

    font-size: 25px;
}


/* ==========================================================
   CARDS
========================================================== */

.admin-card,
.admin-form-card,
.admin-profile-card {
    background: #ffffff;

    border: 1px solid var(--admin-border);

    border-radius: 14px;

    overflow: hidden;
}

.admin-card-header {
    padding: 24px;

    border-bottom: 1px solid var(--admin-border);
}

.admin-card-header h2 {
    margin: 0 0 4px;

    font-size: 21px;

    font-weight: 800;
}

.admin-card-header p {
    margin: 0;

    color: var(--admin-muted);
}


/* ==========================================================
   TABLE
========================================================== */

.admin-table {
    margin: 0;
}

.admin-table thead th {
    background: #fafafa;

    border-bottom: 1px solid var(--admin-border);

    color: #555;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    white-space: nowrap;
}

.admin-table tbody td {
    padding: 14px 12px;

    border-color: var(--admin-border);

    font-size: 14px;
}

.staff-table-person {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 210px;
}

.staff-table-person img,
.staff-table-placeholder {
    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;
}

.staff-table-placeholder {
    display: flex;

    align-items: center;

    justify-content: center;

    background: #eeeeee;

    color: #777;

    font-size: 20px;
}

.staff-table-person strong {
    display: block;
}

.staff-table-person small {
    display: block;

    color: #777;

    margin-top: 2px;
}

.staff-action-select {
    min-width: 185px;

    font-size: 13px;
}

.status-badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}

.status-active {
    background: #dff5e8;

    color: #157347;
}

.status-inactive {
    background: #eeeeee;

    color: #555;
}

.status-suspended {
    background: #fde2e2;

    color: #b02a37;
}

.status-on-leave {
    background: #fff0d2;

    color: #946200;
}

.verification-enabled {
    color: #198754;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}

.verification-disabled {
    color: #dc3545;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================================
   FORM
========================================================== */

.admin-form-card {
    padding: 30px;

    max-width: 1050px;
}

.admin-form-card h2 {
    margin-bottom: 25px;

    font-weight: 800;
}

.admin-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-section-heading {
    font-weight: 800;

    font-size: 18px;

    border-bottom: 1px solid var(--admin-border);

    padding-bottom: 12px;

    margin-bottom: 20px;
}


/* ==========================================================
   PROFILE
========================================================== */

.admin-profile-card {
    padding: 30px;
}

.admin-profile-top {
    display: flex;

    align-items: center;

    gap: 25px;

    padding-bottom: 30px;

    border-bottom: 1px solid var(--admin-border);

    margin-bottom: 30px;
}

.admin-profile-photo,
.admin-profile-placeholder {
    width: 120px;

    height: 120px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;
}

.admin-profile-placeholder {
    background: #eeeeee;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 45px;

    color: #888;
}

.admin-profile-top h2 {
    font-size: 28px;

    font-weight: 850;

    margin: 0 0 5px;
}

.admin-profile-top p {
    color: var(--admin-muted);

    margin-bottom: 12px;
}

.detail-pill {
    display: inline-block;

    background: #f1f1f1;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;

    margin-right: 5px;
}

.admin-detail-section {
    margin-bottom: 35px;
}

.admin-section-title {
    font-size: 18px;

    font-weight: 850;

    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom: 2px solid var(--admin-yellow);
}

.admin-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.admin-detail-box {
    background: #fafafa;

    border: 1px solid var(--admin-border);

    border-radius: 8px;

    padding: 15px;
}

.admin-detail-box span {
    display: block;

    color: var(--admin-muted);

    font-size: 12px;

    margin-bottom: 6px;

    text-transform: uppercase;
}

.admin-detail-box strong {
    display: block;

    line-height: 1.6;

    overflow-wrap: anywhere;
}

.current-photo {
    margin-top: 25px;
}

.current-photo p {
    font-weight: 700;
}

.current-photo img {
    width: 120px;

    height: 120px;

    border-radius: 10px;

    object-fit: cover;

    border: 1px solid var(--admin-border);
}


/* ==========================================================
   BUTTONS
========================================================== */

.btn-warning {
    background: var(--admin-yellow);

    border-color: var(--admin-yellow);

    color: #111;

    font-weight: 800;
}

.btn-warning:hover {
    background: #eeb340;

    border-color: #eeb340;

    color: #111;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 991px) {

    .admin-sidebar {
        width: 210px;
    }

    .admin-main {
        padding: 25px;
    }

    .admin-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .admin-wrapper {
        display: block;
    }

    .admin-sidebar {
        width: 100%;

        min-height: auto;

        padding: 15px;
    }

    .admin-brand {
        padding: 8px 5px 15px;
    }

    .admin-sidebar nav {
        flex-direction: row;

        overflow-x: auto;
    }

    .admin-sidebar nav a {
        white-space: nowrap;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar {
        align-items: flex-start;

        flex-direction: column;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: auto;
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-profile-top {
        flex-direction: column;

        align-items: flex-start;
    }

    .admin-profile-card {
        padding: 20px;
    }

    .admin-form-card {
        padding: 20px;
    }

}



/* =========================================
   AON OIL LOGISTICS - LOGIN PAGE
========================================= */

.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 30px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-family: Arial, Helvetica, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.login-card {
    width: 100%;
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo-icon {
    width: 65px;
    height: 65px;
    background: #fbc355;
    color: #171717;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
}

.login-logo h3 {
    font-size: 21px;
    font-weight: 800;
    color: #171717;
    margin: 0;
    letter-spacing: 1px;
}

.login-logo p {
    font-size: 13px;
    color: #777777;
    margin-top: 6px;
}

.login-heading {
    margin-bottom: 25px;
}

.login-heading h4 {
    font-size: 23px;
    font-weight: 700;
    color: #202020;
    margin-bottom: 7px;
}

.login-heading p {
    font-size: 14px;
    color: #777777;
    margin: 0;
}

.login-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.login-card .input-group-text {
    background: #f8f8f8;
    border-color: #dddddd;
    color: #777777;
}

.login-card .form-control {
    height: 48px;
    border-color: #dddddd;
    font-size: 14px;
    box-shadow: none;
}

.login-card .form-control:focus {
    border-color: #fbc355;
    box-shadow: 0 0 0 3px rgba(251, 195, 85, 0.15);
}

.login-button {
    height: 49px;
    background: #fbc355;
    color: #171717;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.login-button:hover {
    background: #e8ad37;
    color: #171717;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    color: #999999;
    font-size: 12px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 22px;
    }
}




/* =========================================
   DASHBOARD
========================================= */

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.admin-topbar h4 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 5px;
}

.admin-topbar p,
.dashboard-intro p {
    color: #888;
    font-size: 13px;
    margin: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-date {
    font-size: 13px;
    color: #666;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fbc355;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dashboard-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.dashboard-intro h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}

.dashboard-primary-btn {
    background: #fbc355;
    color: #171717;
    border: 0;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-primary-btn:hover {
    background: #e8ad37;
    color: #171717;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.dashboard-stat-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 9px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.stat-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.stat-blue {
    background: #e7f0ff;
    color: #3478d4;
}

.stat-green {
    background: #e5f7ed;
    color: #23985b;
}

.stat-yellow {
    background: #fff5d9;
    color: #c58b13;
}

.stat-purple {
    background: #f0eaff;
    color: #8157c9;
}

.stat-orange {
    background: #fff0e2;
    color: #d77a26;
}

.stat-cyan {
    background: #e3f7fa;
    color: #16899b;
}

.stat-red {
    background: #ffebeb;
    color: #d64a4a;
}

.stat-dark {
    background: #eeeeee;
    color: #333333;
}

.dashboard-stat-card span {
    font-size: 12px;
    color: #888;
}

.dashboard-stat-card h3 {
    font-size: 25px;
    font-weight: 700;
    margin: 4px 0;
    color: #202020;
}

.dashboard-stat-card small {
    font-size: 11px;
    color: #999;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 9px;
    padding: 20px;
    margin-bottom: 22px;
    min-width: 0;
}

.dashboard-content-grid .dashboard-panel {
    margin-bottom: 0;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-heading h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px;
}

.panel-heading p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.panel-heading a {
    font-size: 12px;
    color: #b47b14;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-table {
    margin-bottom: 0;
    white-space: nowrap;
}

.dashboard-table th {
    background: #fafafa;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    padding: 12px 10px;
}

.dashboard-table td {
    font-size: 12px;
    color: #555;
    padding: 13px 10px;
    vertical-align: middle;
}

.dashboard-table td strong {
    color: #333;
}

.dashboard-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.status-success {
    background: #e6f7ed;
    color: #23864d;
}

.status-warning {
    background: #fff4d9;
    color: #a8750d;
}

.status-danger {
    background: #ffebeb;
    color: #bd3c3c;
}

.status-neutral {
    background: #eeeeee;
    color: #666;
}

.dashboard-empty {
    text-align: center;
    padding: 25px !important;
    color: #999 !important;
    font-size: 12px;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #f1f1f1;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #fff5df;
    color: #b47b14;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-details strong {
    font-size: 12px;
}

.activity-details p {
    margin: 4px 0;
    font-size: 12px;
    color: #666;
}

.activity-details small {
    font-size: 10px;
    color: #aaa;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-access-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #eeeeee;
    border-radius: 7px;
    text-decoration: none;
    color: #444;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
}

.quick-access-grid a:hover {
    background: #fff9eb;
    border-color: #fbc355;
}

.quick-access-grid i {
    color: #b47b14;
    font-size: 19px;
}

.admin-footer {
    padding: 15px 0;
    text-align: center;
    color: #aaa;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .admin-date {
        display: none;
    }
}

.admin-sidebar nav form {
    margin: 0;
}

.admin-sidebar nav .sidebar-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    background: transparent;
    border: none;
    padding: 12px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

.admin-sidebar nav .sidebar-link:hover {
    background: var(--admin-yellow);
    color: #111;
}

.admin-sidebar nav .sidebar-link i {
    font-size: 17px;
    width: 20px;
    text-align: center;
}



/* ==========================================================
   CLIENT MANAGEMENT
========================================================== */

.status-pending {
    background: #fff0d2;
    color: #946200;
}

.client-filter-form {
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeee;
}

.client-filter-form .form-control,
.client-filter-form .form-select {
    min-height: 42px;
    font-size: 13px;
}

.client-filter-form button {
    min-height: 42px;
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================================
   CLIENT MODULE EXTRA STYLES
========================================================== */
.client-avatar-cell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff3cf;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.table-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}