/* Modern Islamic Theme - Enurul Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #059669;
    /* Emerald 600 */
    --primary-dark: #047857;
    --primary-light: #34D399;
    --secondary: #D97706;
    /* Amber 600 - Gold */
    --accent: #10B981;
    --background: #F9FAFB;
    /* Very light gray/white */
    --surface: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --gold: #FFD700;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile focused max-width */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-white {
    color: #fff;
}

.text-primary {
    color: var(--primary);
}

.text-gold {
    color: var(--secondary);
}

.text-muted {
    color: var(--text-muted);
}

.bg-white {
    background-color: var(--surface);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-emerald-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.bg-gold-gradient {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.rounded-lg {
    border-radius: 0.75rem;
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.p-4 {
    padding: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.hidden {
    display: none !important;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: transform 0.1s;
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
}

.btn-gold {
    background: var(--gold);
    color: #78350F;
}

.card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3F4F6;
}

/* Header Specifics */
.header-bg {
    background: var(--primary);
    background: linear-gradient(to bottom right, #065F46, #10B981);
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.header-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,261.3C960,256,1056,224,1152,202.7C1248,181,1344,171,1392,165.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

/* Hero QR Button */
.btn-qr-hero {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 1rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    width: 100%;
    margin-top: -2.5rem;
    /* Pull up to overlap header */
    position: relative;
    z-index: 10;
    justify-content: center;
}

.btn-qr-hero:hover {
    transform: translateY(-2px);
}

/* Prayer Items */
.prayer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.prayer-item.active {
    background: #ECFDF5;
    border: 1px solid #D1FAE5;
}

.prayer-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    color: white;
}

.prayer-item.active .prayer-check {
    background: var(--success);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    border-top: 1px solid #F3F4F6;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #9CA3AF;
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

/* QR Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.qr-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    width: 90%;
    max-width: 320px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .qr-card {
    transform: scale(1);
}

/* Animation */
@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite;
}


/* Landing Page Specifics */
.landing-hero {
    background: linear-gradient(150deg, #065F46 0%, #10B981 100%);
    color: white;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'0.05\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

.masjid-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid #F3F4F6;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: #ECFDF5;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.btn-landing-primary {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
    border: 1px solid transparent;
}

.btn-landing-secondary {
    background: white;
    color: var(--primary);
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid var(--primary);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .desktop-table {
        display: none;
    }

    .mob-card-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .desktop-table {
        display: block;
    }

    .mob-card-list {
        display: none;
    }
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tables and Lists */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 1rem;
    background: #F9FAFB;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid #F3F4F6;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

/* Mobile Card System */
.mob-card-item {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #F3F4F6;
    box-shadow: var(--shadow-sm);
}

.mob-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.mob-card-row:last-child {
    margin-bottom: 0;
}

.mob-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-blue {
    background: #EFF6FF;
    color: #3B82F6;
}

.badge-green {
    background: #ECFDF5;
    color: #059669;
}

.badge-red {
    background: #FEF2F2;
    color: #EF4444;
}

.badge-amber {
    background: #FFFBEB;
    color: #D97706;
}

.grid-2 {
    display: grid;
    gap: 1.25rem;
}