/* Mosque Manager landing theme (scoped)
   Inspired by mosque-mbark-j.com styling, but namespaced to avoid bleeding */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');


.mosque-site {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    flex: 1;
    transition: background 0.5s ease, color 0.5s ease;
}

/* The individual themes are now defined in variables.css */

.mosque-site {
    background: var(--site-bg);
    color: var(--site-text);
    --noor-accent: var(--primary-color);
}

/* Global Glassmorphism & Luxury Shell */
.glass-panel-lux {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

.royal-header-lux {
    background: var(--header-grad);
    color: white;
    padding: 4rem 2rem;
    border-radius: 0 0 60px 60px;
    margin-bottom: -60px;
    position: relative;
    z-index: 10;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.royal-header-lux h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.royal-header-lux p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.royal-card-lux {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.royal-card-lux:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Navbar */
.mosque-site .navbar {
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    z-index: 1050;
}

.mosque-site .navbar.navbar-scrolled {
    background: var(--navbar-bg) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.mosque-site .navbar.navbar-scrolled .navbar-brand .main-title {
    color: var(--royal-gold) !important;
}

.mosque-site .navbar.navbar-scrolled .nav-link {
    color: var(--site-text) !important;
}

.mosque-site .navbar.navbar-scrolled .navbar-toggler-icon {
    filter: brightness(0.5);
}

.theme-royal-dark .navbar.navbar-scrolled .navbar-toggler-icon {
    filter: invert(0);
}

.mosque-site .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
}

.mosque-site .navbar .nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
    border: none;
    background: none;
    padding: 0.5rem 1rem;
}

.mosque-site .btn-link-nav {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    margin: 0 2px;
}

.mosque-site .btn-link-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.mosque-site .navbar.navbar-scrolled .btn-link-nav {
    color: var(--site-text);
}

.mosque-site .navbar.navbar-scrolled .btn-link-nav:hover {
    background: rgba(58, 136, 181, 0.08);
    color: var(--primary-color) !important;
}

/* Hero */
.mosque-site .hero-section {
    background: radial-gradient(circle at top right, #1e3a8a, #0f172a 60%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mosque-site .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.mosque-site .hero-content {
    position: relative;
    z-index: 2;
}

.mosque-site .hero-lead {
    color: rgba(255, 255, 255, 0.9);
}

.mosque-site .hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section titles */
.mosque-site .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.mosque-site .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 5px;
    background: var(--secondary-color);
    border-radius: 10px;
}

/* Cards */
.mosque-site .mosque-card,
.mosque-site .activity-card,
.mosque-site .portal-card,
.mosque-site .contact-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    height: 100%;
    color: var(--site-text);
}

.mosque-site .activity-card:hover,
.mosque-site .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Activity */
.mosque-site .activity-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(58, 136, 181, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.mosque-site .activity-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Portal */
.mosque-site .portal-card {
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.mosque-site .portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mosque-site .portal-card:hover::before {
    transform: scaleX(1);
}

.mosque-site .portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.mosque-site .portal-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3730a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
}

.mosque-site .portal-icon i {
    font-size: 2.4rem;
    color: #fff;
}

.mosque-site .portal-title {
    text-align: center;
    font-weight: 800;
}

.mosque-site .portal-desc {
    text-align: center;
    color: #94a3b8;
}

/* Buttons */
.mosque-site .btn {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.mosque-site .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.mosque-site .btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

.mosque-site .btn-warning {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.mosque-site .btn-warning:hover {
    background: var(--royal-gold);
    border-color: var(--royal-gold);
    transform: translateY(-2px);
}

/* Contact */
.mosque-site .contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(58, 136, 181, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.mosque-site .contact-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Registration */
.mosque-site .registration-form-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--glass-shadow);
    border: 2px solid var(--glass-border);
}

.mosque-site .form-control,
.mosque-site .form-select,
.mosque-site .form-control-lux,
.mosque-site .form-select-lux {
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--site-text);
}

.mosque-site .form-control:focus,
.mosque-site .form-select:focus,
.mosque-site .form-control-lux:focus,
.mosque-site .form-select-lux:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-color-rgb), 0.2);
    outline: none;
}

