:root, [data-theme="default"] {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #d69e2e;
    --bg-gradient: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="emerald"] {
    --primary-color: #064e3b;
    --secondary-color: #059669;
    --accent-color: #d97706;
    --bg-gradient: radial-gradient(circle at center, #f0fdf4 0%, #dcfce7 100%);
}

[data-theme="burgundy"] {
    --primary-color: #701a2d;
    --secondary-color: #9b2c2c;
    --accent-color: #b7791f;
    --bg-gradient: radial-gradient(circle at center, #fff5f5 0%, #fed7d7 100%);
}

[data-theme="dark"] {
    --primary-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #38bdf8;
    --bg-gradient: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-gradient);
    color: #1e293b;
    overflow-x: hidden;
}

/* تصميم الصفحة الرئيسية الدائري */
.portal-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.school-title {
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

[data-theme="dark"] .school-title {
    color: #f8fafc;
}

.radial-hub {
    position: relative;
    width: 480px;
    height: 480px;
    margin: 20px auto;
    border-radius: 50%;
    border: 2px dashed rgba(43, 108, 176, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* اللوجو الدائري في المنتصف */
.center-logo-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 8px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5;
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.center-logo-circle:hover {
    transform: scale(1.04);
}

.center-logo-circle img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

/* الأزرار الثلاثة الموزعة حول اللوجو */
.orbit-btn {
    position: absolute;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 6;
}

.orbit-btn i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.orbit-btn:hover:not(.disabled-btn) {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* توزيع مثلثي متوازن حول الدائرة */
.btn-student {
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}
.btn-student:hover {
    transform: translateX(-50%) scale(1.06) !important;
}

.btn-admin {
    bottom: 25px;
    right: -20px;
}

.btn-parent {
    bottom: 25px;
    left: -20px;
}

/* زر ولي الأمر غير المفعل */
.disabled-btn {
    background: #94a3b8 !important;
    color: #e2e8f0 !important;
    cursor: not-allowed !important;
    opacity: 0.85;
}

.disabled-btn i {
    color: #cbd5e1 !important;
}

.badge-soon {
    font-size: 0.7rem;
    background: #475569;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

/* الفوتر الثابت */
.main-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    border-top: 3px solid var(--accent-color);
    font-size: 0.95rem;
}

/* التجاوب مع شاشات الموبايل */
@media (max-width: 576px) {
    .radial-hub {
        width: 330px;
        height: 330px;
    }
    .center-logo-circle {
        width: 135px;
        height: 135px;
    }
    .orbit-btn {
        width: 105px;
        height: 105px;
        font-size: 0.9rem;
    }
    .orbit-btn i {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    .btn-student { top: -25px; }
    .btn-admin { bottom: 10px; right: -10px; }
    .btn-parent { bottom: 10px; left: -10px; }
}

@media print {
    .no-print {
        display: none !important;
    }
}