/* 
  Noor Premium Theme - Global Styles
  Colors: Blue (#003366), Gold (#ffcc00), BG (#f1f5f9)
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --noor-blue: #003366;
    --noor-blue-dark: #002244;
    --noor-gold: #ffcc00;
    --noor-gold-hover: #e6b800;
    --noor-bg: #f1f5f9;
    --noor-white: #ffffff;
    --noor-text: #1e293b;
    --noor-text-dim: #64748b;
    --noor-border: #e2e8f0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--noor-bg) !important;
    color: var(--noor-text);
    margin: 0;
    padding: 0;
}

/* Mosque Admin Shell Redesign */
.noor-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.system-nav {
    background: var(--noor-blue);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--noor-gold);
    color: var(--noor-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.brand-text h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.brand-text span {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Sidebar Styling */
.app-sidebar {
    width: 280px;
    background: white;
    border-left: 1px solid var(--noor-border);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-user {
    padding: 25px;
    background: #f8fafc;
    border-bottom: 1px solid var(--noor-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-user img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 2px solid white;
}

.su-name {
    font-weight: 800;
    color: var(--noor-blue);
}

.su-status {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 700;
}

.menu-link {
    padding: 12px 18px;
    margin: 5px 15px;
    border-radius: 12px;
    color: var(--noor-text-dim);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

.menu-link:hover {
    background: #f1f5f9;
    color: var(--noor-blue);
}

.menu-link.active {
    background: var(--noor-blue);
    color: white;
}

.menu-link.active i {
    color: var(--noor-gold);
}

/* CRUD & Dashboard Grid Styling */
.premium-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--noor-border);
    transition: 0.3s;
}

.premium-card:hover {
    transform: translateY(-5px);
}

.card-header-noor {
    background: var(--noor-blue);
    height: 100px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 35px;
}

.card-title-noor {
    color: white;
    font-weight: 800;
    margin: 0;
}

.circle-icon-badge {
    position: absolute;
    bottom: -40px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    border: 5px solid var(--noor-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--noor-blue);
}

.card-body-noor {
    padding: 50px 25px 25px;
}

/* Buttons */
.btn-noor-gold {
    background: var(--noor-gold);
    color: var(--noor-blue);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-noor-gold:hover {
    background: var(--noor-gold-hover);
}

/* Fixes for layout shift */
.main-layout {
    display: flex;
    flex: 1;
}

.app-content {
    flex: 1;
    padding: 30px;
}

@media (max-width: 1024px) {
    .app-sidebar {
        position: fixed;
        right: -280px;
        top: 70px;
        bottom: 0;
    }

    .app-sidebar.active {
        right: 0;
    }
}