

.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: 1rem;
    background: var(--page-bg);
    color: var(--text-color);
}

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

    --page-bg: #212529
;
    --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;
}

.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;

    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);

}



.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);
}

.stat-icon.success-icon {
    background: #e6f4ea;
    color: #1e7e34;
}

.stat-icon.money-icon {
    background: #e8f7f5;
    color: #0d9488;
}

.stat-icon.info-icon {
    background: #e7f1fd;
    color: #0d6efd;
}

.stat-icon.warning-icon {
    background: #fff6e5;
    color: #d97706;
}

.stat-icon.danger-icon {
    background: #fdecea;
    color: #dc3545;
}

[data-bs-theme="dark"] .stat-icon.success-icon {
    background: rgba(32, 201, 151, 0.15);
    color: #20c997;
}

[data-bs-theme="dark"] .stat-icon.money-icon {
    background: rgba(13, 148, 136, 0.18);
    color: #2dd4bf;
}

[data-bs-theme="dark"] .stat-icon.info-icon {
    background: rgba(13, 110, 253, 0.18);
    color: #6ea8fe;
}

[data-bs-theme="dark"] .stat-icon.warning-icon {
    background: rgba(217, 119, 6, 0.18);
    color: #fbbf24;
}

[data-bs-theme="dark"] .stat-icon.danger-icon {
    background: rgba(220, 53, 69, 0.18);
    color: #f1616f;
}

.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;

    flex-shrink: 0;
    white-space: nowrap;
}

.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;

    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-content {
    /* Allow the title/meta text to shrink and wrap within its own column
       instead of forcing the sibling .status-pill badge to shrink/wrap. */
    min-width: 0;
}

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

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



.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);
}



.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;
}

/* Profile Detail Styling */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.profile-avatar-wrapper {
    position: relative;
    margin: 0 auto 1.5rem;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-teal);
    box-shadow: 0 8px 24px rgba(27, 124, 124, 0.25);
    transition: all 0.3s ease;
}

.profile-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b7c7c 0%, #2d9d78 100%);
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border: 2px solid var(--brand-teal);
    box-shadow: 0 8px 24px rgba(27, 124, 124, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-interactive {
    cursor: pointer;
}

.profile-avatar-interactive:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(27, 124, 124, 0.35);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    letter-spacing: -0.5px;
}

.profile-role-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1b7c7c 0%, #2d9d78 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-hint-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.75rem;
}

.profile-info-label {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.profile-info-value {
    color: var(--bs-body-color);
    font-size: 1.05rem;
    font-weight: 500;
}

.profile-section {
    padding-bottom: 1.75rem;
}

.profile-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-body-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, #1b7c7c 0%, #2d9d78 100%);
    border-radius: 2px;
}

.profile-section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 124, 124, 0.2), transparent);
    margin: 1.5rem 0;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}





.profile-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-category-badge {
    background: #e7f5f4;
    color: var(--brand-teal);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(27, 124, 124, 0.2);
}
