/* --- MEMORIAL SYSTEM DESIGN --- */
:root {
    --bg-primary: #f8fafd; /* Clean white with soft blue tint */
    --bg-secondary: #eef3f6; /* Soft grey-blue doeskin tone */
    --text-primary: #1a2a36; /* Deep slate navy */
    --text-secondary: #4a5b68; /* Slate grey */
    --primary-color: #137a7f; /* Classic Teal/Turquoise */
    --primary-light: #dbf0f1; /* Soft turquoise light tint */
    --accent-color: #ff6b00; /* Brighter Orange (Butterfly) */
    --accent-dark: #cc5200;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(115, 138, 156, 0.15);
    --border-radius: 16px;
    --transition-speed: 0.4s;
    --max-width: 1200px;
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f1519;
        --bg-secondary: #172026;
        --text-primary: #e9f1f5;
        --text-secondary: #a3b4bf;
        --primary-color: #1ba0a8;
        --primary-light: #153c3e;
        --accent-color: #ff8833; /* Brighter Orange dark mode */
        --accent-dark: #d35400;
        --glass-bg: rgba(23, 32, 38, 0.65);
        --glass-border: rgba(255, 255, 255, 0.08);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    }
}

.highlight-orange {
    color: var(--accent-color) !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background glowing blur effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    transition: all 1s ease;
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

/* Typography elements */
h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation styling */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.auth-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-link.auth-btn::after {
    display: none;
}

.nav-link.auth-btn:hover {
    background-color: var(--text-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* Nav toggle button for mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Glassmorphism Generic Card Styling */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 2.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Content wrapper */
.content-container {
    max-width: var(--max-width);
    margin: 8rem auto 4rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 12rem);
}

/* Section transitions */
.spa-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.spa-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.decorative-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin: 0 auto 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- HOME / HERO SECTION --- */
.hero-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2.5rem auto;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.portrait-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: rotateRing 40s linear infinite;
    z-index: 1;
}

@keyframes rotateRing {
    100% {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hero-dates {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 4rem auto;
    position: relative;
    line-height: 1.8;
}

.hero-quote::before, .hero-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.hero-quote::before {
    top: -20px;
    left: -30px;
}

.hero-quote::after {
    bottom: -40px;
    right: -30px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.grid-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(197, 180, 160, 0.25);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.grid-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.grid-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text h3, .about-timeline h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* Timeline component styling */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6px;
    width: 2px;
    height: 100%;
    background-color: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--bg-primary);
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.1rem;
    margin: 0.2rem 0 0.5rem 0;
    color: var(--text-primary);
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- GALLERY SECTION --- */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.2rem 2rem;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.action-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background-color: var(--text-primary);
    transform: translateY(-2px);
}

.action-btn.outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.action-btn.outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.action-btn.disabled-btn {
    background-color: var(--glass-border);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.action-btn.disabled-btn:hover {
    transform: none;
}

.info-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.alert-icon {
    font-size: 1.4rem;
}

.info-alert p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-caption {
    font-size: 0.9rem;
    font-weight: 400;
}

/* --- OBITUARY SECTION --- */
.obituary-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.obituary-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.obituary-header h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.obituary-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.obituary-body p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    text-indent: 1rem;
}

.service-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-info-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.service-info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.8rem;
}

.service-info-item h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.service-info-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- DONATION SECTION --- */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.donation-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.donation-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.donation-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.donation-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.highlighted-donation {
    border-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.highlighted-donation::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 2.5rem;
    transform: rotate(45deg);
}

.method-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    background-color: var(--primary-light);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

.custom-note {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--accent-dark) !important;
}

/* --- AUTH / LOGIN SECTION --- */
.auth-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.auth-grid-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.auth-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input, .input-group textarea {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.auth-divider span {
    padding: 0 0.8rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-signin-btn:hover {
    background-color: #f7f7f7;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Logged In Info Card styling */
.user-info-card {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.user-avatar {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}

.user-email {
    font-weight: 500;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* --- FOOTER AREA --- */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 8rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-qr-container {
    display: flex;
    align-items: center;
}

.qr-box {
    padding: 1.2rem;
    text-align: center;
}

.qr-code {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem auto;
    position: relative;
    border: 1px solid #ddd;
}

.qr-pattern {
    width: 80px;
    height: 80px;
    background-image: 
        radial-gradient(#2d2621 25%, transparent 25%),
        radial-gradient(#2d2621 25%, transparent 25%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    opacity: 0.85;
}

.qr-placeholder-text {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.qr-caption {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- MODAL DIALOGS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.file-drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-drop-zone:hover {
    border-color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.05);
}

.drop-zone-icon {
    font-size: 2.2rem;
}

.drop-zone-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hidden-file-input {
    display: none;
}

#filePreviewContainer {
    position: relative;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
    border: 1px solid var(--glass-border);
}

#filePreviewImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-preview-btn:hover {
    background-color: var(--accent-dark);
}

/* --- RSVP SECTION --- */
.rsvp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.rsvp-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.rsvp-stats-container {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.attendee-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.attendee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.attendee-info h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.attendee-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.attendee-status {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.attendee-status.declined {
    background-color: rgba(224, 83, 0, 0.1);
    color: var(--accent-color);
}

.no-replies-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-grid, .obituary-layout, .auth-grid-forms, .rsvp-layout {
        grid-template-columns: 1fr;
    }
    
    .obituary-header h3 {
        white-space: normal;
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .content-container {
        padding: 0 1.2rem;
        margin-top: 7rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

.delete-rsvp-btn:hover {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* --- ADMIN PANEL STYLING --- */
.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
    color: var(--accent-color);
    background-color: var(--primary-light);
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.admin-table th {
    color: var(--text-primary);
    font-weight: 600;
    background-color: rgba(0,0,0,0.02);
}

.admin-table td {
    color: var(--text-secondary);
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-table .action-btn.small {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 12px;
}
