/* إعدادات عامة وتفعيل الخط الملكي */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: #000000;
    background-image: radial-gradient(at 0% 100%, rgba(212, 175, 55, 0.1) 0, transparent 50%), 
                      linear-gradient(180deg, #000000 0%, #050505 100%);
    background-attachment: fixed;
    color: #fff;
    direction: rtl;
    display: flex;
    min-height: 100vh;
}

/* القائمة الجانبية الملكية */
.sidebar {
    width: 280px;
    background-color: #080808;
    border-left: 2px solid #D4AF37;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.logo {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* علامة حالة السنتر (مفتوح / مغلق) */
.status-badge {
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid;
}
.status-open { background: rgba(40,167,69,0.1); color: #28a745; border-color: #28a745; }
.status-closed { background: rgba(220,53,69,0.1); color: #dc3545; border-color: #dc3545; }

/* أزرار النافيجيشن والتنقل */
.nav-btn {
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
    width: 100%;
}
.nav-btn:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-3px);
}

.call-btn { background: #007bff !important; color: white !important; font-size: 14px; padding: 10px; }
.share-btn { background: #25D366 !important; color: white !important; font-size: 14px; padding: 10px; }
.gold-btn { margin-bottom: 15px; display: block; background: rgba(212, 175, 55, 0.05); }

/* صندوق البيانات في السايدبار */
.info-box {
    padding: 15px;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    font-size: 13px;
    line-height: 1.6;
}
.info-box hr { border: 0; border-top: 1px solid rgba(212,175,55,0.2); margin: 10px 0; }

/* زر فتح السايدبار في الموبايل */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* المحتوى الرئيسي */
.main-content {
    flex: 1;
    padding: 40px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.main-logo { width: 180px; margin-bottom: 20px; }
.main-title { text-align: center; color: #D4AF37; margin-bottom: 30px; }

/* التحكم في إظهار وإخفاء الصفحات */
.page-section { display: none; }
.page-section.active { display: block; }

.back-btn {
    background: transparent;
    border: none;
    color: #D4AF37;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* الفريمات والفيديوهات */
iframe {
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    background: #000;
}

/* المدخلات والفورم */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; text-align: right; }
.form-group label { color: #D4AF37; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    background: #111;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}
.action-btn { background: #D4AF37 !important; color: black !important; margin-top: 15px; }

/* كروت الآراء والتنبيهات */
.info-alert { background: rgba(212, 175, 55, 0.1); border: 1px solid #D4AF37; padding: 15px; border-radius: 8px; text-align: center; color: #D4AF37; }
.add-review-box { background: rgba(255,255,255,0.02); padding: 20px; border: 1px solid rgba(212,175,55,0.2); border-radius: 12px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.review-card { padding: 15px; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 12px; margin-bottom: 12px; background: rgba(255,255,255,0.02); line-height: 1.6; text-align: right; }

/* أنيميشن المقص في الخلفية */
@keyframes scissors-swing {
    0% { transform: rotate(0deg); opacity: 0.08; }
    50% { transform: rotate(-12deg); opacity: 0.15; }
    100% { transform: rotate(0deg); opacity: 0.08; }
}
.scissors-container {
    position: fixed;
    bottom: 5%;
    left: 5%; 
    width: 200px;
    z-index: 0;
    pointer-events: none;
    animation: scissors-swing 8s infinite;
}
.scissors-container svg { fill: #D4AF37; }

/* ريسبونسيف للموبايل */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; display: none; border-left: none; border-bottom: 2px solid #D4AF37; }
    .sidebar.open { display: flex; }
    .sidebar-toggle { display: block; }
    .form-grid { grid-template-columns: 1fr; }
    .main-content { padding: 80px 20px 20px 20px; }
}

/* تنسيق الأزرار الجديدة اللي بتفتح في تاب منفصلة */
.nav-link-btn {
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.nav-link-btn:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-3px);
}