:root {
    --primary-color: #2e7d32;
    /* Deep Mosque Green */
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --secondary-color: #ffa000;
    /* Gold accent */
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #757575;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --nav-height: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

/* Base Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header / Top Nav (Desktop) */
header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.top-nav {
    display: none;
    /* Hidden on mobile */
}

.top-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

/* Bottom Nav (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.8rem;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Card Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.menu-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.menu-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.menu-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.card-display {
    overflow: hidden;
}

/* Base Table Layout */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 320px;
    /* Ensure content doesn't squash too much */
}

/* Adaptive Layout Queries */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .hero {
        padding: 30px 10px;
    }

    table th,
    table td {
        padding: 10px 8px !important;
        font-size: 0.85rem;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        padding-top: 0;
    }

    .bottom-nav {
        display: none;
    }

    .top-nav {
        display: flex;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Premium Decorations */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 40px 20px;
    border-radius: 0 0 30px 30px;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero p {
    opacity: 0.9;
}