﻿
@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Regular.woff2') format('woff2'), url('/fonts/Vazir-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Bold.woff2') format('woff2'), url('/fonts/Vazir-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Medium.woff2') format('woff2'), url('/fonts/Vazir-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body, h1, h2, h3, h4, h5, h6, .btn, .alert, .card-title, .card-text, table, th, td {
    font-family: 'Vazir', sans-serif !important;
}

body {
    direction: rtl;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

.navbar {
    background-color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff !important;
    transition: color 0.3s ease;
}

    .navbar-brand:hover {
        color: #5c7a9a !important;
    }

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 1.1rem;
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        background-color: #34495e;
        color: #5c7a9a !important;
    }

.dropdown-menu {
    background-color: #2c3e50;
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-align: right;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    margin-top: 8px;
}

    .dropdown-menu .dropdown-item {
        color: #f8f9fa;
        font-size: 1rem;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .dropdown-menu .dropdown-item:hover {
            background-color: #34495e;
            color: #5c7a9a;
        }

        .dropdown-menu .dropdown-item.active {
            background-color: #5c7a9a;
            color: #ffffff;
        }

        .dropdown-menu .dropdown-item i {
            margin-left: 8px;
            font-size: 1.2rem;
        }

.container {
    max-width: 1280px;
    padding: 0 20px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

.card-header {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
}

    .card-header.bg-gradient {
        background: linear-gradient(135deg, #34495e, #34495e) !important;
    }

.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

    .table th {
        background-color: #2c3e50;
        color: #ffffff;
        font-weight: 500;
        padding: 12px 15px;
    }

.table-dark {
    background: linear-gradient(135deg, #34495e, #5c7a9a);
    color: #ffffff;
}

.table td {
    vertical-align: middle;
    padding: 8px 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 150px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dataTables_scrollHeadInner,
.dataTables_scrollBody {
    width: 100% !important;
}

    .dataTables_scrollHeadInner table,
    .dataTables_scrollBody table {
        table-layout: auto;
    }

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dt-buttons {
    margin-bottom: 15px;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #5c7a9a;
    border-color: #5c7a9a;
}

    .btn-primary:hover {
        background-color: #4a6585;
        border-color: #4a6585;
    }

.btn-indigo {
    background-color: #4c517d;
    border-color: #4c517d;
}

    .btn-indigo:hover {
        background-color: #373c66;
        border-color: #373c66;
    }

.btn-gray {
    background-color: #6b7280;
    border-color: #6b7280;
}

    .btn-gray:hover {
        background-color: #4b5563;
        border-color: #4b5563;
    }

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #c82333;
    }

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-info:hover {
        background-color: #138496;
        border-color: #138496;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #218838;
    }

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #4c517d;
        box-shadow: 0 0 6px rgba(76, 81, 125, 0.3);
    }

.form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

    .form-select:focus {
        border-color: #4c517d;
        box-shadow: 0 0 6px rgba(76, 81, 125, 0.3);
    }

.alert {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.alert-info {
    background-color: #e8eef4;
    color: #34495e;
    border-color: #d1dbe8;
}

.alert-success {
    background-color: #e6f4ea;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.footer {
    background-color: #e9ecef;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
}

    .footer p {
        margin: 0;
        font-size: 0.9rem;
        color: #6b7280;
    }

.persian-datepicker {
    direction: ltr;
    text-align: right;
}

    .persian-datepicker + .pdp-icon {
        left: 10px;
        right: auto;
    }

.dashboard-card {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .dashboard-card .card-body {
        background-color: #ffffff;
    }

#map {
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: #34495e;
    opacity: 0.85;
}

.chart-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-pie-container {
    max-width: 50%;
    margin: 0 auto;
}

.leaflet-draw-toolbar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaflet-draw-actions a {
    color: #5c7a9a !important;
}

    .leaflet-draw-actions a:hover {
        background-color: #e8eef4 !important;
    }

.contract-card {
    background: linear-gradient(145deg, #5c7a9a, #e6f0fa);
}

.expert-card {
    background: linear-gradient(145deg, #6b7280, #e6f4ea);
}

.driver-card {
    background: linear-gradient(145deg, #9ca3af, #f3f4f6);
}

.scope-card {
    background: linear-gradient(145deg, #4c517d, #e6f0fa);
}

iframe {
    min-height: 600px;
    width: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    iframe {
        height: 400px;
    }

    .chart-pie-container {
        max-width: 80%;
    }
}




/*@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Regular.woff2') format('woff2'), url('/fonts/Vazir-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Bold.woff2') format('woff2'), url('/fonts/Vazir-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Medium.woff2') format('woff2'), url('/fonts/Vazir-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body, h1, h2, h3, h4, h5, h6, .btn, .alert, .card-title, .card-text, table, th, td {
    font-family: 'Vazir', sans-serif !important;
}

body {
    direction: rtl;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

.navbar {
    background-color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff !important;
    transition: color 0.3s ease;
}

    .navbar-brand:hover {
        color: #5c7a9a !important;
    }

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 1.1rem;
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        background-color: #34495e;
        color: #5c7a9a !important;
    }

.dropdown-menu {
    background-color: #2c3e50;
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-align: right;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    margin-top: 8px;
}

    .dropdown-menu .dropdown-item {
        color: #f8f9fa;
        font-size: 1rem;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .dropdown-menu .dropdown-item:hover {
            background-color: #34495e;
            color: #5c7a9a;
        }

        .dropdown-menu .dropdown-item.active {
            background-color: #5c7a9a;
            color: #ffffff;
        }

        .dropdown-menu .dropdown-item i {
            margin-left: 8px;
            font-size: 1.2rem;
        }

.container {
    max-width: 1280px;
    padding: 0 20px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

.card-header {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
}

    .card-header.bg-gradient {
        background: linear-gradient(135deg, #34495e, #34495e) !important;
    }

.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

    .table th {
        background-color: #2c3e50;
        color: #ffffff;
        font-weight: 500;
        padding: 12px 15px;
    }

.table-dark {
    background: linear-gradient(135deg, #34495e, #5c7a9a);
    color: #ffffff;
}

.table td {
    vertical-align: middle;
    padding: 8px 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 150px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dataTables_scrollHeadInner,
.dataTables_scrollBody {
    width: 100% !important;
}

    .dataTables_scrollHeadInner table,
    .dataTables_scrollBody table {
        table-layout: auto;
    }

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dt-buttons {
    margin-bottom: 15px;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #5c7a9a;
    border-color: #5c7a9a;
}

    .btn-primary:hover {
        background-color: #4a6585;
        border-color: #4a6585;
    }

.btn-indigo {
    background-color: #4c517d;
    border-color: #4c517d;
}

    .btn-indigo:hover {
        background-color: #373c66;
        border-color: #373c66;
    }

.btn-gray {
    background-color: #6b7280;
    border-color: #6b7280;
}

    .btn-gray:hover {
        background-color: #4b5563;
        border-color: #4b5563;
    }

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #c82333;
    }

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-info:hover {
        background-color: #138496;
        border-color: #138496;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #218838;
    }

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #4c517d;
        box-shadow: 0 0 6px rgba(76, 81, 125, 0.3);
    }

.form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

    .form-select:focus {
        border-color: #4c517d;
        box-shadow: 0 0 6px rgba(76, 81, 125, 0.3);
    }

.alert {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.alert-info {
    background-color: #e8eef4;
    color: #34495e;
    border-color: #d1dbe8;
}

.alert-success {
    background-color: #e6f4ea;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.footer {
    background-color: #e9ecef;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
}

    .footer p {
        margin: 0;
        font-size: 0.9rem;
        color: #6b7280;
    }

.persian-datepicker {
    direction: ltr;
    text-align: right;
}

    .persian-datepicker + .pdp-icon {
        left: 10px;
        right: auto;
    }

.dashboard-card {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .dashboard-card .card-body {
        background-color: #ffffff;
    }

#map {
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: #34495e;
    opacity: 0.85;
}

.chart-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-pie-container {
    max-width: 50%;
    margin: 0 auto;
}

.leaflet-draw-toolbar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaflet-draw-actions a {
    color: #5c7a9a !important;
}

    .leaflet-draw-actions a:hover {
        background-color: #e8eef4 !important;
    }

.contract-card {
    background: linear-gradient(145deg, #5c7a9a, #e6f0fa);
}

.expert-card {
    background: linear-gradient(145deg, #6b7280, #e6f4ea);
}

.driver-card {
    background: linear-gradient(145deg, #9ca3af, #f3f4f6);
}

.scope-card {
    background: linear-gradient(145deg, #4c517d, #e6f0fa);
}

iframe {
    min-height: 600px;
    width: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    iframe {
        height: 400px;
    }

    .chart-pie-container {
        max-width: 80%;
    }
}
*/