/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

/* ======== General & Body Styles ======== */

body {
    font-family: 'Vazirmatn';
    background-color: #1e1e1e;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}


/* ======== Login Page Styles ======== */

.login-body {
    /* A special class to center the login form */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border-top: 5px solid #248091;
}

.login-container h1 {
    color: #f79433;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}


/* ======== Admin Panel Layout ======== */

.admin-panel-container {
    display: flex;
    direction: rtl;
    /* Right-to-left layout */
}

.sidebar {
    width: 250px;
    background-color: #2a2a2a;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #444;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.sidebar-header h2 {
    margin: 0;
    color: #f79433;
}

.sidebar-nav {
    flex-grow: 1;
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.sidebar-nav li a {
    display: block;
    color: #f0f0f0;
    text-decoration: none;
    padding: 15px 25px;
    transition: background-color 0.3s ease, border-right 0.3s ease;
    border-right: 4px solid transparent;
}

.sidebar-nav li a:hover {
    background-color: #333;
}

.sidebar-nav li a.active {
    background-color: #1e1e1e;
    border-right: 4px solid #248091;
    color: #fff;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
}

.logout-btn {
    display: block;
    background-color: #a72d2d;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 24px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c43c3c;
}

.main-content {
    margin-right: 250px;
    /* Same as sidebar width */
    width: calc(100% - 250px);
    padding: 30px;
    background-color: #1e1e1e;
}

.main-content h1 {
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-top: 0;
}

.content-wrapper {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 24px;
   
}


/* ======== Shared Component Styles (Forms, Tables, Buttons) ======== */

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
        margin-top: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
  background-color: #1e1e1e;
    border: 1px solid #444;
    color: #f0f0f0;
    box-sizing: border-box;
    font-family: 'Vazirmatn'!important;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    font-family: 'Vazirmatn' !important;
    outline: none;
    border-color: #f79433;
    direction: rtl;
}

.btn {
    padding: 12px 20px;
    background-color: #248091;
    border: none;
    border-radius: 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2ca0b4;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #333;
}

table th,
table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #444;
}

table tbody tr:hover {
    background-color: #313131;
}

.action-btn {
    background-color: #f79433;
    color: #1e1e1e;
    padding: 5px 10px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: #ffab57;
}

.error-message {
    background-color: #a72d2d;
    color: #fff;
    padding: 10px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 20px;
}


/* ======== Alert/Message Styles ======== */

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 24px;
    color: white;
    font-weight: 500;
    background-color: #dc3545;
}

.alert-success {
    background-color: #28a745;
    /* Green */
}

.alert-error {
    background-color: #dc3545;
    /* Red */
}


/* ======== Repair Details Page Styles ======== */

.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-section,
.update-section,
.history-section {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 24px;
}

.info-section h2,
.update-section h2,
.history-section h2 {
    margin-top: 0;
    color: #f79433;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.info-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.info-section p strong {
    color: #ccc;
    min-width: 100px;
    display: inline-block;
}


/* Make history section span both columns */

.history-section {
    grid-column: 1 / -1;
}


/* ======== Timeline Styles ======== */

.timeline {
    position: relative;
    padding: 20px 0;
    padding-right: 17px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 9px;
    /* Adjust based on dot size */
    height: 100%;
    width: 2px;
    background-color: #444;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-right: 40px;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 24px;
    background-color: #248091;
    border: 3px solid #1e1e1e;
}

.timeline-content .timeline-date {
    font-size: 0.85em;
    color: #888;
}

.timeline-content .timeline-title {
    margin: 5px 0;
    font-weight: 500;
    color: #f0f0f0;
}

.timeline-content .timeline-notes {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #ccc;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 24px;
}


/* ======== Inline Form Styles for Parts Page ======== */

.inline-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.inline-form select {
    padding: 6px;
    /* Smaller padding */
}

.action-btn-small {
    background-color: #248091;
    color: white;
    padding: 6px 10px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 15px;
    border: none;
    cursor: pointer;
}


/* ======== Dashboard Stat Cards ======== */

.stat-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    border-left: 5px solid #248091;
    transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:nth-child(2) {
    border-left-color: #f79433;
}

.stat-card:nth-child(3) {
    border-left-color: #28a745;
}

.stat-card:nth-child(4) {
    border-left-color: #a72d2d;
}

.stat-card-value {
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 1em;
    color: #ccc;
    font-weight: 500;
}


/* ======== Customer Details Page Styles ======== */

.customer-info-header {
    background-color: #2a2a2a;
    padding: 15px 20px;
    border-radius: 24px;
    margin-bottom: 20px;
    border-right: 5px solid #f79433;
}

.customer-info-header p {
    margin: 5px 0;
    font-size: 1.1em;
}


/* ======== Terms Status Box Styles ======== */

.terms-status-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 24px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    border: 1px solid;
}

.terms-status-box.accepted {
    background-color: #1c4a2a;
    border-color: #28a745;
}

.terms-status-box.pending {
    background-color: #522121;
    border-color: #dc3545;
}


/* ======== Sidebar Icon Styles ======== */

.sidebar-nav li a,
.sidebar-footer a {
    display: flex;
    align-items: center;
}

.sidebar-nav li a i,
.sidebar-footer a i {
    width: auto !important;
    /* Ensures icons have a consistent width */
    margin-left: 12px;
    /* Creates space between icon and text */
    font-size: 1.1em;
}


/* ======== Payment Section Styles ======== */

.payment-section {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 24px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #444;
}

.payment-section.disabled {
    opacity: 0.6;
}

.payment-section h2 {
    margin-top: 0;
    color: #f79433;
}

.payment-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}


/* ======== Modal (Pop-up) Styles ======== */

.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 24px;
    position: relative;
    color: #f0f0f0;
    border-top: 5px solid #248091;
}

.close-btn {
    color: #aaa;
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
}

.modal-body {
    margin-top: 20px;
}

.modal-body hr {
    border-color: #444;
    margin: 20px 0;
}


/* Balances the layout of the customer details page */

.customer-container .details-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Ensures items are in a single column */
    gap: 20px;
    /* Adds space between the boxes */
}


/* ======== Cost Approval Box Styles ======== */

.cost-approval-box {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #248091;
    text-align: center;
}

.cost-approval-box .cost-amount {
    font-size: 2.5em;
    font-weight: 700;
    color: #f79433;
    margin: 20px 0;
}

.cost-approval-box .decision-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}


/* ======== Repair Selection Page Styles ======== */

.repair-selection-list {
    margin-top: 20px;
}

.repair-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #f0f0f0;
    border: 1px solid #444;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.repair-item:hover {
    background-color: #333;
    border-color: #f79433;
}

.repair-item .device-model {
    font-weight: bold;
    font-size: 1.1em;
}

.repair-item .tracking-code {
    font-size: 0.9em;
    color: #ccc;
}


/* ======== Customer Panel Styles ======== */

.customer-container {
    max-width: 1400px;
    margin: 40px auto;
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
}

.customer-header h1 {
    color: #f79433;
    margin: 0;
}

.terms-box {
    background-color: #2a2a2a;
    padding: 30px;
    margin-top: 40px;
    border-radius: 24px;
    border: 1px solid #f79433;
    text-align: center;
}

.terms-box h2 {
    margin-top: 0;
}

.terms-box p {
    line-height: 1.8;
    text-align: right;
    margin-bottom: 30px;
}

.btn {
    font-family: 'Vazirmatn';
}

a {
    color: #f79433;
}

select {
    font-family: 'Vazirmatn' !important;
    border-radius: 24px;
}

button {
    font-family: 'Vazirmatn' !important;
}

input {
    font-family: 'Vazirmatn' !important;
}


/* ======== NEW Warranty Box Styles ======== */

.warranty-section-simple {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
}

.warranty-section-simple h2 {
    margin-top: 0;
    color: #f79433;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.warranty-dates {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding: 20px 0;
}

.warranty-date-item {
    text-align: center;
}

.warranty-date-item span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.warranty-date-item small {
    color: #ccc;
    font-size: 0.9em;
}

.warranty-status {
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 24px;
    display: inline-block;
}

.warranty-status.active {
    background-color: #28a745;
    color: #28a745;
}

.warranty-status.expired {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}


/* ======== Notification Styles ======== */

.sidebar-notifications {
    position: relative;
    padding: 15px 20px;
    text-align: left;
    /* Align icon to the left */
}

.notification-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #f0f0f0;
    font-size: 1.5em;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #dc3545;
    color: white;
    border-radius: 24px;
    padding: 2px 6px;
    font-size: 0.6em;
    font-weight: bold;
}

.notification-dropdown {
    display: none;
    position: absolute;
    left: 20px;
    top: 60px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 24px;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.notification-header {
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #444;
}

.notification-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-dropdown li {
    border-bottom: 1px solid #444;
}

.notification-dropdown li a {
    display: block;
    padding: 10px 15px;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9em;
}

.notification-dropdown li a:hover {
    background-color: #444;
}

.notification-dropdown li small {
    display: block;
    padding: 0 15px 10px 15px;
    color: #888;
    font-size: 0.75em;
}


/* ======== ADMIN SIDEBAR (Rebuilt for Professional UI) ======== */

.sidebar {
    width: 250px;
    background-color: var(--background-light);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
}


/* NEW User Info Box Style */

.sidebar-user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

.user-avatar {
    font-size: 2.5em;
    /* Larger icon */
    color: var(--primary-color);
}

.user-details {
    margin-right: 15px;
}

.user-details .username {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 1.1em;
}

.user-details .role {
    display: block;
    font-size: 0.85em;
    color: var(--text-dark);
}

.sidebar-nav {
    flex-grow: 1;
    margin-top: 15px;
    /* Reduced margin */
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    /* Lighter default text */
    text-decoration: none;
    padding: 15px 25px;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.sidebar-nav li a:hover {
    background-color: rgba(36, 128, 145, 0.1);
    color: #fff;
    border-right-color: var(--primary-color);
}

.sidebar-nav li a.active {
    background-color: var(--background-dark);
    border-right: 4px solid var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.sidebar-nav li a i {
    width: auto !important;
    margin-left: 12px;
    font-size: 1.1em;
}

.sidebar-footer {
    padding: 20px;
    margin-top: auto;
}

.logout-btn {
    display: flex;
    /* Aligns icon and text */
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--red);
    font-weight: 500;
    text-align: center;
    padding: 12px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: var(--red);
    color: #fff;
}


/* Sidebar Dropdown Menu FIX */

.nav-item-dropdown {
    position: relative;
    /* موقعیت‌دهی والد برای شناور شدن فرزند */
}

.nav-item-dropdown>a {
    justify-content: right;
    cursor: pointer;
}

.arrow-icon-dropdown {
    transition: transform 0.3s ease;
    font-size: 0.8em !important;
}


/* When the dropdown is open, rotate the arrow */

.nav-item-dropdown.open>a .arrow-icon-dropdown {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.2);
    /* These styles make the dropdown float over other items */
    display: none;
    position: static;
    width: 100%;
    z-index: 10;
    /* Ensure it's above other elements */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 24px;
}


/* Show the dropdown when the parent has the 'open' class */

.nav-item-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding-right: 60px !important;
    /* Indent sub-items */
    font-size: 0.9em;
    color: wheat;
}


/* ======== Customer Dashboard Service Boxes ======== */

.service-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-box {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 30px;
    text-align: right;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.service-box-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    background-color: rgba(36, 128, 145, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevents the icon from shrinking */
}

.service-box-content h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.service-box-content p {
    font-size: 0.9em;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}


/* ======== UNIFIED CUSTOMER DETAILS PAGE STYLES ======== */

.details-header-card {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 25px;
    margin-top: 25px;
    border-left: 5px solid var(--primary-color);
}

.details-header-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 1.5em;
}

.details-header-card p {
    margin: 0;
    color: var(--text-dark);
}

.checklist-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.checklist-results-table th,
.checklist-results-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: right;
}

.checklist-results-table thead {
    background-color: #333;
}

.checklist-results-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.status-pass {
    color: #28a745;
    font-weight: bold;
}

.status-fail {
    color: var(--red);
    font-weight: bold;
}

