/* تخصيصات عامة للواجهة */
body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 60px; /* يتناسب مع ارتفاع النافبار */
    display: grid;
    grid-template-rows: auto 1fr auto; /* Header, Content, Footer */
    min-height: 100vh;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* تأكد أنه يظهر فوق العناصر الأخرى */
    background-color: rgba(255, 255, 255, 0.95) !important; /* لجعل الخلفية شبه شفافة */
    backdrop-filter: blur(10px); /* تأثير ضبابي خلف النافبار */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* إضافة ظل للنافبار */
}
.footer {
    grid-row: 3; /* وضع الفوتر في الصف الثالث */
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    padding: 20px 0;
    text-align: center;
}
.navbar-brand img {
    max-height: 60px;
}

.card {
    margin-bottom: 20px;
    border: none;
}

.alert {
    border-radius: 8px;
}

.btn {
    border-radius: 8px;
    padding: 8px 16px;
}

.table th {
    font-weight: 600;
}
/* تخصيصات للهواتف المحمولة */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem; /* تقليل الحشوة للهواتف */
    }
    body {
        padding-top: 56px; /* هامش أقل للهواتف */
    }
    .navbar-nav {
        padding-top: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

/* تخصيصات للتدرج الأخضر */
.bg-success {
    background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
}

.btn-success {
    background: linear-gradient(to right, #2e7d32, #4caf50);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(to right, #1b5e20, #2e7d32);
}

.progress-bar {
    background-color: #2e7d32;
}

.badge.bg-success {
    background-color: #2e7d32 !important;
}

/* تخصيصات للعناصر النشطة */
.nav-link.active {
    font-weight: bold;
    color: #2e7d32 !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

/* تخصيصات للروابط */
a {
    color: #2e7d32;
    text-decoration: none;
}

a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* تخصيصات للأشكال */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}