.mosque-site .form-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.mosque-site .invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.mosque-site .validation-summary-errors {
    background: rgba(239, 68, 68, 0.08);
    border-right: 4px solid var(--danger-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.mosque-site .validation-summary-errors ul {
    margin: 0;
}

/* Animations */
@keyframes mosqueFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mosque-site .fade-in-up {
    animation: mosqueFadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 991.98px) {
    .mosque-site .hero-section {
        padding-top: 90px;
        padding-bottom: 30px;
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .mosque-site .section-title {
        font-size: 1.8rem;
    }
}

/* Registration Choice Cards Re-styling */
.mosque-site .registration-choice-card {
    text-align: center;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 3rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    color: var(--site-text);
}

.mosque-site .registration-choice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent, rgba(255, 255, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mosque-site .registration-choice-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--glass-shadow);
    background: var(--card-bg);
    border-color: var(--primary-color);
}

.mosque-site .choice-icon {
    width: 85px;
    height: 85px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mosque-site .registration-choice-card h4 {
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--royal-gold);
    font-size: 1.5rem;
}

.mosque-site .registration-choice-card p {
    color: var(--site-text);
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Button Refinement */
.mosque-site .registration-choice-card .btn {
    border-radius: 14px;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-width: 2px;
}

/* Color Themes */
.mosque-site .student-card {
    --card-accent: #10b981;
}

.mosque-site .teacher-card {
    --card-accent: #3b82f6;
}

.mosque-site .parent-card {
    --card-accent: var(--secondary-color);
}

.mosque-site .admin-card {
    --card-accent: #64748b;
}

.mosque-site .registration-choice-card .choice-icon {
    background: linear-gradient(135deg, var(--card-accent), #fff);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mosque-site .student-card .choice-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.mosque-site .teacher-card .choice-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.mosque-site .parent-card .choice-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--royal-gold));
}

.mosque-site .admin-card .choice-icon {
    background: linear-gradient(135deg, #1e293b, #475569);
}

.mosque-site .registration-choice-card:hover .choice-icon {
    transform: rotate(-10deg) scale(1.1);
}

.mosque-site .registration-choice-card .btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.mosque-site .registration-choice-card .btn-outline-success:hover {
    background: var(--primary-color);
    color: var(--site-bg);
}

.theme-noor-classic .registration-choice-card .btn-outline-success {
    color: #10b981;
    border-color: #10b981;
}

.mosque-site .registration-choice-card .btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
}

.mosque-site .registration-choice-card .btn-outline-primary:hover {
    background: #3b82f6;
    color: #fff;
}

.mosque-site .registration-choice-card .btn-outline-warning {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.mosque-site .registration-choice-card .btn-outline-warning:hover {
    background: var(--secondary-color);
    color: #fff;
}

.mosque-site .registration-choice-card .btn-outline-dark {
    color: #1e293b;
    border-color: #1e293b;
}

.mosque-site .registration-choice-card .btn-outline-dark:hover {
    background: #1e293b;
    color: #fff;
}

.mosque-site .search-box-lux {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 15px;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--glass-border);
}

.mosque-site .search-box-lux input {
    color: var(--site-text);
}

/* --- Artistic Polish & Royal Decorations --- */

.text-gold-gradient {
    background: linear-gradient(135deg, var(--royal-gold) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.navbar-brand-lux {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-icon-lux {
    width: 45px;
    height: 45px;
    background: var(--royal-gold);
    color: var(--royal-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.brand-text-lux {
    display: flex;
    flex-direction: column;
}

.brand-text-lux .main-title {
    color: white;
    font-weight: 800;
    line-height: 1;
    font-size: 1.25rem;
}

.brand-text-lux .sub-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-badge-lux {
    background: rgba(var(--secondary-color-rgb), 0.15);
    border: 1px solid var(--royal-gold);
    color: var(--royal-gold);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.hero-lead-lux {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.royal-footer-lux {
    background: linear-gradient(to bottom, #0f172a, #020617);
    border-top: 4px solid var(--royal-gold);
    position: relative;
    overflow: hidden;
}

.footer-divider {
    width: 60px;
    height: 3px;
    background: var(--royal-gold);
    margin: 0 auto;
    border-radius: 10px;
}

/* Sparkle Decoration */
.mosque-site::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(var(--secondary-color-rgb), 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 100;
    opacity: 0.5;
}

@keyframes float-royal {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.mosque-card {
    animation: float-royal 6s ease-in-out infinite;
}

.fw-900 {
    font-weight: 900;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

#register {
    position: relative;
    background: linear-gradient(to bottom, #fff, #f8fafc);
    overflow: hidden;
}

#register::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 136, 181, 0.05) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    z-index: 0;
}

.bg-gold-lux {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #020617 !important;
    font-weight: 800;
}

.shadow-gold-lux {
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.theme-select-lux {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding-right: 2.5rem !important;
    transition: all 0.3s;
}

.theme-select-lux:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
}

.theme-select-lux option {
    background-color: #1e293b;
    color: white;
}

.navbar.navbar-scrolled .theme-select-lux {
    color: var(--site-text) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.theme-royal-light .navbar.navbar-scrolled .theme-select-lux option {
    background-color: white;
    color: #1e293b;
}

/* Fix for Hero titles in specific themes */
.theme-noor-classic .text-gold-gradient {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Radzen Component Unification --- */
.mosque-site .rz-card {
    background: var(--card-bg) !important;
    color: var(--site-text) !important;
    border-color: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: 12px !important;
}

.mosque-site .rz-grid-table thead th {
    background-color: rgba(var(--primary-color-rgb), 0.1) !important;
    color: var(--primary-color) !important;
}

.mosque-site .rz-group-header,
.mosque-site .rz-grid-header {
    background-color: transparent !important;
}

.mosque-site .rz-cell-data,
.mosque-site .rz-column-title,
.mosque-site .rz-grid-table td,
.mosque-site .rz-lookup-search input {
    color: var(--site-text) !important;
}

/* Fix Grid Contrast - User Request: Black Text */
.mosque-site .rz-grid-table,
.mosque-site .rz-grid-table tr,
.mosque-site .rz-data-row {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.mosque-site .rz-grid-table td {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.mosque-site .rz-grid-table tr:hover>td {
    background-color: #f1f5f9 !important;
    /* Light gray hover */
    color: #000000 !important;
}

.mosque-site .rz-cell-data,
.mosque-site .rz-column-title,
.mosque-site .rz-grid-table span {
    color: #000000 !important;
}

/* Striped rows */
.mosque-site .rz-grid-table-striped tbody>tr:not(.rz-expanded-row-content):nth-child(even)>td {
    background-color: #f8fafc !important;
    /* Very light cool gray */
    color: #000000 !important;
}

.mosque-site .rz-textbox,
.mosque-site .rz-numeric,
.mosque-site .rz-dropdown {
    background-color: var(--input-bg) !important;
    color: var(--site-text) !important;
    border-color: var(--glass-border) !important;
}

.mosque-site .rz-dropdown-label {
    color: var(--site-text) !important;
}

.mosque-site .rz-button.btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--site-bg) !important;
}

.mosque-site .rz-chkbox-box.rz-state-active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.mosque-site .rz-paginator {
    background-color: transparent !important;
    color: var(--site-text) !important;
}

.mosque-site .rz-paginator-element {
    color: var(--site-text) !important;
}

.mosque-site .rz-paginator-element.rz-state-active {
    background-color: var(--primary-color) !important;
    color: var(--site-bg) !important;
}