.offer-box,
.offer-box-declined,
.receipt-box {
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    text-align: center;
}

.offer-box {
    background-color: #1c4a2a;
    border: 1px solid #28a745;
}

.offer-box-declined {
    background-color: #522121;
    border: 1px solid var(--red);
}

.receipt-box {
    background-color: #1e3a42;
    border: 1px solid var(--primary-color);
}

.bank-info-display {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 24px;
    margin-top: 20px;
    text-align: right;
}

.bank-info-display p {
    margin: 5px 0;
}


/* ======== PROFESSIONAL CUSTOMER LIST PAGES ======== */

.btn-back {
    font-size: 0.9em;
    text-decoration: none;
    background-color: #333;
    padding: 8px 15px;
    border-radius: 24px;
    color: #fff;
    transition: background-color 0.2s ease;
}

.btn-back:hover {
    background-color: var(--primary-color);
}

.request-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.request-list li a {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--background-dark);
    padding: 10px;
    border-radius: 24px;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.request-list li a:hover {
    border-left: 5px solid var(--primary-color);
    background-color: var(--background-light);
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.request-list i {
    font-size: 2.2em;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.request-list .request-details {
    flex-grow: 1;
}

.request-list .device-model {
    font-weight: 700;
    font-size: 1.2em;
    color: #fff;
}

.request-list small {
    color: #888;
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
}

.status-badge {
    font-size: 0.85em;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 24px;
    background-color: #333;
    color: white;
    white-space: nowrap;
    text-align: center;
}

.no-requests-message {
    text-align: center;
    padding: 50px;
    color: #888;
    background-color: var(--background-light);
    border-radius: 24px;
    font-size: 1.1em;
}


/* Payment Verification Status Box */

.payment-status-box {
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    text-align: center;
    border-left: 5px solid;
}

.payment-status-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.payment-status-box p {
    margin-bottom: 0;
    font-size: 1.1em;
}

.payment-status-box.status-pending {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}

.payment-status-box.status-approved {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.payment-status-box.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--red);
}


/* Payment List Status Badges */

.status-badge.status-pending {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-approved {
    background-color: #28a745;
}

.status-badge.status-rejected {
    background-color: var(--red);
}


/* assets/css/style.css (Static & Clean Landing Page Theme) */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');
:root {
    --primary-color: #248091;
    --secondary-color: #f79433;
    --background-dark: #1e1e1e;
    --background-light: #2a2a2a;
    --border-color: #444;
    --text-light: #f0f0f0;
    --text-dark: #ccc;
}


/* ======== GENERAL STYLES ======== */

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.btn {
    padding: 12px 25px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #f79433;
    color: #fff;
    border: 1px solid #f79433;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #f79433;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1.1em;
}


/* ======== LANDING PAGE STYLES ======== */

.landing-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
}


/* --- Hero Section --- */

.hero-section {
    position: relative;
    padding: 150px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cc.jpg');
    background-size: cover;
    /* This is the magic line */
    filter: brightness(0.2);
    z-index: -1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.3em;
    color: var(--text-dark);
    max-width: 600px;
    margin: 1rem auto 2.5rem auto;
}


/* --- Services & Stats Sections --- */

.services-section,
.stats-section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 50px;
}

.services-container,
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item,
.stat-item {
    background-color: var(--background-light);
    padding: 15px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-item i {
    font-size: 2em;
    color: white;
    margin-bottom: 20px;
}

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-dark);
    font-size: 0.95em;
    line-height: 1.7;
}

.stat-number {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-top: 5px;
}


/* --- Footer --- */

.landing-footer {
    background-color: #111;
    padding: 60px 0 20px 0;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    line-height: 1.8;
}

.footer-col i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.footer-bottom a {
    font-weight: bold;
    color: #fff;
}


/* ======== LANDING PAGE - TUTORIALS SECTION ======== */

.tutorials-section {
    padding: 20px 0;
    background-color: var(--background-dark);
    /* or #111 for a slight contrast */
}

.tutorials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tutorial-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 320px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Aligns content to the bottom */
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.tutorial-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, transparent);
}

.card-category {
    background-color: #f79433;
    color: #fff;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-content h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
}


/* Appointment Management Styles */

.btn-action {
    padding: 5px 10px;
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-action.green {
    background-color: #28a745;
}

.btn-action.red {
    background-color: var(--red);
}

.status-badge.status-pending {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-confirmed {
    background-color: #28a745;
}

.status-badge.status-canceled {
    background-color: var(--red);
}

.status-badge.status-completed {
    background-color: #555;
}


/* ======== Glassmorphism Theme Styles (for Login & Booking Pages) ======== */

.bg-glass {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.login-container-glass {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.glass-card {
    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    /* Increased padding */
}

.glass-card .text-center {
    text-align: center;
}

.glass-card h2 {
    color: var(--secondary-color);
    font-weight: 700;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.7);
}

.form-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 8px;
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 24px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    color: #fff;
    outline: none;
}

.btn-glow {
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(36, 128, 145, 0.5);
    font-weight: bold;
    padding: 0.75rem;
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    cursor: pointer;
    width: 100%;
}

.btn-glow:hover {
    background: #2ca0b4;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(44, 160, 180, 0.8);
}

.btn-back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-dark);
    text-decoration: none;
}

.btn-back-link:hover {
    color: #fff;
}


/* Styling for static list items (like in appointment list) */

.request-list .request-item-static {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--background-dark);
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}


/* Article Editor Page Styles */

.details-container {
    grid-template-columns: 3fr 1fr;
    /* Main content takes 3/4, sidebar takes 1/4 */
}

.main-content-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Style for CKEditor */

.ck-editor__editable_inline {
    min-height: 400px;
    background-color: var(--background-dark) !important;
    color: var(--text-light) !important;
    border-color: var(--border-color) !important;
}

.ck.ck-toolbar {
    background: #333 !important;
    border-color: var(--border-color) !important;
}

.ck.ck-button .ck-icon,
.ck.ck-dropdown .ck-icon {
    color: var(--text-light) !important;
}


/* Article List Page Styles */

.articles-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
    background-color: var(--background-dark);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.article-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.article-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 24px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
}

.article-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    flex-grow: 1;
    /* Pushes meta and actions to the bottom */
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.status-badge.status-published {
    background-color: #28a745;
}

.status-badge.status-draft {
    background-color: #555;
}

.article-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action.red {
    background-color: var(--red);
    color: #fff;
}


/* Public Articles Pages Styles */

.category-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-filter-bar a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 24px;
    background-color: var(--background-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-filter-bar a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.category-filter-bar a.active {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
}

.article-container {
    max-width: 1400px;
}


/* Narrower for better reading */

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header .article-category {
    margin-bottom: 15px;
}

.article-header h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #888;
}

.featured-image-full {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    margin-bottom: 30px;
}

.article-content {
    line-height: 2;
    /* Improved readability */
    font-size: 1.1em;
}

.article-content h2,
.article-content h3 {
    color: var(--secondary-color);
    margin-top: 2em;
}

.article-content a {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.back-to-list-link {
    margin-top: 40px;
}


/* Public Articles Pages Styles */

.category-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-filter-bar a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 24px;
    background-color: var(--background-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-filter-bar a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.category-filter-bar a.active {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
}

.article-container {
    max-width: 1400px;
}


/* Narrower for better reading */

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header .article-category {
    margin-bottom: 15px;
}

.article-header h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #888;
}

.featured-image-full {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    margin-bottom: 30px;
}

.article-content {
    line-height: 2;
    /* Improved readability */
    font-size: 1.1em;
}

.article-content h2,
.article-content h3 {
    color: var(--secondary-color);
    margin-top: 2em;
}

.article-content a {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.back-to-list-link {
    margin-top: 40px;
}


/* "View All" Button Container */

.view-all-container {
    text-align: center;
    margin-top: 40px;
}


/* Article Editor Page Layout Fix */

.editor-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* ستون اصلی ۳ برابر ستون کناری */
    gap: 25px;
    align-items: flex-start;
}

.editor-main-column {
    /* This will hold the main content editor */
}

.editor-sidebar-column {
    position: sticky;
    /* ستون کناری هنگام اسکرول ثابت می‌ماند */
    top: 20px;
}


/* On smaller screens, stack them vertically */

@media (max-width: 992px) {
    .editor-container {
        grid-template-columns: 1fr;
    }
    .editor-sidebar-column {
        position: static;
    }
}


/* ======== PUBLIC ARTICLES PAGES STYLES ======== */


/* --- Category Filter Bar (articles.php) --- */

.category-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.category-filter-bar a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 24px;
    background-color: var(--background-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.category-filter-bar a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.category-filter-bar a.active {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
}


/* --- Article Card List (articles.php) --- */

.articles-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: var(--background-dark);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.article-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.article-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 24px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 15px;
}

.article-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: var(--text-light);
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.article-meta i {
    margin-left: 5px;
}


/* --- Single Article Page (article.php) --- */

.article-container {
    max-width: 1400px;
    /* Narrower width for better reading experience */
}

.article-header {
    text-align: center;
    margin: 20px 0 30px 0;
}

.article-category-link {
    background-color: var(--primary-color);
    color: #fff !important;
    /* Override general link color */
    font-size: 0.8em;
    padding: 5px 12px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
}

.article-header h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
    line-height: 1.4;
}

.article-meta-full {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #888;
}

.featured-image-full {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    margin-bottom: 30px;
}

.article-content {
    line-height: 2;
    /* Improved readability */
    font-size: 1.1em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--secondary-color);
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content a {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    margin: 20px 0;
}

.article-content p,
.article-content li,
.article-content blockquote {
    color: var(--text-dark);
}

.article-content blockquote {
    padding: 15px;
    padding-right: 20px;
    background-color: var(--background-dark);
    border-right: 4px solid var(--primary-color);
    margin: 20px 0;
}

.back-to-list-link {
    margin-top: 40px;
    text-align: center;
}


/* Action Buttons Container for Edit Pages */

.action-buttons-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    /* Aligns buttons to the left (rtl) */
    gap: 15px;
}


/* Customer Sale Details Page Styles */

.warranty-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.status-card {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.status-card h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.status-card .status-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.status-card p {
    font-size: 0.9em;
    color: var(--text-dark);
}

.status-card .status-label {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
    padding: 8px 0;
    border-radius: 24px;
}

.status-card.active .status-icon,
.status-card.active .status-label {
    color: #28a745;
}

.status-card.active .status-label {
    background-color: rgba(40, 167, 69, 0.1);
}

.status-card.expired .status-icon,
.status-card.expired .status-label {
    color: var(--red);
}

.status-card.expired .status-label {
    background-color: rgba(220, 53, 69, 0.1);
}


/* Customer 360-View Accordion Styles */

.accordion-container {
    margin-top: 30px;
}

.accordion-item {
    background-color: var(--background-light);
    margin-bottom: 10px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: right;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-header::after {
    /* Arrow icon */
    content: '\f078';
    /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    /* Large enough to fit content */
    padding: 0 20px 20px 20px;
}


/* Customer 360-View Accordion Styles */

.accordion-container {
    margin-top: 30px;
}

.accordion-item {
    background-color: var(--background-light);
    margin-bottom: 10px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: right;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header:hover {
    background-color: rgba(36, 128, 145, 0.1);
}

.accordion-header i {
    color: var(--secondary-color);
}

.accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: auto;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: var(--text-dark);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 20px 20px 20px;
}

.accordion-content table {
    margin-top: 15px;
}


/* Form Footer Link */

.form-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-dark);
}

.form-footer-link a {
    font-weight: bold;
    text-decoration: none;
}


/* Multi-Step Wizard Form Styles */

