@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

html, body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

.emoji-icon {
    font-family: 'Noto Color Emoji', 'Segoe UI Emoji', sans-serif !important;
}

:root {
    --admin-primary: #3498db;
    --admin-secondary: #2c3e50;
    --admin-success: #27ae60;
    --admin-warning: #f1c40f;
    --admin-danger: #e74c3c;
    --admin-bg: #f4f7f6;
    --sidebar-width: 280px;
}

a, .btn-link {
    color: var(--admin-primary);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--admin-primary);
    border-color: var(--admin-primary);
}

/* Sidebar Styling */
.sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%) !important;
    width: var(--sidebar-width) !important;
    box-shadow: -4px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
}

.sidebar .nav-link {
    border-radius: 12px;
    margin: 6px 16px;
    padding: 12px 20px !important;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.65) !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: right;
}

.sidebar .nav-link i, .sidebar .nav-link span.rz-icon-trash {
    margin-left: 12px !important;
    margin-right: 0 !important;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    transform: translateX(5px); /* Move left in RTL */
}

.sidebar .nav-link.active {
    background: var(--admin-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Main Content area adjustment for RTL Sidebar */
main {
    margin-right: var(--sidebar-width);
    flex: 1;
}

.content {
    padding: 2rem !important;
}

/* Premium Dashboard Cards */
.stat-card-premium {
    border-radius: 20px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

/* RTL Helpers */
body {
    direction: rtl;
    text-align: right;
}

.me-2 { margin-left: 0.75rem !important; margin-right: 0 !important; }
.ms-2 { margin-right: 0.75rem !important; margin-left: 0 !important; }

/* Custom Badge Styles */
.badge-premium {
    padding: 0.5em 1.2em;
    border-radius: 50px;
    font-weight: 600;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 2rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

/* Modal and Document Review Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.review-modal {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    overflow-y: auto;
    padding: 31px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.doc-preview img {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
}

.doc-preview img:hover {
    transform: scale(1.02);
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.badge-warning { background-color: #f1c40f; color: #000; }
.badge-success { background-color: #27ae60; color: #fff; }
.badge-danger { background-color: #e74c3c; color: #fff; }

/* Map & Visualization Styling */
.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    z-index: 10;
}

#dashboard-map, #live-map, #monitoring-map, #map-preview {
    min-height: 400px;
    height: 400px;
    background-color: #eaeff2;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}

.custom-div-icon div {
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Vehicle Type Badges */
.vehicle-type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
}

.type-economic {
    background-color: #E3F2FD;
    color: #1976D2;
    border: 1px solid #BBDEFB;
}

.type-comfort {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.type-vip {
    background-color: #F3E5F5;
    color: #7B1FA2;
    border: 1px solid #E1BEEF;
}

.type-default {
    background-color: #F5F5F5;
    color: #616161;
    border: 1px solid #E0E0E0;
}