﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f0;
    direction: rtl;
    text-align: right;
    color: #333;
    line-height: 1.7;
}

/* ===== شريط التنقل ===== */
.navbar {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: bold;
    }

.navbar-brand {
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

    .nav-links a {
        padding: 8px 14px;
        border-radius: 6px;
        transition: 0.3s;
    }

        .nav-links a:hover {
            background: rgba(255,255,255,0.25);
        }

/* ===== الحاوية ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== العناوين ===== */
h1 {
    color: #1b5e20;
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 28px;
}

h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

/* ===== البطاقات ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    display: block;
    transition: 0.3s;
    border: 1px solid #e0e0e0;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.18);
        border-color: #2e7d32;
    }

.card-icon {
    font-size: 55px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 19px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 8px;
}

.card-desc {
    color: #777;
    font-size: 14px;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin: 4px;
    transition: 0.3s;
    text-align: center;
}

.btn-green {
    background: #2e7d32;
    color: white;
}

    .btn-green:hover {
        background: #1b5e20;
    }

.btn-outline {
    background: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
}

    .btn-outline:hover {
        background: #2e7d32;
        color: white;
    }

.btn-red {
    background: #c62828;
    color: white;
}

    .btn-red:hover {
        background: #b71c1c;
    }

.btn-orange {
    background: #ef6c00;
    color: white;
}

    .btn-orange:hover {
        background: #e65100;
    }

.btn-gray {
    background: #757575;
    color: white;
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
    display: block;
}

/* ===== الجداول ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    margin: 20px 0;
}

th {
    background: #2e7d32;
    color: white;
    padding: 14px 10px;
    font-size: 15px;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}

tr:hover {
    background: #e8f5e9;
}

/* ===== النماذج ===== */
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 14px;
    transition: 0.3s;
}

    input:focus, textarea:focus, select:focus {
        border-color: #2e7d32;
        outline: none;
        box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
    }

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #444;
}

/* ===== الفوتر ===== */
.footer {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 18px;
    margin-top: 50px;
    font-size: 14px;
}

/* ===== التنبيهات ===== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    font-size: 15px;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.alert-warning {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffcc02;
}

/* ===== تنسيقات مساعدة ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.fw-bold {
    font-weight: bold;
}

.fs-5 {
    font-size: 19px;
}

.fs-4 {
    font-size: 22px;
}

.w-100 {
    width: 100%;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 25px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 25px;
}

.mt-5 {
    margin-top: 40px;
}

.p-3 {
    padding: 15px;
}

.p-4 {
    padding: 25px;
}

.shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.rounded {
    border-radius: 15px;
}

.bg-white {
    background: white;
}

hr {
    border: none;
    border-top: 2px solid #2e7d32;
    width: 80px;
    margin: 20px auto;
}

/* ===== للجوال ===== */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