.wizard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.wizard-card {
    width: 100%;
    max-width: 600px;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.wizard-steps::before {
    /* The connecting line */
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background-color: var(--border-color);
    right: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step span {
    width: 40px;
    height: 40px;
    border-radius: 24px;
    background: var(--background-dark);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.4s ease;
}

.step p {
    margin-top: 10px;
    font-size: 0.8em;
    color: var(--text-dark);
    transition: color 0.4s ease;
}

.step.active span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.step.active p {
    color: #fff;
    font-weight: 500;
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
    display: block;
}

.step-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

#submitBtn {
    width: 100%;
}

.service-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-card-label input {
    display: none;
}

.service-card-label .service-card-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card-label .service-card-content:hover {
    border-color: var(--primary-color);
}

.service-card-label input:checked+.service-card-content {
    border-color: var(--secondary-color);
    background-color: rgba(247, 148, 51, 0.1);
}

.service-card-content i {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.service-card-content h4 {
    margin: 0;
    font-size: 1em;
    color: #fff;
}

.service-card-content p {
    margin: 5px 0 0 0;
    font-size: 0.8em;
    color: var(--text-dark);
}


/* Better Action Buttons for Tables */

.action-buttons-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    /* Aligns items to the right in RTL */
}

.btn-action-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 24px;
    /* Makes them circular */
    text-decoration: none;
    color: var(--text-dark);
    background-color: #333;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-action-icon:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-action-icon.green:hover {
    background-color: #28a745;
}

.btn-action-icon.red:hover {
    background-color: var(--red);
}


/* Appointment Details Header Card */

.details-header-card.status-pending {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}

.details-header-card.status-confirmed {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.details-header-card.status-canceled {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--red);
}

.details-header-card.status-completed {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
}


/* Ticket List Status Badges */

.status-badge.status-open {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-answered {
    background-color: #28a745;
}

.status-badge.status-closed {
    background-color: #555;
}


/* ======== FINAL "FLOATING GLASS" ADMIN SIDEBAR ======== */

:root {
    --sidebar-width: 300px;
    --sidebar-width-collapsed: 90px;
}


/* --- Main Layout Adjustment --- */

.main-content {
    margin-right: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-right 0.4s var(--ease-out-quart);
}

.sidebar.collapsed~.main-content {
    margin-right: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
}


/* --- The Sidebar Itself (Floating Glass) --- */

.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 40px);
    /* Vertical space */
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    /* Rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: width 0.4s var(--ease-out-quart);
    overflow: hidden;
    /* Important for rounded corners */
}


/* --- Collapsed State --- */

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .user-details,
.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .sidebar-nav li a span,
.sidebar.collapsed .arrow-icon-dropdown,
.sidebar.collapsed .sidebar-footer span,
.sidebar.collapsed .nav-heading {
    opacity: 0;
    display: none;
}

.sidebar.collapsed .sidebar-nav li a {
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav li a i {
    margin-left: 0;
}

.sidebar.collapsed .sidebar-footer {
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .sidebar-user-info {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
}

.sidebar.collapsed .nav-item-dropdown.open .dropdown-menu {
    display: none;
}


/* --- Header --- */

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    height: 70px;
    flex-shrink: 0;
}

.sidebar-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
    white-space: nowrap;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-toggle-btn:hover {
    color: #fff;
}


/* --- User Info & Search --- */

.sidebar-user-info {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    font-size: 2.5em;
    color: #fff;
    margin-left: 15px;
}

.user-details .username {
    font-weight: 700;
    color: #fff;
}

.user-details .role {
    font-size: 0.85em;
    color: var(--text-dark);
}

.sidebar-search {
    padding: 15px 20px;
    position: relative;
}

.sidebar-search i {
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    color: var(--text-dark);
}

#menu-search {
    width: 100%;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 40px 10px 15px;
    color: var(--text-light);
    outline: none;
}


/* --- Navigation --- */

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-heading {
    padding: 20px 25px 5px 25px;
    font-size: 0.75em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav li a {
    border-radius: 24px;
    margin: 2px 15px;
    padding: 12px 15px;
    border-right: none;
    /* Remove old border */
}

.sidebar-nav li a:hover {
    background: rgba(36, 128, 145, 0.2);
    color: #fff;
    transform: none;
    /* Remove old transform */
}

.sidebar-nav li a.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(36, 128, 145, 0.4);
}

.sidebar-nav li a i {
    width: auto !important;
    font-size: 1.2em;
}

.dropdown-menu li a {
    padding-right: 50px !important;
}


/* Tooltip for collapsed sidebar */

.sidebar.collapsed .sidebar-nav li a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 24px;
    white-space: nowrap;
    font-size: 0.9em;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-nav li a:hover::after {
    display: block;
    opacity: 1;
}


/* --- Footer --- */

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.sidebar-footer-link:hover {
    background-color: #333;
    color: #fff;
}


/* --- Notifications (Moved outside sidebar) --- */

.sidebar-notifications {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1050;
}

.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 24px;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    left: auto;
    right: 0;
    top: 65px;
}


/* Ticket Details Page Styles */

.ticket-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 for thread, 1/3 for reply box */
    gap: 25px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .ticket-details-grid {
        grid-template-columns: 1fr;
    }
}

.ticket-reply-container .content-wrapper {
    position: sticky;
    top: 20px;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-reply {
    padding: 15px;
    border-radius: 24px;
    max-width: 85%;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: var(--text-dark);
}

.reply-header strong {
    color: var(--text-light);
}

.reply-body {
    line-height: 1.7;
}

.reply-customer {
    background-color: #333;
    align-self: flex-start;
    /* Align to the right in RTL */
    border-bottom-right-radius: 0;
        margin-top: 10px;
}

.reply-admin {
    background-color: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    /* Align to the left in RTL */
    border-bottom-left-radius: 0;
}

.reply-admin .reply-header,
.reply-admin .reply-header strong {
    color: rgba(255, 255, 255, 0.8);
}


/* Highlight open tickets in the list */

tr.ticket-open {
    background-color: rgba(247, 148, 51, 0.1);
    font-weight: bold;
}


/* ======== LANDING PAGE - SERVICES SECTION (Rebuilt) ======== */

.services-section {
    padding-top: 20px;
    background-color: var(--background-dark);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background-color: var(--background-light);
    padding: 15px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-icon {
    padding-top: 13px;
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-item p {
    color: var(--text-dark);
    font-size: 1em;
    line-height: 1.8;
}


/* --- Header (Final Floating & Sticky Version) --- */

.landing-header {
    position: absolute;
    /* در حالت اولیه روی تصویر شناور است */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.landing-header.scrolled {
    position: fixed;
    /* پس از اسکرول در بالای صفحه می‌چسبد */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.5s ease-out;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}


/* ======== Article Comments & Rating Section (Final Version) ======== */

.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comment-form-wrapper,
.comments-list {
    margin-top: 30px;
}

.login-prompt {
    text-align: center;
    padding: 30px;
    background-color: var(--background-dark);
    border-radius: 24px;
}

.login-prompt a {
    font-weight: bold;
}


/* Star Rating Input */

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 2.2em;
    line-height: 1;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #444;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 2px;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: var(--secondary-color);
}


/* Comments List Display */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 24px;
    border-right: 4px solid var(--primary-color);
}

.comment-author {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}


/* Read-only Star Display */

.comment-rating-display {
    font-size: 1.2em;
}

.comment-rating-display .star {
    color: #444;
}

.comment-rating-display .star.filled {
    color: var(--secondary-color);
}

.comment-meta small {
    color: #888;
    font-size: 0.8em;
}

.comment-text {
    line-height: 1.8;
    color: var(--text-dark);
}


/* Comment Management Page Styles */

.table .comment-rating-display {
    font-size: 1.1em;
    direction: ltr;
    /* Makes stars align correctly */
    display: inline-block;
}

.table .comment-rating-display .star {
    color: #444;
}

.table .comment-rating-display .star.filled {
    color: var(--secondary-color);
}


/* Reusing ticket status badges for comments */

.status-badge.status-pending {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-approved {
    background-color: #28a745;
}

.status-badge.status-rejected {
    background-color: #555;
}


/* Image Gallery Styles */

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.image-thumbnail {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnail .delete-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(220, 53, 69, 0.8);
    color: #fff;
    border: none;
    border-radius: 24px;
    width: 25px;
    height: 25px;
    font-size: 1.2em;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-thumbnail:hover .delete-btn {
    opacity: 1;
}


/* Tabbed Interface Styles */

.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    margin-top: 25px;
}

.tab-button {
    background-color: transparent;
    border: none;
    color: var(--text-dark);
    padding: 15px ;
    font-size: 1.1em;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #fff;
    background-color: var(--background-light);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    /* No styles needed here, content is in panes */
}

.tab-pane {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
    /* Shown by JS */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Diagnosis Fee Display Style (Admin Panel) */

.diagnosis-fee-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.diagnosis-fee-display i {
    font-size: 1.8em;
    color: var(--secondary-color);
}

.diagnosis-fee-display .fee-text strong {
    display: block;
    color: var(--text-dark);
}

.diagnosis-fee-display .fee-text span {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}


/* Disclaimer Note Style (Customer Panel) */

.disclaimer-note {
    font-size: 0.9em;
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 24px;
    margin-top: 15px;
    border-right: 3px solid var(--secondary-color);
}


/* Styles for Admin Details Tab UI */

.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-button {
    background-color: transparent;
    border: none;
    color: var(--text-dark);
    padding: 15px ;
    font-size: 1.1em;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Diagnosis Fee Display */

.diagnosis-fee-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.diagnosis-fee-display i {
    font-size: 1.8em;
    color: var(--secondary-color);
}

.diagnosis-fee-display .fee-text strong {
    display: block;
    color: var(--text-dark);
}

.diagnosis-fee-display .fee-text span {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}


/* Customer Disclaimer Note */

.disclaimer-note {
    font-size: 0.9em;
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 24px;
    margin-top: 15px;
    border-right: 3px solid var(--secondary-color);
}


/* شسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسس
















/* ======== NEW: Process Infographic Section ======== */

.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
}


/* The vertical line */

.process-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 37px;
    /* (Icon width / 2) + (border width) */
    width: 4px;
    height: calc(100% - 50px);
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.process-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: var(--background-light);
    border: 4px solid var(--primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    color: var(--primary-color);
    z-index: 3;
}

.process-step:nth-child(even) .process-icon {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.process-text {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 24px;
    flex-grow: 1;
}

.process-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.5em;
}

.process-text p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

.process-stat {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 24px;
    text-align: center;
    min-width: 150px;
}

.process-stat .stat-number {
    font-size: 3em;
    font-weight: 700;
    display: block;
    color: #fff;
}

.process-stat small {
    font-size: 0.9em;
    color: var(--text-dark);
}


/* ======== FINAL RESPONSIVE STYLES FOR LANDING PAGE ======== */


/* --- Tablet Styles --- */

@media (max-width: 992px) {
    .pc-header {
        display: none;
    }
    .services-container,
    .tutorials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card,
    .feature-card:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center !important;
    }
    .feature-card .feature-text {
        order: 2;
    }
    .feature-card .feature-image {
        order: 1;
        margin-bottom: 20px;
    }
}


/* --- pc Styles --- */

@media (max-width: 992px) {
    .pc-header {
        display: none;
    }
    .mobile-header .nav-buttons {
        display: none;
    }
    .process-pc {
        display: none;
    }
    .nav-buttons-mobile {
        margin-top: 50px;
    }
    .process-mobile .process-step {
        display: block;
    }
    .btn-back-status-mobile {
        display: none;
    }
    .tabs-status-mobile {
        overflow-y: hidden;
        margin-top: 10px;
    }
    .btn-back-status-show-mobile {
        background-color: #f79433;
        color: #333;
        font-size: large;
        font-weight: bold;
        text-align: center;
        display: block;
        margin: 15px;
    }

    .tabs{
        overflow-x: unset !important;
        overflow-y: scroll !important;
        flex-wrap: unset !important;
    }
}

.btn-back-status-ticket {
    display: block;
    margin-top: 20px;
    margin-right: auto;
    background-color: var(--primary-color);
    width: fit-content;
    margin-left: auto;
}


/* --- Mobile Styles --- */

@media (min-width: 992px) {
    .mobile-header {
        display: none;
    }
    .nav-buttons-mobile {
        display: none;
    }
    .process-mobile {
        display: none;
    }
    .btn-back-status-show-mobile {
        display: none;
    }
}


/* --- Mobile Styles --- */

@media (max-width: 768px) {
    /* Hide desktop nav, show mobile hamburger */
    .nav-buttons-desktop {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .landing-nav {
        justify-content: space-between;
    }
    /* Adjust hero text */
    .hero-section.full-screen {
        padding: 150px 0 80px 0;
        height: auto;
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-content .lead {
        font-size: 1.1em;
    }
    /* Adjust section titles */
    .section-title {
        font-size: 2.2em;
    }
    /* Stack service & tutorial cards */
    .services-container,
    .tutorials-container {
        grid-template-columns: 1fr;
    }
    /* Adjust process timeline for mobile */
    .process-timeline-grid {
        grid-template-columns: auto 1fr;
    }
    .process-timeline-grid>.timeline-empty {
        display: none;
    }
    .process-timeline-grid>.process-card,
    .process-timeline-grid>.process-card:nth-child(even) {
        grid-column: 2;
        text-align: right;
    }
    .timeline-middle {
        grid-column: 1;
        grid-row: span 2;
    }
    .timeline-middle::before {
        left: 50%;
        transform: translateX(-50%);
    }
    /* Stack footer columns */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }



    
.content-wrapper {
    margin-top: 20px;
}

}


/* --- Footer --- */

.landing-footer {
    background-color: #111;
    padding: 60px 0 20px 0;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-col i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.footer-bottom a {
    font-weight: bold;
    color: #fff;
}

























/* ======== NEW CUSTOMER DASHBOARD STYLES ======== */
.dashboard-welcome {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 40px;
}
.dashboard-welcome h2 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
}
.summary-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.summary-stats .stat-item {
    color: var(--text-dark);
}
.summary-stats .stat-item span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 8px;
}

/* Smart Track Card */
.smart-track-card {
    background: linear-gradient(145deg, var(--primary-color), #2ca0b4);
    color: #fff;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(36, 128, 145, 0.4);
}
.smart-track-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.smart-track-header h3 {
    margin: 0;
    font-size: 1.3em;
}
.smart-track-body {
    display: flex;
    align-items: center;
    gap: 20px;
}
.smart-track-body .item-icon {
    font-size: 2.5em;
}
.smart-track-body .item-details {
    flex-grow: 1;
}
.smart-track-body .item-title {
    display: block;
    font-size: 1.2em;
    font-weight: 500;
}
.smart-track-body .item-status {
    display: block;
    font-size: 1em;
    opacity: 0.8;
}
.smart-track-body .btn {
    background-color: #fff;
    color: #000;
}

/* Quick Access Section */
.quick-access-section {
    margin-top: 30px;
}
.section-title-small {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.2em;
    margin-bottom: 20px;
}
/* Make service boxes smaller */
.service-box.small {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}
.service-box.small .service-box-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8em;
}
.service-box.small .service-box-content h3 {
    font-size: 1em;
    margin: 0;
}
.service-box.small .service-box-content p {
    display: none; /* Hide paragraph in small boxes */
}

















































/* ======== MOBILE MENU STYLES ======== */

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 2001;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden off-screen */
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: right;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0; /* Slides in from the right */
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 2em;
    margin: 20px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.mobile-nav.active a {
    transform: translateY(0);
    opacity: 1;
}
/* Staggered animation for links */
.mobile-nav.active a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.4s; }

.close-nav-btn {
    position: absolute;
    top: 20px;
    left: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3em;
    cursor: pointer;
}

/* --- Responsive Media Query to activate mobile menu --- */
@media (max-width: 768px) {
    .nav-buttons-desktop {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
}



.item-mobile-nav{
    display: flex;
    padding: 15px ;
}

.item-mobile-nav-text{
   margin-right: 15px;
}



































/* ======== CUSTOMER PRODUCT HUB (SALE DETAILS) STYLES ======== */
.product-hub-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-top: 55px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
}
.hub-main-column { display: flex; flex-direction: column; gap: 30px; }
.hub-sidebar-column { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 30px; }

.product-identity-card {
    display: flex;
    align-items: center;
    gap: 25px;
}
.product-identity-card .product-icon {
    font-size: 5em;
    color: var(--primary-color);
}
.product-identity-card h2 { font-size: 2em; margin: 0; color: #fff; }
.product-identity-card p { margin: 5px 0 0 0; color: var(--text-dark); }

.action-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.action-btn-large {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}
.action-btn-large:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}
.action-btn-large i { font-size: 2em; margin-bottom: 10px; display: block; }

.device-history-timeline .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.device-history-timeline .history-item:last-child { border-bottom: none; }
.history-date { font-size: 0.9em; color: var(--text-dark); }
.history-title { font-weight: 500; color: #fff; }
.history-link { font-size: 0.8em; font-weight: bold; }


.appointment-details-mobile{
margin-top: 95px;
margin-right: 15px;
margin-left: 15px;
}






.page-header-with-button{
 
    padding: 15px;
}


.ticket-details-mobile{

    padding: 15px;
}


@media(max-width: 992px) {
    .product-hub-grid { grid-template-columns: 1fr; }
    .hub-sidebar-column { position: static; }




    .appointment-details-mobile{
        margin-top: 75px;
        }



    .product-hub-grid {
  
        margin-top: 54px;
   
    }







    .dashboard-welcome{
        margin-top: 20px;
    }








    .appointment-list-mobile{
        margin-top: 75px !important;
    }






    .page-header-with-button{
        margin-top: 60px;
    
    }



    .ticket-details-mobile{
        margin-top: 20px;
      
    }
    


}
@media(max-width: 576px) {
    .action-center { grid-template-columns: 1fr; }
}










































/* ======== NEW SMART ADMIN DASHBOARD STYLES ======== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main column is twice as wide as sidebar */
    gap: 30px;
    align-items: flex-start;
}
.dashboard-widget {
    background-color: var(--background-light);
    border-radius: 24px;
    margin-bottom: 30px;
    overflow: hidden; /* To contain header background */
}
.widget-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 24px;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
}
.widget-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    display: flex;

    gap: 10px;
}
.widget-header h3 i {
    color: var(--secondary-color);
}
.widget-link {
    font-size: 0.85em;
    font-weight: 500;
}
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.widget-item:last-child {
    border-bottom: none;
}
.widget-item .item-info strong {
    color: #fff;
}
.widget-item .item-meta {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-right: 10px;
}
.widget-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-dark);
}
.quick-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}
.quick-stats .stat-item {
    text-align: center;
}
.quick-stats .stat-item span {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
}
.quick-stats .stat-item p {
    margin: 0;
    color: var(--text-dark);
}
.quick-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.quick-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- Responsive for Smart Dashboard --- */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .appointment-class{
        padding-top: 15px !important;
    }
}





