/* =============================================
   APLIKASI GEREJA ARGOMULYO - DESIGN SYSTEM
   Premium Android-Style PWA Design
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables - Design Tokens */
:root {
    /* Primary Colors - Spiritual Theme */
    --primary-baptis: #1e3a5f;
    --primary-baptis-light: #2d5a8a;
    --primary-baptis-gradient: linear-gradient(135deg, #1e3a5f 0%, #3d7ab8 100%);
    
    --primary-katolik: #4a1c5c;
    --primary-katolik-light: #6b2d7a;
    --primary-katolik-gradient: linear-gradient(135deg, #4a1c5c 0%, #8b4fa8 100%);
    
    /* Accent Colors */
    --gold: #d4af37;
    --gold-light: #f0d775;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f0d775 100%);
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #bdc1c6;
    --gray-500: #9aa0a6;
    --gray-600: #80868b;
    --gray-700: #5f6368;
    --gray-800: #3c4043;
    --gray-900: #202124;
    --black: #000000;
    
    /* Status Colors */
    --success: #34a853;
    --warning: #fbbc04;
    --error: #ea4335;
    --info: #4285f4;
    
    /* Liturgical Colors */
    --liturgi-putih: #ffffff;
    --liturgi-merah: #dc3545;
    --liturgi-hijau: #28a745;
    --liturgi-ungu: #6f42c1;
    --liturgi-hitam: #212529;
    --liturgi-rose: #e75480;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-toast: 500;
    
    /* Safe Areas for Mobile */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    
    /* Bottom Nav Height */
    --nav-height: 64px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --gray-50: #1a1a1a;
    --gray-100: #2d2d2d;
    --gray-200: #3d3d3d;
    --gray-300: #4d4d4d;
    --gray-400: #6d6d6d;
    --gray-500: #8d8d8d;
    --gray-600: #adadad;
    --gray-700: #cdcdcd;
    --gray-800: #e0e0e0;
    --gray-900: #f5f5f5;
    --glass-bg: rgba(30, 30, 30, 0.9);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--gray-700);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-md);
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    padding-top: var(--safe-top);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.app-header.baptis {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95), rgba(45, 90, 138, 0.95));
    color: var(--white);
}

.app-header.katolik {
    background: linear-gradient(135deg, rgba(74, 28, 92, 0.95), rgba(107, 45, 122, 0.95));
    color: var(--white);
}

.header-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

.header-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-back:hover {
    background: rgba(255,255,255,0.2);
}

.header-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.main-content {
    padding-top: calc(60px + var(--safe-top) + var(--space-md));
    min-height: 100vh;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Feature Cards - Church Selection */
.church-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-normal);
}

.church-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

.church-card > * {
    position: relative;
    z-index: 2;
}

.church-card.baptis {
    background: var(--primary-baptis-gradient);
}

.church-card.katolik {
    background: var(--primary-katolik-gradient);
}

.church-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.church-card .church-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.church-card .church-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.church-card .church-type {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Quick Action Cards */
.quick-action {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.quick-action:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.quick-action-icon.baptis {
    background: var(--primary-baptis-gradient);
}

.quick-action-icon.katolik {
    background: var(--primary-katolik-gradient);
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-900);
}

.quick-action-desc {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* Schedule Cards */
.schedule-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-sm);
}

.schedule-time {
    min-width: 70px;
    text-align: center;
    padding: var(--space-sm);
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.schedule-time .time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.schedule-time .period {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

.schedule-info {
    flex: 1;
}

.schedule-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.schedule-desc {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.schedule-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: var(--gray-900);
    font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: var(--z-fixed);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.bottom-nav.baptis {
    background: var(--primary-baptis);
}

.bottom-nav.katolik {
    background: var(--primary-katolik);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-500);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    min-width: 64px;
}

.bottom-nav.baptis .nav-item,
.bottom-nav.katolik .nav-item {
    color: rgba(255,255,255,0.6);
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-katolik);
}

.bottom-nav.baptis .nav-item.active,
.bottom-nav.baptis .nav-item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.bottom-nav.katolik .nav-item.active,
.bottom-nav.katolik .nav-item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.nav-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 0.6875rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-katolik-gradient);
    color: var(--white);
}

.btn-primary.baptis {
    background: var(--primary-baptis-gradient);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--gray-900);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-md));
    right: var(--space-md);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: var(--z-fixed);
    border: none;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-katolik-light);
    box-shadow: 0 0 0 4px rgba(74, 28, 92, 0.1);
}

.form-control.baptis:focus {
    border-color: var(--primary-baptis-light);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-katolik);
    color: var(--white);
}

.badge-gold {
    background: var(--gold-gradient);
    color: var(--gray-900);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--gray-900);
}

.badge-danger {
    background: var(--error);
    color: var(--white);
}

/* Liturgical Color Badges */
.badge-liturgi-putih { background: #f0f0f0; color: var(--gray-800); border: 1px solid var(--gray-300); }
.badge-liturgi-merah { background: var(--liturgi-merah); color: white; }
.badge-liturgi-hijau { background: var(--liturgi-hijau); color: white; }
.badge-liturgi-ungu { background: var(--liturgi-ungu); color: white; }
.badge-liturgi-hitam { background: var(--liturgi-hitam); color: white; }
.badge-liturgi-rose { background: var(--liturgi-rose); color: white; }

/* Alerts */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(52, 168, 83, 0.1);
    border-left: 4px solid var(--success);
    color: #1e4620;
}

.alert-warning {
    background: rgba(251, 188, 4, 0.1);
    border-left: 4px solid var(--warning);
    color: #5f4b00;
}

.alert-danger {
    background: rgba(234, 67, 53, 0.1);
    border-left: 4px solid var(--error);
    color: #5f1a15;
}

.alert-info {
    background: rgba(66, 133, 244, 0.1);
    border-left: 4px solid var(--info);
    color: #1a3d66;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.section-link {
    font-size: 0.875rem;
    color: var(--primary-katolik);
    font-weight: 500;
}

/* List Groups */
.list-group {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--gray-50);
}

.list-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--gray-100);
    color: var(--gray-700);
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

.list-item-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.list-item-action {
    color: var(--gray-400);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    color: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-top: -60px;
    padding-top: calc(60px + var(--space-xl));
}

.hero.baptis {
    background: var(--primary-baptis-gradient);
}

.hero.katolik {
    background: var(--primary-katolik-gradient);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L50 100M0 50L100 50' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.5;
    border-radius: inherit;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.hero-subtitle {
    font-size: 0.9375rem;
    opacity: 0.85;
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--space-lg);
}

.tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--space-md);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.empty-state-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }
.text-gold { color: var(--gold); }
.fw-bold { font-weight: 600; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.4s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Touch Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-katolik);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-lg));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: var(--safe-bottom);
}

.modal-overlay.show + .modal,
.modal.show {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-md);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sacrament Icons */
.sacrament-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.sacrament-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.sacrament-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sacrament-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    background: var(--primary-katolik-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sacrament-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

/* Admin Styles */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--gray-900);
    color: var(--white);
    z-index: var(--z-fixed);
    transition: transform var(--transition-normal);
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--gray-100);
}

.admin-header {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.admin-content {
    padding: var(--space-lg);
}

/* Data Table */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.data-table tr:hover td {
    background: var(--gray-50);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Admin Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
}

/* Print Styles */
@media print {
    .bottom-nav,
    .fab,
    .app-header {
        display: none !important;
    }
    
    body {
        padding: 0 !important;
    }
    
    .main-content {
        padding-top: 0 !important;
    }
}
