* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c4e6e 0%, #1a3a4f 100%);
    min-height: 100vh;
    direction: rtl;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* بطاقات أنيقة - ألوان مائية */
.card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
    color: #1a3a4f;
    margin-bottom: 25px;
    font-weight: 700;
}

h2 {
    border-right: 5px solid #2c7da0;
    padding-right: 15px;
    background: linear-gradient(135deg, #1a3a4f, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* حقول الإدخال */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a3a4f;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e8f0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8fafc;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.1);
    background: white;
}

/* أزرار احترافية */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a3a4f 0%, #2c7da0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 125, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 125, 160, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #c44536 0%, #e76f51 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2a9d8f 0%, #48cae4 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #e9c46a 0%, #f4a261 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #48cae4 0%, #0096c7 100%);
    color: white;
}

/* الجداول */
.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #1a3a4f 0%, #2c7da0 100%);
    color: white;
    padding: 16px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    color: #2d3e50;
}

tr:hover {
    background: #f0f7fc;
}

/* إحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7fc 100%);
    padding: 28px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(44, 125, 160, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
    color: #1a3a4f;
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: 1px;
}

.stat-card .number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a3a4f, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* شريط جانبي */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sidebar a {
    display: block;
    padding: 14px 22px;
    margin: 10px 0;
    color: #2d3e50;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #f8fafc;
}

.sidebar a:hover, .sidebar a.active {
    background: linear-gradient(135deg, #1a3a4f 0%, #2c7da0 100%);
    color: white;
    transform: translateX(-5px);
}

/* نافذة الفيديو */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 85%;
    max-width: 1200px;
    margin: 50px auto;
    background: white;
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #c44536, #e76f51);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    cursor: pointer;
    font-size: 24px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* تنبيهات */
.alert {
    padding: 16px 22px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d1f7e8;
    color: #0b5e42;
    border-right: 5px solid #2a9d8f;
}

.alert-error {
    background: #ffe2db;
    color: #c44536;
    border-right: 5px solid #e76f51;
}

/* متجاوب */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    th, td {
        padding: 10px;
        font-size: 12px;
    }
}
/* إضافة إلى نهاية ملف style.css */

/* شريط التنقل العلوي */
.navbar {
    background: linear-gradient(135deg, #1a3a4f 0%, #2c7da0 100%);
    padding: 0 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
}

.navbar-logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.navbar-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.navbar-clock {
    background: rgba(0,0,0,0.3);
    padding: 8px 18px;
    border-radius: 40px;
    color: white;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    direction: ltr;
}

/* بحث حي */
.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-box input {
    padding: 12px 20px;
    padding-right: 45px;
    border-radius: 30px;
    border: 2px solid #e0e8f0;
    width: 100%;
    max-width: 350px;
    font-size: 14px;
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 15px;
    top: 12px;
    font-size: 18px;
    color: #2c7da0;
}

/* نافذة تعديل */
.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.edit-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 85%;
    overflow-y: auto;
    border-radius: 28px;
    padding: 30px;
    position: relative;
}

.close-edit {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #c44536;
}

/* أيقونات */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.icon-btn.edit {
    color: #2c7da0;
}

.icon-btn.edit:hover {
    background: #e8f4f8;
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 10px;
    }
    .navbar-menu {
        justify-content: center;
    }
}