﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}
.card-header {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

.card-body {
    padding: 0.75rem 1rem;
}


/* تنسيقات عامة */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 20px;
    background-color: #f8f9fa;
}

/* تنسيقات البطاقات */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
    }



/* تنسيقات الأزرار */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

/* تنسيقات الجداول */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .table thead {
        background-color: #0d6efd;
        color: white;
    }

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* تنسيقات النماذج */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    margin-bottom: 15px;
}

    .form-control:focus, .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

/* تنسيقات الشاشة الرئيسية */
.dashboard-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .dashboard-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .dashboard-card p {
        font-size: 2.5rem;
        font-weight: bold;
        margin: 0;
    }

    .dashboard-card i {
        font-size: 3rem;
        margin-bottom: 10px;
    }

.bg-light-maintenance {
    background-color: #0d6efd;
}

.bg-heavy-maintenance {
    background-color: #6f42c1;
}

.bg-light-accident {
    background-color: #fd7e14;
}

.bg-heavy-accident {
    background-color: #dc3545;
}

.bg-washing {
    background-color: #20c997;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .dashboard-card {
        min-height: 120px;
    }

        .dashboard-card h3 {
            font-size: 1.2rem;
        }

        .dashboard-card p {
            font-size: 2rem;
        }

        .dashboard-card i {
            font-size: 2.5rem;
        }
}

/* تنسيقات للتوافق مع اللغة العربية */
.form-control, .form-select, .btn, .card, .table {
    text-align: right;
}

/* تنسيق أفضل للقائمة المنسدلة */
.dropdown-menu {
    min-width: 220px !important;
    direction: rtl;
    text-align: right;
}

    /* تنسيق العنصر داخل القائمة */
    .dropdown-menu .dropdown-item {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 15px;
    }


.navbar-nav {
    padding-right: 0;
}

.me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}
