/* ١. بانگهێشتکردنی فۆنتی سەرەکیی Rabar_021 */
@font-face {
    font-family: 'Rabar_021';
    src: url('../fonts/Rabar_021.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb, #1e40af);
    --secondary: #0f172a;
    --accent: #f59e0b;
    --driver-color: #f59e0b;
    --driver-dark: #b45309;
    --success: #10b981;
    --danger: #ef4444;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.06);
    /* تەنها فۆنتی ڕابەر بە شێوەیەکی بنەڕەتی دیاری کراوە */
    --font-main: 'Rabar_021', Tahoma, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* سەپاندنی فۆنتی ڕابەر بۆ سەرجەم بەشەکان */
body, h1, h2, h3, h4, h5, h6, p, span, a, input, button, select, textarea, table, th, td, label, div, b, strong, li {
    font-family: var(--font-main) !important;
}

/* پاراستنی تەواوەتیی ئایکۆنەکانی FontAwesome لە گۆڕان و تێکچوون */
.fa, .fas, .far, .fal, .fad, .fab, .fa-solid, .fa-regular, .fa-brands, [class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

body {
    direction: rtl;
    text-align: right;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 900;
    font-size: 22px;
}

.logo-box {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-content {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 24px auto;
    padding: 0 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
    margin: 30px auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-driver {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-driver:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 42px 12px 14px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.badge-created { background: #fffbeb; color: #b45309; }
.badge-assigned { background: #eff6ff; color: #1d4ed8; }
.badge-in_transit { background: #ecfdf5; color: #047857; }
.badge-delivered { background: #f0fdf4; color: #15803d; }
.badge-cancelled { background: #fef2f2; color: #b91c1c; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1.5px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1.5px solid #fecaca; }

footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}