
.user-page {
    --accent: #0d9488;
    --accent-light: #e8f7f5;

    --page-bg: #ffffff;
    --card-bg: #ffffff;

    --text-color: #212529;
    --text-muted: #6b7280;

    --border-color: #edf2f7;
    --hover-border: #d7e5e4;

    padding: 2rem 1rem;
    background: var(--page-bg);
    color: var(--text-color);
}

[data-bs-theme="dark"] .user-page {
    --accent: #20c997;
    --accent-light: #163c38;

    --page-bg: #212121;
    --card-bg: #2c2c2c;
    --sidebar-bg: #000000;

    --text-color: #f8f9fa;
    --text-muted: #adb5bd;

    --border-color: #444;
    --hover-border: #666;
}



.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

.user-title {
    color: var(--text-color);
}

.user-header h1 {
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-subtitle {
    color: var(--text-muted);
    margin-bottom: 0;
}

.help-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: .2s ease;
}

.help-icon:hover {
    color: var(--accent);
}



.user-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;

    background: var(--card-bg);
    border-radius: 20px;

    text-decoration: none;
    color: var(--accent);

    transition: .2s ease;

    box-shadow: 0 0 5px rgba(27,124,124,.3),
                0 0 10px rgba(45,157,120,.2);
}

.periodDropdown {
    padding: .5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-weight: 600;
}

.user-action:hover {
    box-shadow: 0 12px 30px rgba(15,23,42,.1);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: var(--accent);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card {
    background: var(--card-bg);
    color: var(--text-color);

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

    border-radius: 24px;
    padding: 2rem;
    height: 100%;

    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.card-title {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.user-card-feature {
    text-align: center;
}

.feature-icon {
    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: var(--accent-light);

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

    margin: 0 auto 2rem;
}

.feature-icon i {
    font-size: 4rem;
    color: var(--accent);
}



.user-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;

    text-decoration: none;
    color: var(--accent);
    font-weight: 600;

    transition: .2s ease;
}

.user-link:hover {
    transform: translateY(-2px);
}


.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 1.5rem;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 1.25rem;

    background: var(--card-bg);
    color: var(--text-color);

    border: 1px solid var(--border-color);
    border-radius: 16px;

    text-decoration: none;

    transition: .2s ease;
}

.ticket-item:hover {
    border-color: var(--hover-border);
    transform: translateY(-1px);
}

.ticket-title {
    color: var(--text-color);
    font-weight: 600;
}

.ticket-date {
    color: var(--text-muted);
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}


.help-sidebar {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-right: 1px solid var(--bs-border-color);
}
.help-sidebar {
    position: fixed;
    top: 0;
    left: -400px;

    width: 400px;
    height: 100vh;

    background: white;
    color: black;

    border-right: 1px solid var(--border-color);

    box-shadow: 2px 0 10px rgba(0,0,0,.1);

    transition: left .3s ease;

    z-index: 9999;
    padding: 2rem;
}

.help-sidebar.open {
    left: 0;
}

.help-sidebar .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;

    background: none;
    border: none;

    font-size: 1.5rem;
    cursor: pointer;

    color: #dc3545;
}

.help-sidebar h2 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    margin-left: .5rem;
}

.help-sidebar-content {
    overflow-y: auto;
    height: 100%;
}

.help-sidebar ul {
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.6;
}

.help-sidebar li {
    margin-bottom: 2rem;
}

.user-stat-card {

    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1.5rem;

    background: var(--card-bg);

    border-radius: 24px;

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

    height: 100%;

    box-shadow: 0 8px 24px rgba(15,23,42,.05);

    transition: .2s ease;
}

.user-stat-card:hover {

    transform: translateY(-2px);

    border-color: var(--hover-border);
}

.stat-icon {

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: var(--accent-light);

    color: var(--accent);

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

    flex-shrink: 0;

    font-size: 1.4rem;
}

.stat-label {

    color: var(--text-muted);

    font-size: .9rem;

    margin-bottom: .25rem;
}

.stat-value {

    font-size: 1.6rem;

    font-weight: 700;

    color: var(--text-color);
}

.insight-card {

    border-left: 5px solid var(--accent);
}

.user-card canvas {

    max-height: 320px;
}





.status-pill {

    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .35rem .75rem;

    border-radius: 999px;

    font-size: .8rem;
    font-weight: 600;
}

.jobs-page {
    --accent: #0d9488;
    --accent-light: #e8f7f5;

    padding: 2rem 1rem;
}

.jobs-card {
    background: var(--card-bg, var(--bs-body-bg));
    border: 1px solid var(--border-color, var(--bs-border-color));
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.jobs-header {
    margin-bottom: 2rem;
}

.jobs-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.jobs-subtitle {
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.jobs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;

    padding: 1.25rem;
    margin-bottom: 2rem;

    border-radius: 18px;
    background: rgba(13,148,136,.04);
    border: 1px solid rgba(13,148,136,.12);
}

.jobs-filters .form-control,
.jobs-filters .form-select,
.jobs-filters .dropdown-toggle {
    border-radius: 12px;
}

.jobs-filters .form-control:focus,
.jobs-filters .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(13,148,136,.15);
}

.jobs-filter-btn {
    border-radius: 12px;
    padding: .65rem 1.25rem;
    background: var(--accent);
    border-color: var(--accent);
}

.jobs-filter-btn:hover {
    background: #0b8178;
    border-color: #0b8178;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.25rem 1.5rem;

    border-radius: 18px;
    border: 1px solid var(--bs-border-color);

    background: var(--bs-body-bg);

    text-decoration: none;
    color: inherit;

    transition: .2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13,148,136,.3);
    box-shadow: 0 12px 24px rgba(15,23,42,.08);
}

.job-title {
    font-weight: 600;
    margin-bottom: .35rem;
}

.job-meta {
    color: var(--bs-secondary-color);
    font-size: .9rem;
}

.job-distance {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    padding: .45rem .9rem;

    border-radius: 999px;

    background: rgba(13,148,136,.1);
    color: var(--accent);

    font-size: .85rem;
    font-weight: 600;
}

.jobs-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color);
}

.jobs-empty i {
    margin-bottom: 1rem;
    opacity: .5;
}

.jobs-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    margin-bottom: 1.5rem;

    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

.jobs-back-link:hover {
    color: #0b8178;
}

.pagination .page-link {
    color: var(--accent);
}

.pagination .page-link:hover {
    background: var(--accent-light);
}

.dropdown-menu {
    border-radius: 16px;
    max-height: 300px;
    overflow-y: auto;
}

[data-bs-theme="dark"] .jobs-filters {
    background: rgba(32,201,151,.08);
    border-color: rgba(32,201,151,.15);
}

[data-bs-theme="dark"] .job-distance {
    background: rgba(32,201,151,.15);
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .jobs-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .jobs-filters > * {
        width: 100%;
        max-width: none !important;
    }
}

.quote-contact-btn {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.quote-contact-btn:hover {
    border-color: var(--hover-border);
}

.table-responsive {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.table-responsive-quotes {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 1rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: var(--text-muted);
    font-weight: 600;
}

.table td {
    color: var(--text-color);
    vertical-align: middle;
}


@media (max-width: 915px) {

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-action {
        justify-content: center;
    }

    .card-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .help-sidebar {
        width: 100%;
        left: -100%;
    }

    .help-sidebar.open {
        left: 0;
    }

    .user-action {
        width: 100%;
        justify-content: center;
    }
}