/* =========================================================
   HELPDESKPRO - GLOBAL STYLESHEET
   ========================================================= */

:root {
    --primary: #4f8cff;
    --primary-dark: #3978e8;
    --primary-light: #edf4ff;

    --dark: #08111f;
    --dark-secondary: #101a30;

    --text: #172033;
    --text-secondary: #718096;
    --text-light: #aebbd0;

    --white: #ffffff;
    --background: #f7f9fc;
    --border: #e4e9f0;

    --success: #22a06b;
    --warning: #d99218;
    --danger: #df4148;
    --info: #3984d8;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 5px 20px rgba(20, 35, 60, 0.05);
    --shadow-md: 0 12px 35px rgba(20, 35, 60, 0.08);
    --shadow-lg: 0 20px 60px rgba(20, 35, 60, 0.12);

    --transition: 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #eef1f6;
}

::-webkit-scrollbar-thumb {
    background: #b9c4d5;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   COMMON CONTAINER
   ========================================================= */

.page-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.main-navbar {
    height: 72px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: var(--white);

    border-radius: 10px;
    font-size: 18px;
}

.main-navbar .nav-link {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--white);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);

    background: var(--primary);
    color: var(--white);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}


.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--white);
    color: var(--text);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    border-color: #c8d2e0;
    background: #f8fafc;
    color: var(--text);
}


.btn-danger-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;
    padding: 0 16px;

    border: none;
    border-radius: var(--radius-sm);

    background: var(--danger);
    color: var(--white);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    padding: 32px 0 24px;
}

.page-header h1 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    margin-bottom: 28px;
}

.section-heading .eyebrow {
    display: block;

    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    margin-bottom: 7px;
}

.section-heading h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.7px;
    margin-bottom: 7px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}


/* =========================================================
   CARDS
   ========================================================= */

.card-custom {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-custom-hover {
    transition: var(--transition);
}

.card-custom-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


/* =========================================================
   FORM
   ========================================================= */

.form-label-custom {
    display: block;

    color: #39465a;
    font-size: 12px;
    font-weight: 600;

    margin-bottom: 7px;
}

.form-control-custom,
.form-select-custom {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    border: 1px solid #dce2ea;
    border-radius: var(--radius-sm);

    background: var(--white);
    color: var(--text);

    font-size: 13px;

    outline: none;
    transition: var(--transition);
}

textarea.form-control-custom {
    height: auto;
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
}

.form-control-custom::placeholder {
    color: #a2adbc;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.10);
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert-custom {
    padding: 12px 14px;

    border-radius: var(--radius-sm);

    font-size: 12px;
    font-weight: 500;
}

.alert-success-custom {
    background: #eaf8f1;
    border: 1px solid #c9eedc;
    color: #18794e;
}

.alert-danger-custom {
    background: #fff0f0;
    border: 1px solid #ffd4d4;
    color: #c4383f;
}

.alert-warning-custom {
    background: #fff7e7;
    border: 1px solid #f6dfad;
    color: #96620e;
}

.alert-info-custom {
    background: #edf6ff;
    border: 1px solid #d2e9ff;
    color: #286aa5;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge-custom {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 30px;

    font-size: 10px;
    font-weight: 600;
}

.badge-success {
    background: #eaf8f1;
    color: #18794e;
}

.badge-warning {
    background: #fff7e7;
    color: #96620e;
}

.badge-danger {
    background: #fff0f0;
    color: #c4383f;
}

.badge-info {
    background: #edf6ff;
    color: #286aa5;
}

.badge-neutral {
    background: #f0f2f5;
    color: #657184;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-wrapper {
    min-height: 100vh;
    background: var(--background);
}

.dashboard-content {
    padding: 0 0 40px;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.stat-card {
    position: relative;

    padding: 20px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    overflow: hidden;
}

.stat-card::after {
    content: "";

    position: absolute;
    right: -25px;
    top: -25px;

    width: 80px;
    height: 80px;

    background: var(--primary-light);

    border-radius: 50%;
}

.stat-card-icon {
    position: relative;
    z-index: 1;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 10px;

    font-size: 18px;

    margin-bottom: 15px;
}

.stat-card-label {
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 3px;
}

.stat-card-value {
    color: var(--text);
    font-size: 25px;
    font-weight: 800;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.custom-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.custom-table th {
    padding: 13px 16px;

    background: #f8fafc;
    border-bottom: 1px solid var(--border);

    color: #647084;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    text-align: left;
}

.custom-table td {
    padding: 15px 16px;

    border-bottom: 1px solid #edf0f4;

    color: #4c596b;

    font-size: 12px;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr {
    transition: var(--transition);
}

.custom-table tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 55px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 50%;

    font-size: 23px;
}

.empty-state h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.dashboard-sidebar {
    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: 245px;

    background: var(--dark);
    color: var(--white);

    padding: 20px 15px;

    z-index: 1000;

    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 5px 10px 25px;

    color: var(--white);

    font-size: 18px;
    font-weight: 800;
}

.sidebar-brand-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    border-radius: 9px;
}

.sidebar-section-title {
    padding: 15px 11px 8px;

    color: #637187;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 10px 11px;
    margin-bottom: 3px;

    border-radius: 8px;

    color: #8e9db2;

    font-size: 12px;
    font-weight: 500;

    transition: var(--transition);
}

.sidebar-link i {
    width: 17px;
    text-align: center;
    font-size: 15px;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.sidebar-link.active {
    background: rgba(79, 140, 255, 0.16);
    color: #79a5ff;
}

.sidebar-link.danger {
    color: #e88489;
}

.sidebar-link.danger:hover {
    background: rgba(223, 65, 72, 0.10);
    color: #ff9a9e;
}

.dashboard-main {
    margin-left: 245px;
    min-height: 100vh;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.dashboard-topbar {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.topbar-title {
    font-size: 16px;
    font-weight: 700;
}

.topbar-subtitle {
    color: var(--text-secondary);
    font-size: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   LOGIN / REGISTER WRAPPER
   ========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px 20px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(79, 140, 255, 0.08),
            transparent 30%
        ),
        var(--background);
}

.auth-card {
    width: 100%;
    max-width: 950px;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow-lg);
}

.auth-info {
    padding: 45px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(79, 140, 255, 0.20),
            transparent 35%
        ),
        var(--dark-secondary);

    color: var(--white);
}

.auth-form {
    padding: 45px;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal-custom {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-custom .modal-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}

.modal-custom .modal-body {
    padding: 22px;
}

.modal-custom .modal-footer {
    padding: 15px 22px;
    border-top: 1px solid var(--border);
}


/* =========================================================
   UTILITY
   ========================================================= */

.text-primary-custom {
    color: var(--primary) !important;
}

.text-muted-custom {
    color: var(--text-secondary) !important;
}

.bg-primary-light {
    background: var(--primary-light) !important;
}

.border-custom {
    border-color: var(--border) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md) !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .dashboard-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-info {
        display: none;
    }
}


@media (max-width: 767px) {

    .main-navbar {
        height: auto;
        min-height: 65px;
    }

    .page-header {
        padding-top: 25px;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .dashboard-topbar {
        height: auto;
        min-height: 65px;
        padding: 12px 18px;
    }

    .auth-form {
        padding: 30px 22px;
    }
}


@media (max-width: 480px) {

    .page-container {
        padding: 0 15px;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
    }

    .stat-card {
        padding: 17px;
    }
}