/* Quick Stats Grid Update */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 grid */
    gap: 20px;
    padding: 20px;
}






























/* ======== NOTIFICATION HISTORY FEED STYLES ======== */
.notification-timeline {
    max-width: 800px;
    margin: 0 auto;
}
.notification-date-header {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.notification-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-icon-wrapper {
    font-size: 1.5em;
    color: var(--primary-color);
    flex-shrink: 0;
}
.notification-content p {
    margin: 0 0 8px 0;
    line-height: 1.7;
}
.notification-content p a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}
.notification-content p a:hover {
    color: var(--secondary-color);
}
.notification-content small {
    color: #888;
    font-size: 0.85em;
}
.notification-content small span {
    margin-left: 15px;
}

















/* ======== FINAL STYLES FOR CHECKLIST FORM ======== */

.checklist-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.checklist-item {
    background-color: var(--background-dark);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.checklist-item:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(36, 128, 145, 0.3);
}
.checklist-item > label {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 15px;
    display: block;
}
.checklist-options {
    display: flex;
    justify-content: stretch;
    gap: 10px;
}
.checklist-options input[type="radio"] {
    display: none; /* Hide the default radio button */
}
.checklist-options label {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.checklist-options label:hover {
    border-color: var(--primary-color);
    color: #fff;
}

/* Style for the selected (checked) label */
.checklist-options input[type="radio"]:checked + label {
    color: #fff;
    font-weight: bold;
}
.checklist-options input[value="pass"]:checked + label {
    background-color: #28a745;
    border-color: #28a745;
}
.checklist-options input[value="fail"]:checked + label {
    background-color: var(--red);
    border-color: var(--red);
}
.checklist-options input[value="na"]:checked + label {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Style for the notes input */
.checklist-item .note-input {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #111;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: #fff;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-5px);
    opacity: 1;
}
.checklist-item .note-input.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}
















/* ======== FINAL STYLES FOR CUSTOMER CHECKLIST RESULTS ======== */

.checklist-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1em;
}
.checklist-results-table thead {
    background-color: var(--background-dark);
}
.checklist-results-table th {
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-light);
}
.checklist-results-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}
.checklist-results-table tbody tr:last-child td {
    border-bottom: none;
}
.checklist-results-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Status Labels */
.status-label-chk {
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 24px;
    color: #fff;
    font-size: 0.9em;
    text-transform: capitalize;
}
.status-label-chk.pass {
    background-color: #28a745;
}
.status-label-chk.fail {
    background-color: var(--red);
}
.status-label-chk.na {
    background-color: #6c757d;
}

/* Notes Column */
.checklist-results-table td:last-child {
    font-size: 0.9em;
    font-style: italic;
    color: var(--secondary-color);
}
















/* ======== COUNTER-OFFER & CHECKLIST STYLES (CUSTOMER) ======== */

.offer-box, .offer-box-pending, .offer-box-finalized {
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    text-align: center;
    border-left: 5px solid;
}
.offer-box {
    background-color: #1c4a2a; 
    border-color: #28a745; 
}
.offer-box-pending {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}
.offer-box-finalized {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}
.offer-box .offer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
    text-align: right;
}
.offer-box .offer-actions p { font-size: 0.9em; margin-bottom: 10px; }
.offer-box .action-accept { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 25px; }

.checklist-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1em;
}
.checklist-results-table thead { background-color: var(--background-dark); }
.checklist-results-table th { padding: 15px; text-align: right; border-bottom: 2px solid var(--primary-color); }
.checklist-results-table td { padding: 15px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.checklist-results-table tbody tr:last-child td { border-bottom: none; }

.status-label-chk { font-weight: bold; padding: 5px 12px; border-radius: 24px; color: #fff; font-size: 0.9em; }
.status-label-chk.pass { background-color: #28a745; }
.status-label-chk.fail { background-color: var(--red); }
.status-label-chk.na { background-color: #6c757d; }

.checklist-results-table td:last-child { font-size: 0.9em; font-style: italic; color: var(--secondary-color); }

@media (max-width: 768px) {
    .offer-box .offer-actions { grid-template-columns: 1fr; }
    .offer-box .action-accept { border-left: none; padding-left: 0; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 25px; }
}































/* ======== FINAL TAB INTERFACE STYLES ======== */
.tabs {
    display: flex;
    flex-wrap: wrap; /* Allows tabs to wrap on smaller screens */
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}
.tab-button {
    background-color: transparent;
    border: none;
    color: var(--text-dark);
    padding: 15px 20px;
    font-size: 1em;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent; /* Prepare for active state */
}
.tab-button:hover {
    color: #fff;
}
.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tab-content {
    /* No styles needed here */
}
.tab-pane {
    display: none; /* Hidden by default by JavaScript */
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



















/* Status Badge Colors for Health/Purchase Check */
.status-badge.status-healthy {
    background-color: #28a745;
    color: #fff;
}
.status-badge.status-problematic {
    background-color: red;
    color: #fff;
}
.status-badge.status-pending {
    background-color: gray;
    color: #000;
}











/* Status Badge Colors for Purchase Eval List */
.status-badge.status-buy {
    background-color: #28a745;
    color: #fff;
}
.status-badge.status-dont_buy {
    background-color: red;
    color: #fff;
}
/* The .status-badge.status-pending style already exists and will be reused */












.warranty-tag.active {
    background-color: #28a745;
    color: #28a745;
}

.warranty-tag.expired {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--red);
}















/* ======== FINAL RESULT BOX STYLES ======== */
.final-result-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    border: 1px solid;
}
.result-icon {
    font-size: 3em;
}
.result-text h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.3em;
    font-weight: 700;
}
.result-text p {
    margin: 0;
    line-height: 1.7;
    font-size: 1em;
}

/* Color variations */
.final-result-box.status-healthy {
    background-color: #28a745;
    border-color: #28a745;
}
.final-result-box.status-healthy .result-icon,
.final-result-box.status-healthy h4 {
    color: white;
}

.final-result-box.status-problematic {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}
.final-result-box.status-problematic .result-icon,
.final-result-box.status-problematic h4 {
    color: var(--secondary-color);
}








/* Customer Dashboard Header Actions */
.customer-header .header-actions {
    display: flex;
    gap: 10px;
}



















/* ======== PAYMENT SUCCESS & UNREPAIRABLE BOX STYLES ======== */

.payment-success-box {
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid #28a745;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-success-box .success-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 15px;
}

.payment-success-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #fff;
}

.payment-success-box p {
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 25px auto;
}

.offer-box-declined .btn {
    margin-top: 20px;
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
}




















/* ======== CUSTOMER DETAILS PAGE - ACTIVITY FEED STYLES ======== */
.customer-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main content is twice as wide as the sidebar */
    gap: 30px;
    align-items: flex-start;
}
.activity-feed-column .content-wrapper {
    position: sticky;
    top: 20px;
}
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.feed-item {
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    border-right: 3px solid var(--primary-color);
}
.feed-item p {
    margin: 0 0 8px 0;
    font-size: 0.9em;
}
.feed-item small {
    color: #888;
    font-size: 0.8em;
}

