/* style/css/admin.css */
/* ملف تنسيقات لوحة تحكم الإدارة - يدعم RTL بالكامل [1.1] */

:root {
    --primary-color: #2c3e50;
    --sidebar-bg: #202c39;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

/* واجهة صفحة تسجيل الدخول للمدير */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--primary-color);
}
.login-card-container {
    background: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}
.login-card-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}
.form-group-admin {
    margin-bottom: 20px;
}
.form-group-admin label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group-admin input[type="text"],
.form-group-admin input[type="password"],
.form-group-admin textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}
.btn-admin-login, .btn-save-settings {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}
.btn-save-settings { background-color: var(--success-color); }
.alert-danger-box { background: #fce4e4; color: #cc0000; padding: 10px; border-radius: 4px; margin-bottom: 15px; text-align: center; font-size: 14px;}
.alert-success-box { background: #e4fce4; color: #00cc00; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-weight: bold; text-align: center; }
.back-to-site { display: block; text-align: center; margin-top: 15px; color: var(--secondary-color); text-decoration: none; font-size: 14px;}

/* تقسيم وتوزيع لوحة الإحصائيات (Layout) */
.admin-dashboard-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: white;
    padding: 20px 0;
}
.sidebar-brand h3 { text-align: center; margin-bottom: 30px; color: var(--secondary-color); }
.sidebar-menu { display: flex; flex-direction: column; }
.menu-item { color: #adb5bd; padding: 15px 20px; text-decoration: none; transition: background 0.3s; font-size: 14px; }
.menu-item:hover { background-color: rgba(255,255,255,0.05); color: white; }
.logout-btn { color: var(--danger-color); border-top: 1px solid rgba(255,255,255,0.05); margin-top: 20px; }

.admin-main-content { flex: 1; display: flex; flex-direction: column; }
.content-top-bar { background: white; padding: 15px 30px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; font-size: 14px;}
.content-body { padding: 30px; flex: 1; }

/* بطاقات الإحصائيات والأرقام */
.stats-grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 6px; border: 1px solid var(--border-color); display: flex; align-items: center; }
.stat-icon { font-size: 35px; margin-left: 20px; }
.stat-info h3 { margin: 0; font-size: 28px; color: var(--primary-color); }
.stat-info p { margin: 5px 0 0 0; color: #7f8c8d; font-size: 14px; }

/* جداول عرض البيانات والكشوفات */
.admin-data-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--border-color); font-size: 13px;}
.admin-data-table th, .admin-data-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); text-align: center; }
.admin-data-table th { background-color: #f1f3f5; color: var(--primary-color); font-weight: 700; }
.text-right-align { text-align: right !omitted; }
.badge-zodiac { background-color: #e3f2fd; color: #0d47a1; padding: 4px 8px; border-radius: 4px; font-weight: bold; }
.poetic-text-td { font-weight: bold; color: var(--success-color); }
.btn-delete-action { color: var(--danger-color); text-decoration: none; font-weight: bold; }
.table-responsive-wrapper { overflow-x: auto; }
.input-hint-text { font-size: 12px; color: #7f8c8d; display: block; margin-top: 5px; }

.admin-footer { text-align: center; padding: 15px; background: white; border-top: 1px solid var(--border-color); font-size: 12px; color: #7f8c8d; }
