﻿/* ================= BASE STYLES ================= */
.profile-container {
    background: #F9FAFB;
}

/* ================= TOP BREADCRUMB ================= */
.top-breadcrumb {
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0px 260px;
    background: url("/images/bg/Breadcrumb-bg.svg");
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
}

    .breadcrumb-content a {
        color: #FFFFFFCC;
        text-decoration: none;
        transition: color 0.3s;
        font-size: 13px;
    }

        .breadcrumb-content a:hover {
            color: white;
        }

.breadcrumb-separator {
    color: #FFFFFFCC;
    margin: 0 5px;
    font-size: 16px;
}

.breadcrumb-active {
    color: white;
    font-weight: 700;
    font-size: 13px;
}

.breadcrumb-home-icon {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* ================= MAIN LAYOUT ================= */
.page-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
    padding: 40px;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 260px;
    background: #fff;
    border: 1px solid #E4E7E9;
    box-shadow: 0px 8px 40px 0px #00000014;
    color: #5F6C72;
    padding: 16px 0;
    flex-shrink: 0;
}

    .sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidebar li {
        padding: 14px 25px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 14px;
        position: relative;
    }

        .sidebar li:not(.active):hover {
            background: #f8f9fa;
            color: #123a5d;
            transform: translateX(5px);
        }

        .sidebar li.active {
            background: linear-gradient(135deg, #123a5d 0%, #1a4f7a 100%);
            color: white;
            font-weight: 500;
            box-shadow: 0 4px 12px rgba(18, 58, 93, 0.2);
        }

    .sidebar i {
        width: 18px;
        text-align: center;
        font-size: 15px;
    }

.sidebar-logout {
/*    margin-top: 20px;*/
    padding-top: 20px;
    /*border-top: 1px solid #eee;*/
}

/* ================= CONTENT AREA ================= */
.page-content {
    flex: 1;
    padding: 0px 0px 0px 40px;
    overflow-y: auto;
    background: #f8fafc;
}

    .page-content:dir(rtl) {
        padding: 0px 40px 0px 0px;
    }

/* ================= PAGE CONTENT ================= */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .page-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= COMMON CARD STYLES ================= */
.card {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #E4E7E9;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        /* transform: translateY(-2px); */
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    }

.card-title {
    margin-bottom: 0px !important;
    font-size: 14px;
    font-weight: 700;
    color: #123a5d;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 25px;
    border-bottom: 1px solid #E4E7E9;
    background: #fff;
}

.card-subtitle {
    background: #F2F4F5;
    color: #475156;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 25px;
}

.card-body {
    padding: 0px;
}

/* ================= UNIFIED TABLE STYLES ================= */
.table-wrapper {
    overflow-x: auto !important;
/*    border: 1px solid #E4E7E9;*/
}

.unified-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

    .unified-table thead {
        background: #F2F4F5;
    }

    .unified-table th {
        padding: 15px ;
        text-align: justify;
        color: #475156;
        font-weight: 500;
        font-size: 12px;
        border-bottom: 1px solid #E4E7E9;
        white-space: nowrap;
    }

    .unified-table td {
        padding: 14px ;
        color: #191C1F;
        font-size: 14px;
        font-weight: normal;
        text-align: justify;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .unified-table tbody tr {
        transition: background 0.3s;
    }

        .unified-table tbody tr:hover {
            background: #f8fafc;
        }

/* ================= STATUS STYLES ================= */
.status {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-requested {
    background: #fff3cd;
    color: #856404;
}

.status-deal {
    background: #d1ecf1;
    color: #0c5460;
}
.status-not-contracted {
    background: #e2e3e5;
    color: #383d41;
}
.status-closed {
    background: #f8d7da;
    color: #721c24;
}

/* ================= ACTION BUTTON WITH ARROW ================= */
.action-btn {
    color: #142846;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

    .action-btn:hover {
        color: #123a5d;
    }

    .action-btn i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .action-btn:hover i {
        transform: translateX(3px);
    }

/* ================= PROFILE PAGE ================= */
.profile-header {
    background: white;
    border-radius: 4px;
    border: 1px solid #E4E7E9;
    margin-bottom: 30px;
    overflow: auto;
}

.info-header {
    font-weight: 500;
    font-size: 14px;
    padding: 16px 25px;
    line-height: 20px;
    text-transform: uppercase;
    color: #191C1F;
    border-bottom: 1px solid #E4E7E9;
    background: #fff;
}

.profile-info-container {
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-details {
    flex: 1;
}

    .profile-details h3 {
        font-size: 24px;
        margin-bottom: 5px;
        color: #123a5d;
    }

    .profile-details p {
        color: #666;
        font-size: 14px;
        margin-bottom: 10px;
    }

.profile-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.contact-item label {
    color: #191C1F;
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
}

.contact-item div {
    font-weight: 500;
    color: #666;
}

/* ================= WELCOME SECTION ================= */
.welcome {
    margin-bottom: 25px;
}

    .welcome h2 {
        font-size: 24px;
        margin-bottom: 8px;
        color: #000;
    }

    .welcome p {
        color: #475156;
        font-size: 14px;
        line-height: 1.6;
        max-width: 450px;
    }

/* ================= FAVORITE WORKERS CARDS ================= */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 25px;
}

.worker-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #E4E7E9;
    padding: 20px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .worker-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: 2px solid #91111C;
    color: #91111C;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .favorite-btn:hover {
        background: #FF3742;
        transform: scale(1.1);
    }

    .favorite-btn.favorited {
        background-color: #91111C;
        color: white;
    }

    .favorite-btn i {
        font-size: 16px;
    }

.worker-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-direction: column;
}

.worker-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.worker-info h4 {
    margin: 0 0 5px 0;
    color: #123a5d;
    font-size: 18px;
}

.worker-info .job-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.worker-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .worker-rating .stars {
        color: #FFD700;
        font-size: 14px;
    }

    .worker-rating .rating-value {
        font-weight: 600;
        color: #333;
    }

.worker-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-book {
    flex: 1;
    background: #123a5d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

    .btn-book:hover {
        background: #1a4f7a;
    }

.btn-rate {
    flex: 1;
    background: transparent;
    color: #123a5d;
    border: 1px solid #123a5d;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn-rate:hover {
        background: #123a5d;
        color: white;
    }

/* ================= SETTINGS PASSWORD INPUT ================= */
.password-input-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}

    .toggle-password:hover {
        color: #123a5d;
    }

    .toggle-password:dir(rtl) {
        right: auto;
        left: 10px;
    }
/* ================= CUSTOMER SUPPORT CONTACT CARDS ================= */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-cards-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-card {
    border-radius: 8px;
    padding: 25px;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

    .contact-card:hover {
        transform: translateY(-5px);
    }

.contact-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contact-card-1 {
    background: #F2C94C1A;
}

.contact-card-2 {
    background: #F24C4C29;
}

.contact-card-3 {
    background: #EAF7E9;
}

.icon-call {
    color: #F2C94C;
    font-size: 32px;
}

.icon-mail {
    color: #F24C4C;
    font-size: 32px;
}

.icon-chat {
    color: #60D669;
    font-size: 32px;
}

.contact-card h4 {
    font-size: 18px;
    margin: 10px 0;
    color: #123a5d;
}

.contact-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.contact-number {
    font-size: 20px;
    font-weight: 600;
    color: #123a5d;
    margin-bottom: 15px;
}

.btn-contact {
    background: #F2C94C;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    transition: background 0.3s;
}

    .btn-contact:hover {
        background: #E6B91E;
    }

.contact-card-2 .btn-contact {
    background: #F24C4C;
    color: white;
}

    .contact-card-2 .btn-contact:hover {
        background: #D93636;
    }

.contact-card-3 .btn-contact {
    background: #60D669;
    color: white;
}

    .contact-card-3 .btn-contact:hover {
        background: #4EC057;
    }

/* ================= RATING MODAL ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    padding: 8px 24px 24px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: auto;
    max-height: 600px;
}

.modal-header {
    margin-bottom: 8px;
}

    .modal-header h3 {
        color: #123a5d;
        margin-bottom: -6px;
        font-size: 22px;
    }

    .modal-header p {
        color: #666;
        font-size: 14px;
        margin-bottom: 0rem;
    }

.rating-category {
/*    margin-bottom: 12px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .rating-category label {
        display: block;
        /* margin-bottom: 10px; */
        font-weight: 600;
        font-size: 14px;
        color: #354259;
    }

.rating-stars {
    display: flex;
    gap: 5px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

    .star-btn:hover,
    .star-btn.active {
        color: #FFD700;
    }

    .star-btn.half {
        position: relative;
    }

        .star-btn.half:before {
            content: "★";
            position: absolute;
            left: 0;
            width: 50%;
            overflow: hidden;
            color: #FFD700;
        }

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit {
    background: #123a5d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    height:35px;
    display:flex;
    justify-content:center;
    align-items:center;
}

    .btn-submit:hover {
        background: #1a4f7a;
    }

.btn-cancel {
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
}

    .btn-cancel:hover {
        background: #e9ecef;
    }

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

    textarea:focus {
        outline: none;
        border-color: #123a5d;
    }

/* ================= TERMS & CONDITIONS ================= */
.terms-content, .privacy-content {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 20px;
}

    .terms-content h3, .privacy-content h3 {
        color: #123a5d;
        margin-bottom: 20px;
    }

.terms-section, .privacy-section {
    margin-bottom: 25px;
    padding: 24px;
}


    .terms-section p, .privacy-section p {
        color: #191C1F;
        line-height: 1.6;
        margin-bottom: 15px;
        font-weight: 500;
        font-size: 14px;
    }

.agree-checkbox {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ================= SETTINGS PAGE ================= */
.settings-form {
    display: grid;
    gap: 25px;
    padding: 25px;
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #333;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #123a5d;
    }

.settings-profile {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 24px;
}

.settings-avatar {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-inputs {
    flex: 1;
}

/* ================= CUSTOMER SUPPORT ================= */
.support-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.support-hero {
    background: #FFF4F5;
    border-radius: 4px;
    padding: 30px;
    margin: 30px 0px;
}

    .support-hero h3 {
        color: #191C1F;
        margin-bottom: 15px;
    }

    .support-hero p {
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        max-width: 600px;
    }

.support-form-card {
    background: white;
    border-radius: 4px;
    border: 1px solid #E4E7E9;
    padding: 25px;
    margin-bottom: 30px;
}

    .support-form-card .form-control {
        border: 1px solid #DB8289;
        border-radius: 2px;
    }

.btn-send {
    background: #91111C;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-send:hover {
        background: #7a0e17;
    }

/* ================= BUTTONS ================= */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #123a5d;
    color: white;
}

    .btn-primary:hover {
        background: #1a4f7a;
        transform: translateY(-2px);
    }

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .top-breadcrumb {
        padding: 0px 40px;
    }

    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 15px 0;
    }

        .sidebar ul {
            display: flex;
            width: 100%;
            padding: 0 20px;
        }

        .sidebar li {
            white-space: nowrap;
            padding: 10px 15px;
        }

    .page-content {
        padding: 20px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .card-body  {
        overflow: auto;
    }   
    .page-content:dir(rtl) {
        padding: 0px;
    }
    .info-header {
      
        padding: 8px 16px;

    }

    .page-wrapper {
    
        padding: 16px;
    }
    .top-breadcrumb {
        padding: 0 20px;
    }

    .profile-info-container {
        flex-direction: column;
        text-align: center;
    }

    .settings-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .settings-avatar {
        width: 120px;
        height: 120px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .welcome h2, .profile-details h3 {
        font-size: 16px;
    }

    .welcome p, .profile-details p {
        font-size: 12px;
        max-width: 350px;
    }
    .page-content {
        padding: 15px;
    }

    .card-header, .card-body {
        padding: 15px;
    }

    .support-hero, .support-form-card {
        padding: 20px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }
}
/* Settings Page Styles */
.current-phone-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 5px;
}

    .current-phone-display span {
        font-weight: 600;
        color: #123a5d;
        font-size: 16px;
    }


.btn.btn-primary {
    background: #092E47;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn.btn-primary:hover {
        background: #092E47;
        transform: translateY(-1px);
        text-decoration: none;
        color: white;
    }
table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td{
    text-align:justify !important;
}
.dataTables_wrapper:after {
    display: none !important;
}
table.dataTable {
    width: -webkit-fill-available !important;
}