/* Responsive */
@media (max-width: 992px) {
    .customer-details-grid {
        grid-template-columns: 1fr;
    }
}

















/* ======== WARRANTY REQUESTS STYLES ======== */

/* Status Badge Colors for Warranty List Page */
.status-badge.status-pending_pricing {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-priced {
    background-color: var(--primary-color);
    color: #fff;
}

.status-badge.status-paid {
    background-color: #28a745;
    color: #fff;
}

.status-badge.status-rejected {
    background-color: var(--red);
    color: #fff;
}

/* Spacing for Warranty Details Page */
.warranty-details-page .content-wrapper {
    margin-bottom: 30px;
}














/* ======== NEW: Attractive CTA Boxes for Health Check Page ======== */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.cta-box {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.cta-box .cta-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.cta-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #fff;
}

.cta-box p {
    color: var(--text-dark);
    line-height: 1.7;
    flex-grow: 1; /* Pushes button to the bottom */
    margin-bottom: 25px;
}

/* Sell Box Specific Styles */
.cta-box-sell {
    border-color: var(--primary-color);
}
.cta-box-sell .cta-icon {
    color: var(--primary-color);
}

/* Warranty Box Specific Styles */
.cta-box-warranty {
    border-color: var(--secondary-color);
}
.cta-box-warranty .cta-icon {
    color: var(--secondary-color);
}
.cta-box-warranty .btn {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(247, 148, 51, 0.2);
}
.cta-box-warranty .btn:hover {
    background-color: #ffab57;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
}






























/* ======== ENHANCED PAYMENT LIST STYLES ======== */

.payment-list-table tbody tr.pending-verification {
    background-color: rgba(247, 148, 51, 0.1); /* Light orange highlight for pending manual */
}

.payment-list-table tbody tr.pending-online {
    background-color: rgba(36, 128, 145, 0.1); /* Light blue highlight for pending online */
}

.payment-method-icon {
    margin-right: 5px;
    font-size: 1.1em;
    vertical-align: middle;
}

.payment-status-badge {
    padding: 6px 12px;
    border-radius:24px;
    font-size: 0.85em;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.payment-status-badge.status-successful,
.payment-status-badge.status-approved {
    background-color: var(--green); /* Success green */
}

.payment-status-badge.status-pending,
.payment-status-badge.status-waiting_payment { /* Added waiting_payment */
    background-color: var(--secondary-color); /* Pending orange */
    color: #000;
}

.payment-status-badge.status-failed,
.payment-status-badge.status-rejected {
    background-color: var(--red); /* Failed/Rejected red */
}
































/* ======== ENHANCED PURCHASE EVAL DETAILS STYLES ======== */

.eval-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 25px;
    align-items: flex-start;
}

.eval-details-grid .grid-span-2 {
    grid-column: span 2; /* Make checklist span 2 columns */
}

.eval-details-grid .grid-span-3 {
    grid-column: span 3; /* Make customer info span all 3 columns */
}

.eval-checklist-container {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.eval-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eval-checklist-item {
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    border-left: 4px solid var(--border-color); /* Default border */
}

.eval-checklist-item > label {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

/* Style selected radio button labels */
.eval-checklist-item .checklist-options input[value="pass"]:checked + label {
    border-color: var(--green); background-color: rgba(40, 167, 69, 0.1); color: var(--green);
}
.eval-checklist-item .checklist-options input[value="fail"]:checked + label {
    border-color: var(--red); background-color: rgba(220, 53, 69, 0.1); color: var(--red);
}
.eval-checklist-item .checklist-options input[value="na"]:checked + label {
    border-color: #6c757d; background-color: rgba(108, 117, 125, 0.1); color: #adb5bd;
}

/* Highlight border based on status */
.eval-checklist-item.status-pass { border-left-color: var(--green); }
.eval-checklist-item.status-fail { border-left-color: var(--red); }
.eval-checklist-item.status-na { border-left-color: #6c757d; }

.eval-checklist-item .note-input {
    margin-top: 10px;
    background-color: rgba(0,0,0,0.3);
    font-size: 0.9em;
    border-color: var(--red); /* Highlight notes for failed items */
}
.eval-checklist-item .note-input.hidden {
    display: none; /* Cleaner hiding */
}

.eval-decision-box {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--border-color);
    position: sticky; /* Keep it visible while scrolling checklist */
    top: 20px;
}
.eval-decision-box h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.customer-info-link {
    margin-left: 10px;
    font-size: 0.9em;
}

@media (max-width: 992px) {
    .eval-details-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .eval-details-grid .grid-span-2,
    .eval-details-grid .grid-span-3 {
        grid-column: span 1;
    }
    .eval-decision-box {
        position: static; /* Disable sticky positioning */
    }
}























/* ======== ENHANCED CUSTOMER PURCHASE EVAL STATUS STYLES ======== */

.status-details-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
}

.status-details-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
}

.status-details-card h3 i {
    color: var(--primary-color);
}

.device-info-grid p {
    margin-bottom: 12px;
    color: var(--text-dark);
}
.device-info-grid strong {
    color: var(--text-light);
    margin-left: 8px;
}

/* Enhanced Checklist Table */
.detailed-checklist-table {
    width: 100%;
    border-collapse: separate; /* Use separate for rounded corners */
    border-spacing: 0 8px; /* Vertical spacing between rows */
    margin-top: 20px;
}
.detailed-checklist-table th {
    text-align: right;
    padding: 10px 15px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9em;
}
.detailed-checklist-table td {
    background-color: var(--background-dark);
    padding: 12px 15px;
    vertical-align: middle;
    color: var(--text-light);
}
.detailed-checklist-table td:first-child {
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    font-weight: 500;
}
.detailed-checklist-table td:last-child {
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.checklist-status-icon {
    font-size: 1.2em;
    margin-left: 8px;
    vertical-align: middle;
}
.checklist-status-icon.pass { color: var(--green); }
.checklist-status-icon.fail { color: var(--red); }
.checklist-status-icon.na { color: #6c757d; }

.checklist-notes {
    font-size: 0.85em;
    color: #aaa;
    display: block;
    margin-top: 5px;
}

/* Adjust Offer/Status Boxes */
.offer-box, .offer-box-pending, .offer-box-finalized, .offer-box-declined {
    margin-top: 0; /* Removed default top margin as it's now inside a card */
}

/* Ensure mobile header stays on top */
.mobile-nav { z-index: 2000; }
header.fixed-top { z-index: 1030; } /* Ensure header is below mobile nav */

































/* ======== ACCORDION STYLES (for Driver Grouping) ======== */
.accordion-container {
    margin-top: 20px;
    max-height: 600px; /* Limit height and add scroll */
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}
.accordion-item {
    background-color: var(--background-dark);
    margin-bottom: 10px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.accordion-header {
    background-color: rgba(0,0,0,0.2);
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header:hover {
    background-color: rgba(0,0,0,0.4);
}
.accordion-header::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: var(--text-dark);
}
.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}
.accordion-item.active .accordion-content {
    max-height: 1000px; /* Adjust as needed */
    padding: 15px 20px;
}
.accordion-content table { margin-top: 0; } /* Remove extra margin inside accordion */
.accordion-content table td { background-color: transparent; } /* Use accordion background */





























/* ======== START: Professional Centered Split-Card Login (V4 - Corrected Centering) ======== */

/* 1. Body styles */
/* We use the existing .bg-glass class on the <body> */
body.bg-glass {
    /* ONLY sets background and ensures full height */
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background-image: url('../assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 2. Fullscreen container to CENTER the card */
.login-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem; /* This padding creates the space around the card on DESKTOP */
    box-sizing: border-box; /* Include padding in the width/height calculation */
}

/* 3. The main split card */
.login-card-split {
    width: 100%;
    max-width: 900px; /* Width of the entire card */
    min-height: 550px; /* Give the card a nice height */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    border-radius: 24px;
    overflow: hidden; /* Important for rounded corners on children */
    
    /* Glassmorphism effect */
    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 4. Left Side (IMAGE) */
.login-card-image {
    background-image: url('../images/login.png'); 
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.sign-card-image {
    background-image: url('../images/join.png'); 
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.verify-card-image {
    background-image: url('../images/verify.png'); 
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

/* 5. Right Side (Form) */
.login-card-form {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly different background for contrast */
}

/* 6. Enhanced Error Alert */
.login-card-form .alert.alert-danger {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.7);
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 24px;
    text-align: right;
    font-size: 0.9em;
    animation: fadeIn 0.5s ease-out;
}
.login-card-form .alert.alert-danger::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f071"; /* fa-triangle-exclamation */
    font-size: 1.2em;
    color: var(--secondary-color);
}
.login-card-form .alert.alert-danger a {
    color: var(--secondary-color) !important;
    font-weight: bold;
    text-decoration: underline;
}

/* 7. Enhanced Info Alert */
.login-card-form .alert.alert-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(36, 128, 145, 0.2);
    border: 1px solid rgba(36, 128, 145, 0.7);
    color: #fff;
    font-size: 0.9em;
    animation: fadeIn 0.5s ease-out;
}
.login-card-form .alert.alert-info::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f05a"; /* fa-info-circle */
    font-size: 1.2em;
    color: var(--primary-color);
}

/* 8. Error Shake Animation */
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.shake-error {
  animation: shake 0.7s cubic-bezier(.36,.07,.19,.97) both;
}

/* 9. Fade-in Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 10. Responsive for Mobile */
@media (max-width: 992px) {
    body.bg-glass {
        padding: 0; /* Remove desktop padding */
    }

    .login-center-container {
        padding: 0; /* Remove desktop padding */
        align-items: flex-start; /* Align to top */
        min-height: 100vh;
    }

    .login-card-split {
        /* CHANGED: Use flex-direction to stack */
        display: flex;
        flex-direction: column; 
        border-radius: 24px;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        background: rgba(40, 40, 40, 0.75); /* Darker glass effect for mobile */
    }

    .login-card-image {
        display: block; /* Image is visible */
        min-height: 250px; /* Give the image a fixed height */
        height: 35vh;     /* 35% of the viewport height */
        flex-shrink: 0; /* Don't let it shrink */
    }

    .login-card-form {
        justify-content: center; /* Center form vertically in its space */
        padding: 2rem 1.5rem;
        min-height: auto; /* Let it take natural height */
        flex-grow: 1; /* Allow it to fill remaining space */
    }
}
/* ======== END: Professional Centered Split-Card Login (V4) ======== */


























































/* ======== START: Professional Centered Split-Card & OTP Styles ======== */

/* 1. Body & Container (Shared with Login) */
body.bg-glass {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-sizing: border-box;
}
.login-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* 2. Split Card Layout (Shared with Login) */
.login-card-split {
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.login-card-form {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

/* 3. NEW: OTP Input Box Styles */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    direction: ltr; /* OTP inputs should always be LTR */
}
.otp-input {
    width: 60px !important; /* Override .form-control-glass */
    height: 65px;
    font-size: 2em !important;
    text-align: center !important; /* Ensure text is centered */
    padding: 0.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 24px;
    transition: all 0.3s ease;
    /* Remove spinners from number input */
    -moz-appearance: textfield;
}
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.otp-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    outline: none;
}

/* 4. Alerts & Animations (Shared with Login) */
.login-card-form .alert.alert-danger { /* (Style codes from previous step) */ }
.login-card-form .alert.alert-info { /* (Style codes from previous step) */ }
@keyframes shake { /* (Animation code from previous step) */ }
.shake-error { /* (Animation code from previous step) */ }
@keyframes fadeIn { /* (Animation code from previous step) */ }

/* 5. Responsive (Shared with Login) */
@media (max-width: 992px) {
    body.bg-glass { padding: 0; align-items: flex-start; }
    .login-center-container { padding: 0; min-height: 100vh; }
    .login-card-split {
        display: flex;
        flex-direction: column; 
        border-radius: 24px;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        background: rgba(40, 40, 40, 0.75);
    }
    .login-card-image {
        display: block;
        min-height: 250px;
        height: 35vh;
        flex-shrink: 0;
    }
    .login-card-form {
        justify-content: center;
        padding: 2rem 1.5rem;
        min-height: auto;
        flex-grow: 1;
    }
    .otp-input { /* Make inputs slightly smaller on mobile */
        width: 50px !important;
        height: 55px;
        font-size: 1.5em !important;
    }
}
/* ======== END: Professional Centered Split-Card & OTP Styles ======== */







/* ======== START: OTP Verification & Success Animation Styles ======== */

/* 1. OTP Input Box Styles */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    direction: ltr; /* OTP inputs should always be LTR */
}
.otp-input {
    width: 60px !important; /* Override .form-control-glass */
    height: 65px;
    font-size: 2em !important;
    text-align: center !important;
    padding: 0.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 24px;
    transition: all 0.3s ease;
    /* Remove spinners from number input */
    -moz-appearance: textfield;
}
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.otp-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    outline: none;
}

/* 2. Resend & Timer Links */
.otp-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9em;
}
.otp-links a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}
.otp-links a:hover { text-decoration: underline; }
#timer-message {
    color: var(--text-dark);
    font-weight: bold;
}
#resend-container {
    display: none; /* Hidden by default */
}

