/* =========================================================
   MATHCOMS GOVCON OPPORTUNITY INTELLIGENCE
   FULL COMBINED STYLESHEET
   ========================================================= */


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f7fb;

    color: #243447;

    line-height: 1.5;
}

a {
    color: #2786B3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   MAIN PAGE CONTAINER
   ========================================================= */

.container,
.page-container,
.dashboard-container {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding: 24px;
}


/* =========================================================
   HEADER
   ========================================================= */

header,
.header,
.top-header,
.app-header {
    width: 100%;

    background: white;

    border-bottom: 1px solid #e3e8ef;

    padding: 16px 24px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.brand,
.header-brand,
.logo-area {
    display: flex;

    flex-direction: column;
}

.brand-title,
.logo-title {
    margin: 0;

    font-size: 24px;

    font-weight: 800;

    color: #EE7438;

    letter-spacing: 0.3px;
}

.brand-subtitle,
.logo-subtitle {
    margin-top: 2px;

    font-size: 13px;

    color: #5f6f82;

    font-weight: 600;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav,
.nav,
.top-nav {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

nav a,
.nav a,
.top-nav a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 36px;

    padding: 8px 12px;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 700;

    color: #405064;

    background: #f5f7fa;

    border: 1px solid #e2e7ed;
}

nav a:hover,
.nav a:hover,
.top-nav a:hover {
    background: #eef4f8;

    color: #2786B3;

    text-decoration: none;
}


/* =========================================================
   DASHBOARD MAIN AREA
   ========================================================= */

main,
.main-content,
.dashboard-main {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding: 28px 24px 50px;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

h1,
.page-title {
    margin: 0 0 8px;

    font-size: 30px;

    line-height: 1.2;

    color: #1d2b3a;

    font-weight: 800;
}

.page-subtitle,
.dashboard-description {
    margin: 0 0 24px;

    color: #687789;

    font-size: 14px;
}


/* =========================================================
   SUMMARY / STAT CARDS
   ========================================================= */

.stats-grid,
.summary-grid,
.dashboard-stats {
    display: grid;

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

    gap: 16px;

    margin-bottom: 30px;
}

.stat-card,
.summary-card,
.metric-card {
    background: white;

    border: 1px solid #e4e9f0;

    border-radius: 12px;

    padding: 18px;

    box-shadow:
        0 2px 8px
        rgba(20, 35, 55, 0.04);
}

.stat-number,
.summary-number,
.metric-value {
    display: block;

    font-size: 27px;

    font-weight: 800;

    color: #1e344c;

    line-height: 1.1;
}

.stat-label,
.summary-label,
.metric-label {
    display: block;

    margin-top: 5px;

    font-size: 12px;

    font-weight: 700;

    color: #798798;

    text-transform: uppercase;

    letter-spacing: 0.45px;
}


/* =========================================================
   PIPELINE SECTION
   ========================================================= */

.pipeline-section,
.opportunities-section {
    margin-top: 10px;
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 18px;

    flex-wrap: wrap;
}

.section-header h2,
.pipeline-section h2,
.opportunities-section h2 {
    margin: 0;

    font-size: 22px;

    color: #1f3043;
}

.section-description {
    margin: 4px 0 0;

    color: #758294;

    font-size: 13px;
}


/* =========================================================
   OPPORTUNITY CARD
   ========================================================= */

.opportunity-card,
.opportunity {
    width: 100%;

    background: white;

    border: 1px solid #e1e7ee;

    border-radius: 14px;

    margin-bottom: 20px;

    padding: 20px;

    box-shadow:
        0 3px 12px
        rgba(24, 39, 58, 0.05);

    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.opportunity-card:hover,
.opportunity:hover {
    box-shadow:
        0 6px 18px
        rgba(24, 39, 58, 0.08);
}

.opportunity-top,
.opportunity-header {
    display: flex;

    justify-content: space-between;

    gap: 18px;

    align-items: flex-start;

    flex-wrap: wrap;
}


/* =========================================================
   NAICS / PSC TAGS
   ========================================================= */

.tag-row,
.opportunity-tags {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin-bottom: 10px;
}

.tag,
.naics-tag,
.psc-tag {
    display: inline-flex;

    align-items: center;

    min-height: 25px;

    padding: 4px 9px;

    background: #eef5f9;

    color: #315d78;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.2px;
}


/* =========================================================
   OPPORTUNITY TITLE / AGENCY
   ========================================================= */

.opportunity-title {
    margin: 5px 0 7px;

    font-size: 19px;

    line-height: 1.35;

    color: #192a3b;

    font-weight: 800;
}

.opportunity-agency,
.agency {
    margin-bottom: 14px;

    font-size: 12px;

    line-height: 1.5;

    color: #687789;

    font-weight: 600;
}


/* =========================================================
   SCORE / QUALIFICATION
   ========================================================= */

.score-box,
.qualification-box {
    min-width: 120px;

    text-align: center;

    background: #f7f9fc;

    border: 1px solid #e1e6ed;

    border-radius: 11px;

    padding: 12px 14px;
}

.score-label {
    display: block;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: #7a8796;
}

.score-value {
    display: block;

    margin-top: 2px;

    font-size: 24px;

    font-weight: 900;

    color: #253a52;
}

.score-out-of {
    font-size: 11px;

    color: #8995a3;
}


/* =========================================================
   QUALIFICATION GAUGE / PROGRESS
   ========================================================= */

.score-progress,
.qualification-progress,
.progress-container {
    width: 100%;

    height: 8px;

    margin-top: 8px;

    overflow: hidden;

    background: #e6eaf0;

    border-radius: 20px;
}

.score-progress-bar,
.qualification-progress-bar,
.progress-bar {
    height: 100%;

    border-radius: 20px;

    transition: width 0.3s ease;
}

.progress-high,
.score-high {
    background: #198754;
}

.progress-medium,
.score-medium {
    background: #2786B3;
}

.progress-watch,
.score-watch {
    background: #d99519;
}

.progress-low,
.score-low {
    background: #c84444;
}


/* =========================================================
   RECOMMENDATION BADGES
   ========================================================= */

.recommendation,
.status-badge,
.badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.high-priority,
.recommendation-high {
    background: #e5f5eb;

    color: #18733d;
}

.review,
.recommendation-review {
    background: #e7f1fb;

    color: #23648c;
}

.watch,
.recommendation-watch {
    background: #fff4d9;

    color: #976a00;
}

.low-fit,
.recommendation-low {
    background: #fdeaea;

    color: #a43434;
}

.team-review,
.recommendation-team {
    background: #f1eafa;

    color: #7448a2;
}


/* =========================================================
   OPPORTUNITY DETAILS
   ========================================================= */

.opportunity-details,
.details-grid {
    display: grid;

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

    gap: 12px;

    margin-top: 16px;
}

.detail-item {
    background: #f8fafc;

    border-radius: 8px;

    padding: 10px 12px;
}

.detail-label {
    display: block;

    margin-bottom: 3px;

    color: #7b8795;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}

.detail-value {
    display: block;

    color: #33475b;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   WHY MATHCOMS MATCHED
   ========================================================= */

.match-box,
.why-matched {
    margin-top: 16px;

    padding: 13px 15px;

    background: #f6f9fc;

    border-left: 4px solid #2786B3;

    border-radius: 8px;
}

.match-box-title,
.why-matched-title {
    margin-bottom: 5px;

    font-size: 11px;

    font-weight: 800;

    color: #355166;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.match-box p,
.why-matched p {
    margin: 0;

    color: #516478;

    font-size: 13px;
}


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

button,
.button,
.btn {
    display: inline-flex;

    justify-content: center;

    align-items: center;

    border: none;

    border-radius: 8px;

    padding: 9px 14px;

    min-height: 38px;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

button:disabled,
.button:disabled,
.btn:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}

.primary-button,
.btn-primary {
    background: #2786B3;

    color: white;
}

.primary-button:hover,
.btn-primary:hover {
    background: #206f96;

    text-decoration: none;
}

.secondary-button,
.btn-secondary {
    background: white;

    color: #40536a;

    border: 1px solid #ccd5df;
}

.secondary-button:hover,
.btn-secondary:hover {
    background: #f5f7fa;

    text-decoration: none;
}

.sam-button,
.open-sam-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 14px;

    padding: 9px 13px;

    background: #2786B3;

    color: white;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 800;
}

.sam-button:hover,
.open-sam-button:hover {
    background: #206f96;

    color: white;

    text-decoration: none;
}


/* =========================================================
   FORMS
   ========================================================= */

input,
select,
textarea {
    border: 1px solid #ccd5df;

    border-radius: 8px;

    background: white;

    color: #26374a;

    min-height: 40px;

    padding: 9px 11px;

    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2786B3;

    box-shadow:
        0 0 0 3px
        rgba(39, 134, 179, 0.12);
}


/* =========================================================
   OPPORTUNITY ASSIGNMENT
   ========================================================= */

.assignment-box {
    margin-top: 18px;

    padding: 16px;

    background: #f8fafc;

    border:
        1px solid #e4e9f0;

    border-radius: 12px;
}

.assignment-box-title {
    font-size: 13px;

    font-weight: 800;

    margin-bottom: 12px;

    color: #263548;
}

.assignment-form {
    width: 100%;
}

.assignment-fields {
    display: grid;

    grid-template-columns:
        minmax(220px, 280px)
        minmax(260px, 1fr)
        auto;

    gap: 12px;

    align-items: end;
}

.assignment-field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.assignment-field label {
    font-size: 11px;

    font-weight: 700;

    color: #6e7888;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.assignment-field select,
.assignment-field input {
    width: 100%;

    min-height: 40px;

    padding: 9px 11px;

    border:
        1px solid #ccd4df;

    border-radius: 8px;

    background: white;

    font-size: 13px;

    outline: none;
}

.assignment-field select:focus,
.assignment-field input:focus {
    border-color: #2786B3;

    box-shadow:
        0 0 0 3px
        rgba(39, 134, 179, 0.12);
}

.assignment-submit {
    display: flex;

    align-items: flex-end;
}

.assign-active-button {
    background: #198754;

    color: white;

    min-height: 40px;

    padding-left: 16px;

    padding-right: 16px;

    white-space: nowrap;

    border-radius: 8px;
}

.assign-active-button:hover {
    background: #146c43;
}

.assigned-tag {
    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    background: #e8f6ed;

    color: #20733c;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   ASSIGNED USER SUMMARY
   ========================================================= */

.assignment-summary {
    margin-top: 16px;

    padding: 14px 16px;

    background: #edf7f1;

    border:
        1px solid #cce7d5;

    border-radius: 10px;
}

.assignment-summary-title {
    font-size: 11px;

    font-weight: 800;

    color: #37734a;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 7px;
}

.assignment-person {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.assignment-person strong {
    font-size: 14px;
}

.assignment-person span {
    font-size: 11px;

    padding: 4px 7px;

    border-radius: 999px;

    background: white;

    color: #496354;
}

.assignment-email {
    margin-top: 4px;

    color: #5e7165;

    font-size: 12px;
}

.assignment-note {
    margin-top: 8px;

    font-size: 12px;

    color: #405548;
}

.assignment-date {
    margin-top: 6px;

    font-size: 11px;

    color: #7b8b80;
}


/* =========================================================
   USER MANAGEMENT PAGE
   ========================================================= */

.users-table,
table {
    width: 100%;

    border-collapse: collapse;

    background: white;

    border-radius: 10px;

    overflow: hidden;
}

table th {
    background: #f3f6f9;

    color: #536476;

    padding: 11px;

    font-size: 11px;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.35px;

    border-bottom: 1px solid #e0e5eb;
}

table td {
    padding: 11px;

    font-size: 13px;

    color: #34485c;

    border-bottom: 1px solid #edf0f4;
}

table tr:last-child td {
    border-bottom: 0;
}


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

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

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;
}

.login-card {
    width: 100%;

    max-width: 430px;

    padding: 28px;

    background: white;

    border: 1px solid #e1e6ed;

    border-radius: 14px;

    box-shadow:
        0 8px 28px
        rgba(30, 48, 68, 0.09);
}

.login-card h1 {
    font-size: 24px;
}

.login-card input {
    width: 100%;

    margin-bottom: 12px;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 12px 14px;

    border-radius: 8px;

    margin-bottom: 16px;

    font-size: 13px;

    font-weight: 600;
}

.alert-success {
    background: #eaf7ef;

    color: #26663d;

    border: 1px solid #cbe7d5;
}

.alert-error,
.alert-danger {
    background: #fdecec;

    color: #9d3636;

    border: 1px solid #f0cece;
}

.alert-warning {
    background: #fff6df;

    color: #85600a;

    border: 1px solid #efddab;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 40px 20px;

    background: white;

    border: 1px dashed #cfd7e0;

    border-radius: 12px;

    text-align: center;

    color: #768596;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .stats-grid,
    .summary-grid,
    .dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(180px, 1fr));
    }

    .opportunity-details,
    .details-grid {
        grid-template-columns:
            repeat(2, minmax(160px, 1fr));
    }
}


/* =========================================================
   ASSIGNMENT RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .assignment-fields {
        grid-template-columns: 1fr;
    }

    .assignment-submit {
        align-items: stretch;
    }

    .assign-active-button {
        width: 100%;
    }
}


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

@media (max-width: 700px) {

    header,
    .header,
    .top-header,
    .app-header {
        padding: 14px 16px;

        align-items: flex-start;

        flex-direction: column;
    }

    nav,
    .nav,
    .top-nav {
        width: 100%;
    }

    nav a,
    .nav a,
    .top-nav a {
        flex: 1;
    }

    main,
    .main-content,
    .dashboard-main {
        padding: 20px 14px 40px;
    }

    h1,
    .page-title {
        font-size: 25px;
    }

    .stats-grid,
    .summary-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .opportunity-card,
    .opportunity {
        padding: 16px;
    }

    .opportunity-top,
    .opportunity-header {
        flex-direction: column;
    }

    .score-box,
    .qualification-box {
        width: 100%;
    }

    .opportunity-details,
    .details-grid {
        grid-template-columns: 1fr;
    }

    table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }
}

/* =========================================================
   GOVCON DASHBOARD ENHANCEMENTS
   NEW BADGE / NAICS FILTER / SCORE GAUGE / ARCHIVE
   ========================================================= */


/* =========================================================
   NAICS FILTER
   ========================================================= */

.dashboard-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    margin-bottom: 20px;

    padding: 14px 16px;

    background: #ffffff;

    border: 1px solid #e1e7ee;

    border-radius: 12px;
}

.naics-filter-form {
    margin: 0;
}

.naics-filter-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.naics-filter-field label {
    font-size: 12px;
    font-weight: 800;

    color: #566678;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.naics-filter-field select {
    min-width: 220px;

    min-height: 40px;

    padding: 8px 12px;

    border: 1px solid #ccd5df;

    border-radius: 8px;

    background: #ffffff;

    color: #26374a;

    font-weight: 700;

    cursor: pointer;
}

.filter-note {
    font-size: 12px;

    color: #6b7887;
}


/* =========================================================
   NEW OPPORTUNITY BADGE
   ========================================================= */

.new-opportunity-tag {
    background: #e8f6ed !important;

    color: #18733d !important;

    border: 1px solid #bfe2cb;

    font-weight: 900;

    letter-spacing: 0.6px;
}


/* =========================================================
   SCORE GAUGE
   ========================================================= */

.score-gauge {
    --score: 0;

    width: 92px;
    height: 92px;

    margin: 10px auto;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    background:
        conic-gradient(
            currentColor
            calc(var(--score) * 1%),

            #e6eaf0
            0
        );
}

.score-gauge::before {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    background: #ffffff;
}

.score-gauge-center {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}

.score-gauge-number {
    font-size: 24px;

    line-height: 1;

    font-weight: 900;

    color: #263548;
}

.score-gauge-total {
    margin-top: 3px;

    font-size: 10px;

    font-weight: 700;

    color: #7a8796;
}


/* SCORE COLORS */

.gauge-high {
    color: #198754;
}

.gauge-medium {
    color: #2786B3;
}

.gauge-watch {
    color: #d99519;
}

.gauge-low {
    color: #c84444;
}


/* =========================================================
   OPPORTUNITY ACTIONS
   ========================================================= */

.opportunity-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 16px;
}

.archive-form {
    margin: 0;
}


/* =========================================================
   ARCHIVE BUTTON
   ========================================================= */

.archive-button {
    background: #ffffff;

    color: #a13b3b;

    border: 1px solid #e1bcbc;
}

.archive-button:hover {
    background: #fff0f0;

    border-color: #d99a9a;

    color: #842e2e;
}


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

@media (max-width: 700px) {

    .dashboard-filter-bar {
        flex-direction: column;

        align-items: stretch;
    }

    .naics-filter-field {
        flex-direction: column;

        align-items: stretch;
    }

    .naics-filter-field select {
        width: 100%;

        min-width: 0;
    }

    .filter-note {
        text-align: left;
    }

    .opportunity-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .opportunity-actions .button,
    .archive-form,
    .archive-form button {
        width: 100%;
    }
}
/* =========================================================
   USER MANAGEMENT PAGE
   ========================================================= */

.user-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.user-count-card {
    min-width: 130px;

    padding: 15px 18px;

    background: #ffffff;

    border: 1px solid #e1e7ee;

    border-radius: 12px;

    text-align: center;

    box-shadow:
        0 3px 12px
        rgba(24, 39, 58, 0.04);
}

.user-count-number {
    display: block;

    font-size: 27px;

    font-weight: 900;

    color: #263548;
}

.user-count-label {
    display: block;

    margin-top: 3px;

    font-size: 10px;

    font-weight: 800;

    color: #7a8796;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* =========================================================
   USER MESSAGES
   ========================================================= */

.user-message {
    margin-bottom: 18px;

    padding: 12px 15px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;
}

.success-message {
    background: #eaf7ef;

    color: #22663a;

    border: 1px solid #cbe7d5;
}

.error-message {
    background: #fdecec;

    color: #9c3535;

    border: 1px solid #efcccc;
}


/* =========================================================
   USER MANAGEMENT GRID
   ========================================================= */

.user-management-grid {
    display: grid;

    grid-template-columns:
        minmax(300px, 390px)
        minmax(0, 1fr);

    gap: 22px;

    align-items: start;
}


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

.user-form-card,
.user-list-card {
    background: #ffffff;

    border: 1px solid #e1e7ee;

    border-radius: 14px;

    box-shadow:
        0 4px 15px
        rgba(24, 39, 58, 0.05);
}

.user-form-card {
    padding: 22px;
}

.user-list-card {
    overflow: hidden;
}

.user-card-header,
.user-list-header {
    margin-bottom: 20px;
}

.user-list-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    padding: 22px 22px 16px;
}

.user-card-header h2,
.user-list-header h2 {
    margin: 2px 0 4px;

    font-size: 20px;

    color: #263548;
}

.user-card-header p,
.user-list-header p {
    margin: 0;

    font-size: 12px;

    color: #758294;
}

.user-card-eyebrow {
    font-size: 10px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.6px;

    color: #2786B3;
}

.user-list-count {
    padding: 6px 10px;

    background: #f3f6f9;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    color: #536476;
}


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

.user-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.form-group label {
    font-size: 11px;

    font-weight: 800;

    color: #566678;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.form-group input,
.form-group select {
    width: 100%;

    min-height: 42px;

    padding: 10px 11px;

    border: 1px solid #ccd5df;

    border-radius: 8px;

    background: #ffffff;

    color: #26374a;

    font-size: 13px;
}

.form-group input::placeholder {
    color: #9aa5b1;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2786B3;

    box-shadow:
        0 0 0 3px
        rgba(39, 134, 179, 0.10);

    outline: none;
}

.form-help {
    font-size: 10px;

    color: #8793a1;

    line-height: 1.4;
}

.user-create-button {
    width: 100%;

    min-height: 42px;

    margin-top: 4px;
}


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

.user-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.user-table {
    width: 100%;

    border-collapse: collapse;
}

.user-table thead th {
    padding: 12px 16px;

    background: #f4f7fa;

    border-bottom: 1px solid #e2e7ed;

    font-size: 10px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.45px;

    color: #6b7888;

    text-align: left;
}

.user-table tbody td {
    padding: 14px 16px;

    border-bottom: 1px solid #edf1f5;

    font-size: 12px;

    color: #34485c;

    vertical-align: middle;
}

.user-table tbody tr:last-child td {
    border-bottom: 0;
}

.user-table tbody tr:hover {
    background: #fafcfe;
}


/* =========================================================
   USER IDENTITY
   ========================================================= */

.user-name-cell {
    display: flex;

    align-items: center;

    gap: 10px;
}

.user-avatar {
    width: 34px;

    height: 34px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background: #eef5f9;

    color: #2786B3;

    font-size: 13px;

    font-weight: 900;
}

.user-display-name {
    font-weight: 800;

    color: #263548;
}

.you-label {
    margin-top: 2px;

    font-size: 9px;

    font-weight: 800;

    color: #2786B3;

    text-transform: uppercase;
}

.username-text {
    color: #536476;

    font-weight: 700;
}

.user-email-link {
    color: #2786B3;

    font-weight: 600;
}


/* =========================================================
   ROLE BADGES
   ========================================================= */

.role-badge {
    display: inline-flex;

    align-items: center;

    min-height: 24px;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}

.role-admin {
    background: #f1eafa;

    color: #7448a2;
}

.role-sales {
    background: #e7f1fb;

    color: #23648c;
}

.role-bd {
    background: #fff4d9;

    color: #976a00;
}

.role-user {
    background: #eef1f4;

    color: #5a6877;
}


/* =========================================================
   STATUS
   ========================================================= */

.status-badge {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    min-height: 24px;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}

.status-dot {
    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: currentColor;
}

.active-status {
    background: #eaf7ef;

    color: #24713f;
}

.inactive-status {
    background: #fdecec;

    color: #9a3b3b;
}


/* =========================================================
   USER ACTIONS
   ========================================================= */

.user-action-form {
    margin: 0;
}

.small-button {
    min-height: 32px;

    padding: 7px 11px;

    font-size: 10px;
}

.deactivate-button {
    background: #ffffff;

    color: #9a3b3b;

    border: 1px solid #e2bcbc;
}

.deactivate-button:hover {
    background: #fff1f1;
}

.activate-button {
    background: #eaf7ef;

    color: #24713f;

    border: 1px solid #c8e4d2;
}

.activate-button:hover {
    background: #dff2e7;
}

.current-user-label {
    display: inline-flex;

    align-items: center;

    padding: 5px 8px;

    border-radius: 999px;

    background: #eef5f9;

    color: #42677d;

    font-size: 9px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}


/* =========================================================
   RESPONSIVE USER PAGE
   ========================================================= */

@media (max-width: 1050px) {

    .user-management-grid {
        grid-template-columns: 1fr;
    }

    .user-form-card {
        max-width: none;
    }
}


@media (max-width: 700px) {

    .user-page-hero {
        flex-direction: column;

        align-items: stretch;
    }

    .user-count-card {
        width: 100%;
    }

    .user-list-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .user-table {
        min-width: 850px;
    }
}
