/* تنسيقات لوحة التحكم */
body.admin-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* صفحة تسجيل الدخول */
.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 50px;
    max-width: 450px;
    margin: 0 auto;
}

.login-card h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.login-icon {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon i {
    font-size: 4rem;
    color: #667eea;
}

/* لوحة التحكم الرئيسية */
.admin-dashboard {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px;
    margin-top: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.admin-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin: 0;
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: white;
}

/* علامات التبويب */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    color: #7f8c8d;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    border: none;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
    border: none;
    border-bottom: 3px solid #667eea;
    font-weight: bold;
}

/* الجداول */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* الأزرار */
.btn-action {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    margin: 0 3px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-edit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-add {
    background: linear-gradient(135deg, #00BFFF 0%, #003D7A 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* النماذج */
.admin-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* بطاقات الإحصائيات */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.stat-card.messages {
    border-top: 4px solid #3498db;
}

.stat-card.messages i {
    color: #3498db;
}

.stat-card.services {
    border-top: 4px solid #00BFFF;
}

.stat-card.services i {
    color: #00BFFF;
}

.stat-card.videos {
    border-top: 4px solid #e74c3c;
}

.stat-card.videos i {
    color: #e74c3c;
}

/* شارة الرسائل غير المقروءة */
.badge-unread {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* معاينة الصورة */
.logo-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .btn-action {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
