﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
/* أنماط مخصصة للمشروع */
body {
    direction: rtl;
    text-align: right;
}

.navbar-brand {
    font-weight: bold;
}

.table-actions {
    white-space: nowrap;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
}

    .upload-area:hover {
        border-color: #007bff;
    }
/* أنماط مخصصة لنظام راصد الموانئ */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

.btn-group .btn {
    border-radius: 0.375rem;
    margin-left: 0.25rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    font-weight: 600;
}

.table-responsive {
    border-radius: 0.375rem;
}

/* تخصيص الأزرار */
.btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

    .btn-primary:hover {
        background-color: #1a252f;
        border-color: #1a252f;
    }

/* تخصيص التنبيهات */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* تخصيص الجداول */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* تخصيص الشارات */
.badge {
    font-size: 0.8em;
}

/* أنماط مخصصة لنظام راصد الموانئ */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* تحسينات للكروت */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

/* تحسينات للجدول */
.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* أزرار محسنة */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

/* أفatar دائري */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

/* Pagination محسن */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
    border: none;
    color: #495057;
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border: none;
}

/* شارات محسنة */
.badge {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5em 0.8em;
}

/* حقل البحث */
.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
}

/* تخصيص الألوان */
.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.border-start-primary {
    border-left-color: #667eea !important;
}

.border-start-success {
    border-left-color: #4facfe !important;
}

.border-start-info {
    border-left-color: #63b3ed !important;
}

.border-start-warning {
    border-left-color: #f093fb !important;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}

/* تأثيرات للبطاقات الإحصائية */
.stats-card {
    transition: transform 0.3s ease;
}

    .stats-card:hover {
        transform: translateY(-5px);
    }
.travel-route {
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 3px solid #667eea;
}

.route-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.route-departure {
    background-color: #28a745;
    color: white;
}

.route-arrival {
    background-color: #007bff;
    color: white;
}