/* 3. NEW: Success Overlay & Animation */
.success-overlay {
    /* Hidden by default */
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 40, 40, 0.9); /* Darker glass overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}
.success-overlay.active {
    display: flex; /* Shown by JS */
}

/* 4. The "Cool" Pulsating Checkmark Animation */
.success-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background-color: var(--green);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    color: #fff;
    /* Pulsating shadow effect */
    animation: pulse 1.5s infinite ease-in-out;
}
.success-checkmark i {
    transform: scale(0.8);
    /* Pop-in animation for the checkmark itself */
    animation: check-pop 0.5s 0.2s ease-out both;
}
.success-overlay p {
    color: #fff;
    font-size: 1.2em;
    margin-top: 25px;
    font-weight: 500;
}

/* 5. Keyframes for Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}
@keyframes check-pop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 6. Responsive (Ensure OTP inputs fit on small screens) */
@media (max-width: 992px) {
    /* (Styles for .login-card-split, .login-card-image etc. are already defined) */
    .otp-input {
        width: 50px !important;
        height: 55px;
        font-size: 1.5em !important;
    }
    .login-card-form {
        padding: 2rem 1.5rem; /* Adjust padding for mobile */
    }
}
/* ======== END: OTP Verification & Success Animation Styles ======== */







































/* ======== START: Professional Repair List Card Styles ======== */

.repair-card-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column list */
    gap: 15px;
    padding-top: 15px;
}

.repair-card-item {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Icon | Details | Status & Arrow */
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-right: 5px solid transparent; /* Highlight border on the right */
}

.repair-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-right-color: var(--primary-color);
}

.repair-card-item .card-icon {
    font-size: 2.2em;
    color: var(--primary-color);
}

.repair-card-item .card-details {
    line-height: 1.6;
}

.repair-card-item .card-details .device-model {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.repair-card-item .card-details .tracking-code {
    font-size: 0.9em;
    color: var(--text-dark);
}

.repair-card-item .card-status {
    text-align: left; /* Aligns status and arrow to the left in RTL */
}

.repair-card-item .card-status .status-badge {
    /* Uses the existing status-badge styles */
    display: inline-block;
    padding: 8px 15px;
    font-weight: 500;
    min-width: 120px; /* Give badges a consistent width */
    text-align: center;
}

.repair-card-item .card-status .card-arrow {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.repair-card-item:hover .card-status .card-arrow {
    color: var(--secondary-color);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .repair-card-item {
        grid-template-columns: 1fr; /* Stack everything */
        gap: 15px;
        padding: 20px;
    }
    .repair-card-item .card-icon {
        display: none; /* Hide big icon on mobile */
    }
    .repair-card-item .card-status {
        text-align: right; /* Align status to right on mobile */
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
    }
    .repair-card-item .card-status .card-arrow {
        display: none; /* Hide arrow on mobile */
    }
    .repair-card-item .card-status .status-badge {
        width: 100%; /* Make status badge full-width */
    }
}
/* ======== END: Professional Repair List Card Styles ======== */























/* ======== START: V3 Modern Service Card List Styles ======== */

.service-card-list {
    display: grid;
    /* On large screens, allow 2 or 3 columns depending on space */
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 25px;
    padding-top: 15px;
}

.service-card-list{
    padding-right: 10px;
    padding-left: 10px;
}

.service-card {
    /* A soft, modern gradient */
    background: linear-gradient(145deg, #2e2e2e, #262626); 
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column; /* Top-to-bottom flow */
    transition: all 0.3s ease-out;
    /* Soft shadow for depth */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

/* Card Header: Device Model & Icon */
.service-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.service-card-header .device-model {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-card-header .device-model i {
    color: var(--primary-color);
}

.service-card-header .tracking-code {
    font-size: 0.9em;
    color: var(--text-dark);
}

/* Card Body: Last Update Info */
.service-card-body {
    padding: 20px 25px;
    flex-grow: 1; /* Pushes footer to the bottom */
}
.service-card-body .last-update {
    font-size: 0.9em;
    color: var(--text-dark);
}

/* Card Footer: Status & Action Text */
.service-card-footer {
    padding: 15px 25px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-card-footer .status-badge {
    /* Uses existing styles */
    padding: 8px 15px;
    font-weight: 500;
}

.service-card-footer .card-arrow {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: 500;
}
.service-card-footer .card-arrow i {
    margin-right: 5px; /* RTL spacing */
}

/* Responsive */
@media (max-width: 768px) {
    .service-card-list {
        grid-template-columns: 1fr; /* Stack on mobile */
            padding-top: 42px !important;
    }

    
}
/* ======== END: V3 Modern Service Card List Styles ======== */























/* ======== START: Professional Customer Status Dashboard (V4) ======== */

/* 1. New Grid Layout */
.status-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main column (timeline) is 2/3, sidebar is 1/3 */
    gap: 30px;
    align-items: flex-start;
    padding-right: 10px;
    padding-left: 10px;
}
.status-main-column { display: flex; flex-direction: column; gap: 30px; }
.status-sidebar-column { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 90px; }

/* 2. Visual Repair Roadmap (Timeline) */
.repair-roadmap {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}
/* The connecting line */
.repair-roadmap::before {
    content: '';
    position: absolute;
    top: 35px; /* Vertically center on the icon */
    right: 5%;
    width: 90%;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}
.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    width: 100px; /* Width for each step */
    text-align: center;
}
.roadmap-icon {
    width: 30px;
    height: 30px;
    border-radius: 24px;
    background-color: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.9em;
    border: 4px solid var(--background-dark);
    transition: all 0.4s ease;
}
.roadmap-step p {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.4s ease;
}
/* Active & Completed States */
.roadmap-step.completed .roadmap-icon {
    background-color: var(--green);
    color: #fff;
    border-color: var(--background-light);
}
.roadmap-step.active .roadmap-icon {
    background-color: var(--secondary-color);
    color: #000;
    border-color: var(--background-light);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(247, 148, 51, 0.5);
}
.roadmap-step.completed p,
.roadmap-step.active p {
    color: #fff;
}

/* 3. Action Required Box (Replaces Payment Tab) */
.action-required-box {
    border: 2px solid var(--secondary-color);
    background: rgba(247, 148, 51, 0.1);
    box-shadow: 0 5px 25px rgba(247, 148, 51, 0.1);
}
.action-required-box h2 {
    color: var(--secondary-color);
}
.action-required-box .cost-amount {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 20px 0;
}
.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
/* Style for "card-payment-modal" (from previous steps) */
.modal-content {
    direction: rtl; /* Ensure modal content is RTL */
    text-align: right;
}
.modal-content form {
    margin-top: 15px;
}

/* 4. Sidebar Widgets (Photo Gallery, Warranty, etc.) */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.photo-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}
.photo-gallery-item img:hover {
    transform: scale(1.05);
}
.photo-gallery-item p {
    text-align: center;
    font-size: 0.8em;
    color: var(--text-dark);
    margin-top: 5px;
}

/* 5. Responsive for Mobile */
@media (max-width: 992px) {
    .status-dashboard-grid {
        grid-template-columns: 1fr; /* Stack columns */
        padding-top: 42px;
    }


    .page-content-wrapper{
        margin-top: 0 !important;
    }



    .status-sidebar-column {
        position: static; /* Disable sticky sidebar */
    }
    .repair-roadmap {
        /* On small screens, show fewer items or wrap */
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0;
    }
    .repair-roadmap::before { display: none; } /* Hide line on mobile */
    .roadmap-step {
        flex-direction: row; /* Icon and text side-by-side */
        width: 100%;
        text-align: right;
        padding: 10px 0;
        border-bottom: 1px dashed var(--border-color);
    }
    .roadmap-step p { font-size: 1em; }
    .roadmap-icon { flex-shrink: 0; }
    
    .payment-buttons {
        flex-direction: column;
    }
    .payment-buttons .btn {
        width: 100%;
    }


    .ticket-details-grid{
        padding-top: 40px !important;
    }
}
/* ======== END: Professional Customer Status Dashboard ======== */























/* ======== START: Responsive Tab Layout (customer/status.php) ======== */

/* Make tabs scrollable on mobile instead of stacking */
.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    /* NEW */
    overflow-x: auto; /* Allows horizontal scrolling */
    white-space: nowrap; /* Keeps tabs in one line */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding-bottom: 2px; /* Prevent scrollbar from overlapping border */
}

/* Ensure tab buttons don't shrink */
.tab-button {
    flex-shrink: 0; /* Prevents shrinking on mobile */
    padding: 12px 15px;
}

/* Make info/history grid stack on mobile */
@media (max-width: 992px) {
    .details-container {
        grid-template-columns: 1fr; /* Stack info and history columns */
        gap: 20px;
    }

    .list-ticket-up{
        padding-top: 0 !important;
    }

    .health-check-status{
        padding-top: 15px !important;
    }
}

/* Ensure image gallery is responsive */
.image-gallery {
    display: grid;
    /* Auto-fit columns, min 120px, max 1fr */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}
.image-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
/* ======== END: Responsive Tab Layout ======== */

































/* ======== BOOKING WIZARD MOBILE OPTIMIZATION ======== */

/* Make the wizard card full width on mobile */
@media (max-width: 768px) {
    .wizard-container {
        /* Add padding for fixed header and space */
        padding: 80px 10px 30px 10px; 
        min-height: 100vh;
        align-items: flex-start; /* Align to top on mobile */
    }
    .wizard-card.glass-card {
        width: 100%;
        padding: 1.5rem; /* Slightly reduce padding */
    }

    /* Stack the service grid to 1 column */
    .service-selection-grid {
        grid-template-columns: 1fr;
    }

    /* Stack date/time inputs */
    .form-step[data-step="2"] > div[style*="display: flex"] {
        flex-direction: column;
        gap: 0; /* Remove gap, .form-group handles margin */
    }
    

}
/* ======== END: BOOKING WIZARD ======== */




















/* ======== START: Enhanced Detail Grid Styles (Appointment/Ticket Details) ======== */
.detail-grid-list {
    display: grid;
    /* 2 columns on desktop */
    grid-template-columns: 1fr 1fr; 
    gap: 15px; /* Space between items */
}

.detail-grid-item {
    background-color: var(--background-dark); /* Darker than the card bg */
    padding: 15px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center; /* Vertically align icon and text */
    gap: 15px;
    transition: all 0.3s ease;
}
.detail-grid-item:hover {
    border-color: var(--primary-color);
}

.detail-grid-item .icon {
    font-size: 1.5em;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.detail-grid-item .text-content {
    line-height: 1.5;
}

.detail-grid-item .label {
    display: block;
    font-size: 0.85em;
    color: var(--text-dark); /* Lighter text for the label */
}

.detail-grid-item .value {
    display: block;
    font-weight: 500;
    color: #fff; /* White, bold text for the value */
}

/* Make notes/other full-width */
.detail-grid-item.full-width {
    grid-column: 1 / -1;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .detail-grid-list {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 10px;
    }
}
/* ======== END: Enhanced Detail Grid Styles ======== */




















/* ======== Customer List Page Action Button (Bottom Position) ======== */
.page-action-bar {
    display: flex;
    justify-content: flex-end; /* Aligns button to the left (RTL) */
    padding-bottom: 0; /* Remove bottom padding */
    margin-top: 20px; /* Add top margin to separate from list */
}

/* On mobile, make button full width for better UX */
@media (max-width: 768px) {
    .page-action-bar {
        padding: 0;
        margin-top: 20px;
    }
    .page-action-bar .btn {
        width: 100%;
        font-size: 1.1em;
        padding: 12px;
    }
}
/* ======== END Customer List Page Action Button ======== */







































.detail-grid-item .text-content {
    line-height: 1.5;
    flex-grow: 1; /* <<--- این خط اضافه شده: به کانتینر متن می‌گوید تا تمام فضا را پر کند */
    width: 1%; /* <<--- این خط اضافه شده: یک فیکس برای اطمینان از رشد صحیح در برخی مرورگرها */
}

















/* ======== START: Inline Search Form (select_customer.php) ======== */

.customer-search-form {
    display: flex;
    gap: 10px; /* فاصله بین کادر جستجو و دکمه */
    align-items: flex-end; /* دکمه و کادر را از پایین تراز می‌کند */
}

.customer-search-form .form-group {
    flex-grow: 1; /* کادر جستجو تمام فضای خالی را پر می‌کند */
    margin-bottom: 0; /* حذف فاصله اضافه زیر کادر */
}

/* اختیاری: اگر می‌خواهید لیبل "جستجو در میان مشتریان" حذف شود 
   و فقط placeholder نمایش داده شود، این کد را از کامنت خارج کنید:
*/
/*
.customer-search-form label {
    display: none; 
}
*/

.customer-search-form .btn {
    flex-shrink: 0; /* جلوگیری از فشرده شدن دکمه */
}
/* ======== END: Inline Search Form ======== */














/* ======== START: Custom File Input (Drag & Drop Style) ======== */
.file-upload-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 150px;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius:24px;
    background-color: var(--background-dark);
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Style for when dragging a file over the box */
.file-upload-label.drag-over { 
    border-color: var(--primary-color);
    background-color: var(--background-light);
    color: #fff;
}

.file-upload-label .upload-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-label .upload-text-main {
    font-weight: 500;
    color: #fff;
}

.file-upload-label .upload-text-sub {
    font-size: 0.85em;
    margin-top: 5px;
}

/* The actual, hidden input */
.file-upload-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* NEW: File Preview Area */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.file-preview-item {
    width: 100px;
    height: 100px;
    border-radius:24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-preview-item .remove-file-btn {
    position: absolute;
    top: 2px;
    right: 2px; /* Changed to right for RTL consistency */
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.file-preview-item .remove-file-btn:hover {
    opacity: 1;
}
/* ======== END: Custom File Input ======== */


.form-group input::placeholder{
    color: #f0f0f0 !important;
}















/* ======== START: Professional Repair Details Dashboard Layout ======== */

.repair-details-grid {
    display: grid;
    /* Main column is wider than sidebar */
    grid-template-columns: 2fr 1fr; 
    gap: 30px;
    align-items: flex-start;
}

.details-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between widgets */
}

.details-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky; /* Sidebar stays sticky on scroll */
    top: 20px; /* Space from top */
}

/* Re-using existing widget styles */
.widget-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    border-radius: 24px;
}
.widget-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
   
    gap: 10px;
}
.widget-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}
.widget-header i {
    color: var(--primary-color);
}
.widget-content {
    padding: 20px;
}

