/* Core variables matching Sheddu El Himmah premium Quran Centre LMS */
:root {
    --bg-primary: #05130b;
    --bg-secondary: #092015;
    --bg-card: rgba(13, 38, 26, 0.65);
    --border-glass: rgba(212, 175, 55, 0.15);
    --border-hover: rgba(212, 175, 55, 0.35);
    --primary-gold: #d4af37;
    --primary-gold-rgb: 212, 175, 55;
    --emerald-bright: #10b981;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-blur: blur(12px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.weblify-quran-wrapper {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-light);
    min-height: 100%;
    padding: 1rem 0;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.weblify-quran-wrapper * {
    box-sizing: border-box;
}

/* Glass Auth Container */
.glass-auth-container {
    max-width: 450px;
    margin: 4rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* WordPress standard form overrides inside login wrapper */
#weblify-lms-login-form {
    text-align: right;
}

#weblify-lms-login-form p {
    margin-bottom: 1.25rem;
}

#weblify-lms-login-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-bottom: 6px;
    font-weight: 700;
}

#weblify-lms-login-form input[type="text"], 
#weblify-lms-login-form input[type="password"] {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

#weblify-lms-login-form input[type="text"]:focus, 
#weblify-lms-login-form input[type="password"]:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212,175,55,0.2);
}

#weblify-lms-login-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #a88110 100%);
    border: none;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

#weblify-lms-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.auth-footer-links {
    margin-top: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.auth-footer-links a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 700;
}

/* Stat Metrics Dashboard layout */
.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(212,175,55,0.12);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212,175,55,0.1);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Grids splitting layout */
.content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .content-split {
        grid-template-columns: 1fr;
    }
}

.main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* Alert system styles */
.alert-box {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.danger-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.success-alert {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--emerald-bright);
    color: var(--emerald-bright);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--primary-gold);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #a88110 100%);
    border: none;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--primary-gold);
}

/* Juz Grid system on dashboard page */
.juz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.juz-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.juz-box:hover {
    transform: scale(1.06);
    border-color: var(--primary-gold);
}

.juz-box.completed {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--emerald-bright);
    color: var(--emerald-bright);
}

.juz-box.reviewing {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
    color: #f59e0b;
}

.juz-number {
    font-size: 1.15rem;
    font-weight: 800;
    display: block;
}

.juz-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.juz-box.completed .juz-label {
    color: var(--emerald-bright);
}

.juz-box.reviewing .juz-label {
    color: #f59e0b;
}

/* Radial progress chart widgets */
.radial-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.radial-svg {
    transform: rotate(-90deg);
}

.radial-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.radial-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.radial-text {
    font-size: 2.25rem;
    font-weight: 800;
    fill: #fff;
    font-family: 'Outfit', sans-serif;
}

.radial-label {
    font-size: 0.9rem;
    fill: var(--text-muted);
    font-family: 'Tajawal', sans-serif;
}

/* Tables and records list layouts */
.custom-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

th {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-gold);
    border-bottom: 2px solid var(--border-glass);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Student grid roster on teacher profile dashboard */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.student-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.student-card:hover {
    border-color: var(--primary-gold);
    background: rgba(13, 38, 26, 0.35);
}

.student-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.student-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.student-meta h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.student-meta p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.student-progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin-top: 8px;
}

.student-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--emerald-bright) 100%);
    border-radius: 10px;
}

/* Badges styling */
.badge {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-bright);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Rating Stars */
.stars-container {
    display: flex;
    gap: 6px;
}

.star.selected {
    fill: var(--primary-gold);
}

/* Leaderboards points styling */
.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    margin-bottom: 8px;
}

.leaderboard-rank-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.rank-1 { background: gold; color: #000; }
.rank-2 { background: #c0c0c0; color: #000; }
.rank-3 { background: #cd7f32; color: #000; }
.rank-other { background: rgba(255,255,255,0.1); color: #fff; }

.leaderboard-points {
    font-weight: 700;
    color: var(--primary-gold);
}

/* Fluid Widescreen Container */
.weblify-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Premium Developer Role Switcher Console */
.weblify-role-switcher-bar {
    background: rgba(10, 43, 29, 0.85);
    border: 1px solid var(--primary-gold);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    direction: rtl;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.switcher-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.weblify-role-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.weblify-role-buttons .role-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.weblify-role-buttons .role-btn:hover {
    border-color: var(--primary-gold);
    color: #fff;
}

.weblify-role-buttons .role-btn.active {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #a88110 100%);
    color: #000;
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

/* Toggleable Dashboard Panel Sizing & Fade Effect */
.weblify-dashboard-panel {
    display: none;
    width: 100%;
    animation: wpFadeIn 0.4s ease-in-out forwards;
}

.weblify-dashboard-panel.active {
    display: block;
}

@keyframes wpFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjust for switcher */
@media (max-width: 768px) {
    .weblify-role-switcher-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 1.25rem;
    }
    .weblify-role-buttons {
        justify-content: center;
        width: 100%;
    }
    .weblify-role-buttons .role-btn {
        flex-grow: 1;
        font-size: 0.8rem;
        padding: 8px;
    }
}



/* --- Premium Light Green Theme (Registration & Donation) --- */
.light-premium-theme {
    background-color: transparent;
    color: #333;
}
.light-premium-theme .main-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08);
}
.light-premium-theme .form-input, .light-premium-theme .form-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}
.light-premium-theme .form-input:focus, .light-premium-theme .form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.light-premium-theme .btn-outline {
    border: 1px solid #10b981;
    color: #10b981;
    background: transparent;
}
.light-premium-theme .btn-outline:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

