/* Base styles */
body {
    font-family: 'Exo', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* RTL Support for Arabic */
[lang="ar"] body{
    direction: rtl;
    text-align: right;
    font-family: 'El Messiri', sans-serif!important;
}
.lang-text{font-family: 'El Messiri', sans-serif!important;}
[lang="ar"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[lang="ar"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[lang="ar"] .text-end {
    text-align: left !important;
}

[lang="ar"] .text-md-end {
    text-align: left !important;
}

[lang="ar"] .text-md-start {
    text-align: right !important;
}

[lang="ar"] #status-Transfered {
    right:auto;
    left:10px;
}

[lang="ar"] #arrivalInfo{
    direction: ltr!important;
}

/* Header styles */
.header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.company-logo {
    height: 40px;
    width: auto;
}

/* Footer styles */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-top: auto;
}

.footer a {
    color: #6c757d;
}

.footer a:hover {
    color: #0d6efd;
}

/* Section styles */
.section {
    /* min-height: 100vh; */
    width: 100%;
}

/* Signature pad styles */
.signature-container {
    width: 100%;
    height: 200px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.signature-pad {
    width: 100%;
    height: 100%;
    touch-action: none; /* Prevent scrolling on touch devices */
    display: block; /* Ensure the canvas is displayed as a block element */
    position: absolute; /* Position the canvas absolutely within its container */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Map styles */
#trackingMap {
    width: 100%;
    position: relative;
}

/* Marker styles */
.technician-marker {
    background-color: #007bff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.customer-marker {
    background-color: #28a745;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.marker-label {
    background-color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Technician info styles */
#technicianInfo {
    display: flex;
    align-items: center;
}

#callTechnician {
    color: #28a745;
    text-decoration: none;
}

#callTechnician:hover {
    color: #218838;
}

/* Arrival info styles */
#arrivalInfo {
    font-weight: bold;
    color: #6c757d;
}

/* Floating Status Badge */
.floating-status-badge {

    background-color: #fff;
    border-radius: 5px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.floating-status-badge .status-label {
    font-weight: 500;
    margin-right: 5px;
}

.floating-status-badge .status-value {
    font-weight: 600;
}

/* RTL Support for Arabic */
[lang="ar"] .floating-status-badge {
    right: auto;
    left: 20px;
}

[lang="ar"] .floating-status-badge .status-label {
    margin-right: 0;
    margin-left: 5px;
}

/* Status Colors */
.floating-status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.floating-status-badge.status-assigned {
    background-color: #cce5ff;
    color: #004085;
}

.floating-status-badge.status-in-progress {
    background-color: #d1ecf1;
    color: #0c5460;
}

.floating-status-badge.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.floating-status-badge.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* RTL support for loading overlay */
[lang="ar"] .loading-overlay {
    direction: rtl;
} 

/* Marker Badge Styles */
.marker-badge {
    background-color: white !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
    white-space: nowrap !important;
    min-width: 100px !important;
    text-align: center !important;
    position: relative !important;
    top: -35px !important;
    left: -51px !important;  /* Center align by offsetting half the width */
    transform: translateX(50%) !important; /* Center horizontally */
    z-index: 1 !important;
    font-family: 'Exo', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
}

/* Add speech bubble pointer */
.marker-badge:after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 8px solid white !important;
    z-index: 0 !important;
}

.customer-badge {
    border: 4px solid #007bff !important;
}

.customer-badge:after {
    border-top-color: #007bff !important;
}

.tech-badge {
    border: 4px solid #28a745 !important;
}

.tech-badge:after {
    border-top-color: #28a745 !important;
}

/* RTL support for signature pad */
[lang="ar"] .signature-container {
    direction: rtl;
}

.status-Transfered{position: absolute;right:10px;}