/* Specific style for device edit form */
.widget-content .form-group label {
    font-size: 0.9em;
    color: var(--text-dark);
}
.widget-content .form-group input {
    padding: 8px 12px; /* Make inputs smaller */
}
.widget-content .btn-small {
    font-size: 0.9em;
    padding: 5px 15px;
    margin-top: 5px;
}

/* Responsive for Mobile */
@media (max-width: 992px) {
    .repair-details-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .details-sidebar-column {
        position: static; /* Disable sticky sidebar */
    }
}
/* ======== END: Professional Repair Details Dashboard Layout ======== */










/* ======== START: Custom File Input (Drag & Drop Style) ======== */
.file-upload-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 150px;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius:24px;
    background-color: var(--background-dark);
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Style for when dragging a file over the box */
.file-upload-label.drag-over { 
    border-color: var(--primary-color);
    background-color: var(--background-light);
    color: #fff;
}

.file-upload-label .upload-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-label .upload-text-main {
    font-weight: 500;
    color: #fff;
}

.file-upload-label .upload-text-sub {
    font-size: 0.85em;
    margin-top: 5px;
}

/* The actual, hidden input */
.file-upload-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* NEW: File Preview Area */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    flex-direction: row-reverse; /* Added for RTL image display */
}
.file-preview-item {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-preview-item .remove-file-btn {
    position: absolute;
    top: 2px;
    left: 2px; /* Changed to left for RTL consistency */
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.file-preview-item .remove-file-btn:hover {
    opacity: 1;
}
/* ======== END: Custom File Input ======== */



















/* ======== START: Enhanced Form Input with Icons ======== */
.form-group-with-icon {
    position: relative;
    /* margin-bottom: 20px; (form-group already handles this) */
}



.form-group-with-icon .input-icon {
    position: absolute;
    top: 50%; /* Center vertically */
    right: 18px; /* Position icon on the right (RTL) */
    transform: translateY(-50%);
    color: var(--text-dark);
    transition: color 0.3s ease;
    z-index: 2; /* Ensure icon is above input */
    padding-top: 5px; /* Small adjustment to align with text */
}

/* Highlight icon when input is focused */
.form-group-with-icon .form-control:focus + .input-icon {
    color: var(--primary-color);
}

/* Adjust label */
.form-group-with-icon label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}
/* ======== END: Enhanced Form Input with Icons ======== */





.form-group textarea::placeholder{
    color: #f0f0f0;
}



















/* ======== START: Professional Details Dashboard Layout (repair, purchase_eval) ======== */

.details-dashboard-grid {
    display: grid;
    /* Main column is wider */
    grid-template-columns: 2fr 1fr; 
    gap: 30px;
    align-items: flex-start;
}

.details-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between widgets */
}

.details-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky; /* Sidebar stays sticky on scroll */
    top: 20px; /* Space from top */
}

/* Re-using existing widget styles */
.widget-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
}
.widget-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}
.widget-header i {
    color: var(--primary-color);
}
.widget-content {
    padding: 20px;
}

/* Style for inputs with icons */
.form-group-with-icon {
    position: relative;
}

.form-group-with-icon .input-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--text-dark);
    padding-top: 5px; 
}
.form-group-with-icon .form-control:focus + .input-icon {
    color: var(--primary-color);
}

/* Responsive for Mobile */
@media (max-width: 992px) {
    .details-dashboard-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .details-sidebar-column {
        position: static; /* Disable sticky sidebar */
    }

    .roadmap-step.completed p{
        margin-bottom: 0;
    }

    .roadmap-step.active p{
            margin-bottom: 0;
    }
    .purchase-eval-status{
        padding-top: 40px !important;
    }


    .dashboard-welcome{
        margin-top: 30px !important;
    }


    .health-check-status{
         padding-top: 15px !important;
    }
}
/* ======== END: Professional Details Dashboard Layout ======== */





    .health-check-status{
         padding-right: 10px !important;
         padding-left: 10px !important;
    }











































        @media (max-width: 992px) {

.sale-details-page{
margin-top:80px !important;
}
}





































/* ======== START: V3 - Ultimate Search Center Styles ======== */

.search-hero {
    background: linear-gradient(145deg, #2e2e2e, #262626);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden; /* For animations */
}
.search-hero h2 {
    margin-top: 0;
    color: #fff;
    font-size: 1.8em;
}
.search-hero p {
    color: var(--text-dark);
    font-size: 1.1em;
}

.live-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 20px auto 0;
}
.live-search-input {
    width: 100%;
    text-align: center;
    font-size: 2.5em !important; /* !! فونت بزرگ و جذاب !! */
    letter-spacing: 10px; /* فاصله بین ارقام */
    height: 80px !important;
    padding: 10px 20px !important;
    background-color: var(--background-dark) !important;
    color: #fff !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 24px !important;
    direction: ltr; /* همیشه چپ به راست برای اعداد */
    transition: all 0.3s ease;
}
.live-search-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(36, 128, 145, 0.5) !important;
}

/* انیمیشن لرزش برای خطا */
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.shake-error {
  animation: shake 0.7s cubic-bezier(.36,.07,.19,.97) both;
}

/* آیکون لودینگ (چرخنده) */
.search-loading-spinner {
    position: absolute;
    top: 50%;
    left: 25px; /* (راست در LTR) */
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--text-dark);
    display: none; /* مخفی به صورت پیش‌فرض */
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* کانتینر نتایج زنده */
#live-search-results {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.search-result-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-align: right;
    overflow: hidden;
    animation: fadeIn 0.5s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.search-result-card .header {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-result-card .header i {
    font-size: 1.3em;
    /* رنگ آیکون‌ها در CSS بعدی تنظیم می‌شود */
}
.search-result-card .header h3 {
    margin: 0;
    color: var(--secondary-color);
}
.search-result-card .body {
    padding: 20px;
    line-height: 1.8;
}
.search-result-card .body p {
    margin: 0 0 10px 0;
    color: var(--text-dark);
}
.search-result-card .body strong {
    color: #fff;
    margin-left: 8px;
}
.search-result-card .footer {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* فیلتر پیشرفته */
.advanced-filter-toggle {
    display: inline-block;
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 500;
}
.advanced-filter-toggle:hover { color: var(--secondary-color); }

/* **MODIFIED**: Filters now in a widget card */
.advanced-filter-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 20px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}
.advanced-filter-container.active {
    max-height: 700px; /* Increased height for more filters */
}
.advanced-filter-container .widget-header {
    cursor: pointer;
}
.advanced-filter-container .widget-content {
    padding: 25px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.filter-grid .form-group { margin-bottom: 0; }
.filter-grid .form-group label {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* جدول نتایج */
.search-results-table { width: 100%; margin-top: 20px; }
.search-results-table td .service-icon { font-size: 1.2em; margin-right: 8px; color: var(--text-dark); }
.search-results-table .service-icon.repair { color: #f0ad4e; }
.search-results-table .service-icon.ticket { color: #5bc0de; }
.search-results-table .service-icon.appointment { color: #5cb85c; }
.search-results-table .service-icon.health_check { color: #d9534f; }
.search-results-table .service-icon.purchase_eval { color: #f79433; }
.search-results-table .service-icon.warranty { color: #337ab7; }
.search-results-table .service-icon.sale { color: #ffffff; }
.search-results-table .service-icon.service_request { color: #9a6bff; }
/* ======== END: Advanced Search Center Styles ======== */





















































/* ======== START: "Khafan" IBAN Input Styles ======== */

.iban-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr; /* IBAN always LTR */
    width: 100%;
}

.iban-prefix {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-dark);
    padding: 10px 5px;
}

.iban-input-container {
    display: grid;
    /* 6 columns of 4 digits */
    grid-template-columns: repeat(6, 1fr); 
    gap: 5px;
    width: 100%;
}

.iban-input {
    width: 100%;
    min-width: 40px; /* For small screens */
    height: 55px;
    padding: 0.5rem !important;
    font-size: 1.2em !important;
    text-align: center !important;
    letter-spacing: 1px; /* Optional: adds spacing */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 24px;
}
.iban-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    outline: none;
}

/* Bank Detector UI */
.bank-detector {
    display: none; /* Hidden by default */
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius:24px;
    padding: 10px 15px;
    margin-top: 10px;
    text-align: right;
    animation: fadeIn 0.5s;
}
.bank-detector-logo {
    /* (We'll use text for now, logos are complex) */
    font-weight: bold;
    color: var(--primary-color);
}
.bank-detector-name {
    font-weight: 500;
    color: #fff;
    margin-right: 8px;
}

/* Responsive for the 6 boxes */
@media (max-width: 480px) {
    .iban-input-container {
        /* On small screens, 3 columns */
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px;
    }
    .iban-input {
        font-size: 1.1em !important;
    }
}
/* ======== END: IBAN Input Styles ======== */






















/* ======== START: "Khafan" Activity Log Feed Styles ======== */
.activity-feed-wrapper {
    max-width: 900px;
    margin: 20px auto;
}
.feed-item {
    display: flex;
    position: relative;
    padding-bottom: 15px;
margin-bottom: 15px;
    border-left: 2px solid var(--border-color); /* The timeline line */
    margin-left: 20px; /* Space for the icon */
}
.feed-item:last-child {
    border-left: none; /* No line on the last item */
}
.feed-icon {
    position: absolute;
    right: -21px; /* (left in LTR) - Centered on the line */
    top: 42px;
    width: 40px;
    height: 40px;
    border-radius: 24px;
    background-color: var(--background-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}
.feed-item.type-admin .feed-icon {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.feed-item.type-customer .feed-icon {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.feed-content {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 15px 20px;
    margin-right: 40px; /* (margin-left in LTR) */
    width: 100%;
    border: 1px solid var(--border-color);
}
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.feed-user {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
}
.feed-timestamp {
    font-size: 0.85em;
    color: var(--text-dark);
}
.feed-description {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-light);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .feed-item {
        margin-left: 15px;
    }
    .feed-icon {
        right: -16px;
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
    .feed-content {
        margin-right: 30px;
    }
}
/* ======== END: Activity Log Feed Styles ======== */



















/* ======== START: "Khafan" IBAN & Offer Rejection Styles ======== */

/* (استایل‌های .iban-input-wrapper, .iban-input-container, .bank-detector 
   که در مراحل قبلی اضافه کردیم، باید از قبل اینجا باشند) */

/* 1. New Offer Actions Layout */
.offer-box .offer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون برای "بله" و "نه" */
    gap: 20px;
    margin-top: 20px;
    text-align: right;
}
.action-accept {
    border-left: 1px solid var(--border-color); /* جداکننده عمودی */
    padding-left: 20px;
}
.action-reject h5 {
    color: var(--secondary-color); /* رنگ نارنجی برای "مخالفت" */
}

/* 2. Rejection Reason Checkboxes */
.rejection-reason-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rejection-reason-list li {
    display: block;
}
/* "Khafan" Checkbox Style */
.rejection-reason-list input[type="checkbox"] {
    display: none; /* مخفی کردن چک‌باکس پیش‌فرض */
}
.rejection-reason-list label {
    display: block;
    position: relative;
    padding-right: 35px; /* فاصله برای چک‌باکس سفارشی */
    cursor: pointer;
    font-size: 0.95em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.rejection-reason-list label:hover {
    color: #fff;
}
/* ساخت چک‌باکس سفارشی */
.rejection-reason-list label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-dark);
    transition: all 0.3s ease;
}
/* ساخت تیک (Checkmark) */
.rejection-reason-list label::after {
    content: '\f00c'; /* Font Awesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 4px;
    top: 3px;
    font-size: 0.9em;
    color: var(--secondary-color);
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}
.rejection-reason-list input[type="checkbox"]:checked + label::before {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}
.rejection-reason-list input[type="checkbox"]:checked + label::after {
    transform: scale(1);
    opacity: 1;
}

/* 3. Responsive for Offer Box */
@media (max-width: 768px) {
    .offer-box .offer-actions {
        grid-template-columns: 1fr; /* ستون‌ها در موبایل زیر هم */
    }
    .action-accept {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-color); /* جداکننده افقی */
        padding-bottom: 20px;
    }
}
/* ======== END: IBAN & Offer Rejection Styles ======== */





































































































































/* =========================================================== */
/* === FINAL DASHBOARD & MOBILE NAVIGATION STYLES (V-FINAL) === */
/* =========================================================== */

/* 1. تنظیمات کلی و حذف هدر در موبایل */
@media (max-width: 768px) {
    .customer-container > .landing-header {
        display: none !important; /* حذف هدر بالا در گوشی */
    }
    .dashboard-welcome {
        display: none !important; /* حذف پیام خوشامدگویی در گوشی برای خلوتی */
    }
    .page-content-wrapper {
        padding-top: 20px !important; /* حذف فاصله هدر */
        padding-bottom: 90px !important; /* فضا برای نویگیشن پایین */
    }
    /* چیدمان دو ستونی برای باکس‌های دسترسی سریع در موبایل */
    .service-box-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .service-box.small {
        margin: 0;
        height: 110px; /* ارتفاع ثابت برای زیبایی */
        justify-content: center;
    }
    .section-title-small {
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: 1.1em;
    }
}

/* 2. نویگیشن بار پایین (Bottom Navigation) */
.bottom-nav {
    display: none; /* در PC مخفی */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(25, 25, 25, 0.98); /* رنگ پس‌زمینه بسیار تیره و شیک */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 5px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .bottom-nav { display: flex; }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 0.75em;
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav-item i {
    font-size: 1.5em;
    margin-bottom: 6px;
    transition: transform 0.2s;
}
.bottom-nav-item.active {
    color: var(--primary-color);
}
.bottom-nav-item.active i {
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(36, 128, 145, 0.6);
}
.bottom-nav-item.menu-active {
    color: #f79433; /* رنگ سفید برای وقتی منو باز است */
}

/* دکمه خانه (Home) برجسته و شناور */
.bottom-nav-home {
    transform: translateY(-30px);
    background: linear-gradient(135deg, var(--primary-color), #1a5c6b);
    color: #fff !important;
    width: 30px;
    height: 70px;
    border-radius: 100%;
    border: 3px solid #121212; /* همرنگ پس‌زمینه بادی سایت شما */
    box-shadow: 0 5px 15px rgba(36, 128, 145, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bottom-nav-home i {
    font-size: 1.8em;
    margin: 0;
}
.bottom-nav-home span { display: none; } /* متن خانه مخفی */

/* 3. منوی کشویی تمام صفحه (Overlay Menu) */
.mobile-overlay-menu {
    position: fixed;
    bottom: 70px; /* دقیقاً بالای نویگیشن بار */
    right: -120%; /* خارج از صفحه */
    width: 85%;
    max-width: 300px;
    height: calc(100% - 85px); /* فاصله از بالا و پایین */
    top: 15px;
    background: linear-gradient(160deg, #2a2a2a, #1a1a1a);
    border-radius: 20px 0 0 20px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.mobile-overlay-menu.active {
    right: 0;
}

/* پس‌زمینه تاریک پشت منو */
.menu-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* محتویات منو */
.mobile-menu-user-card {
    background: linear-gradient(90deg, rgba(36, 128, 145, 0.2), transparent);
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-user-avatar {
    width: 50px; height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 0 15px rgba(36, 128, 145, 0.4);
}
.mobile-user-info h4 { margin: 0; color: #fff; font-size: 1em; }
.mobile-user-info span { font-size: 0.8em; color: #aaa; }

.mobile-menu-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.mobile-menu-link {
    display: flex; align-items: center; gap: 15px;
    padding: 12px 15px;
    color: #e0e0e0; text-decoration: none; font-size: 1em;
    border-radius: 24px; margin-bottom: 5px;
    transition: all 0.2s;
}
.mobile-menu-link:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(-5px); }
.mobile-menu-link i { width: 25px; text-align: center; color: #f79433; }
.mobile-menu-link:hover i { color: var(--primary-color); }

.mobile-menu-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.btn-menu-logout {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px;
    background: rgba(220, 53, 69, 0.15); color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 24px; text-decoration: none; font-weight: 500;


    margin-bottom: 25px;
}

.product-option-btn i {
    color: #f79433;
}

/* 4. مودال انتخاب محصول (Product Modal) */
.product-select-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 3000;
    align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0; transition: opacity 0.3s ease;
}
.product-select-modal.show { opacity: 1; }
.product-select-content {
    background: linear-gradient(145deg, #2e2e2e, #1a1a1a);
    border-radius: 24px;
    padding: 30px;
    width: 100%; max-width: 380px;
    text-align: center;
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-select-modal.show .product-select-content { transform: scale(1); }
.product-select-header h3 { margin-top: 0; color: #fff; margin-bottom: 25px; }
.product-select-header .close-btn {
    position: absolute; top: 15px; left: 15px;
    font-size: 2em; color: rgba(255,255,255,0.5); text-decoration: none; line-height: 0.8;
}
.product-option-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; margin-bottom: 15px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px; color: #fff; text-decoration: none;
    transition: all 0.3s;
}
.product-option-btn:hover {
    background: rgba(255,255,255,0.1); border-color: var(--primary-color); transform: translateY(-3px);
}
/* =========================================================== */




































/* ======== START: Sidebar Notification Badges ======== */

/* استایل خود بج (دایره قرمز) */
.notif-badge {
    background: #248091;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 10px; /* هل دادن به سمت چپ در RTL */
    box-shadow: 0 4px 10px #248091;
    min-width: 20px;
    text-align: center;
    line-height: 1.5;
    
    /* انیمیشن تپش برای جلب توجه */
    animation: badge-pulse 2s infinite;
}

/* تنظیم لینک‌های سایدبار برای قرارگیری بج */
.sidebar-nav ul li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between; /* فاصله انداختن بین متن و بج */
}

/* نگهدارنده متن و آیکون (برای اینکه سمت راست بمانند) */
.sidebar-nav-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* تعریف انیمیشن تپش */
@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 #85b9c3;
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 6px #85b9c3;
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 #85b9c3;
        transform: scale(1);
    }
}

.table-responsive{
    border-radius: 24px;
}
/* ======== END: Sidebar Notification Badges ======== */



.sidebar-nav li a{
    margin: 0px !important;
}





























.chat-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    position: relative;
    padding: 15px;
    border-radius: 12px;
    line-height: 1.6;
}
.chat-message.customer {
    align-self: flex-start; /* چپ چین (یا راست چین در فارسی) */
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-bottom-right-radius: 2px; /* گوشه تیز */
}
.chat-message.admin {
    align-self: flex-end; /* سمت مقابل */
    background: linear-gradient(135deg, var(--primary-color), #1a5c6b);
    color: #fff;
    border-bottom-left-radius: 2px;
}
.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    opacity: 0.8;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}
.chat-message.customer .msg-header { color: var(--text-dark); border-color: var(--border-color); }
.chat-message.admin .msg-header { color: #eee; }

.msg-body { font-size: 0.95em; white-space: pre-line; }















































@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); transform: scale(1); }
}
.action-btn.pulse {
    animation: btn-pulse 1.5s infinite;
    background-color: #ffc107 !important; /* رنگ زرد/نارنجی */
    color: #000 !important;
    border-color: #ffc107 !important;
    font-weight: bold;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}
.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pagination .active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: bold;
}
.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}







