@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;800;900&display=swap');

/* --- Base Variables --- */
:root {
    --bg-color: #e0e5ec;
    --text-main: #1a1e21; /* Darkened for higher contrast */
    --text-muted: #4a5568; /* Darkened from light grey for better readability */
    --accent: #0056b3; /* Deeper blue for better contrast against light grey */
    
    /* Neumorphism Shadows - Kept soft, but contrast relies on text colors now */
    --neu-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), 
                 -9px -9px 16px rgba(255, 255, 255, 0.5);
    --neu-inner: inset 6px 6px 10px 0 rgba(163, 177, 198, 0.7), 
                 inset -6px -6px 10px 0 rgba(255, 255, 255, 0.8);
                 
    /* Glassmorphism - Switched to a darker "smoked" glass for readable text */
    --glass-bg: rgba(15, 23, 42, 0.65); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-blur: blur(12px);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

/* --- Typography --- */
h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}

h1 { font-size: 4.5rem; line-height: 1.1; }
h2 { font-size: 3rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { font-weight: 500; color: var(--text-muted); }

/* --- Navigation (Glassmorphism) --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    /* Nav keeps a lighter glass so it blends with the page when scrolling */
    background: rgba(224, 229, 236, 0.85); 
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
}

.logo {
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* --- Hero Section (Glassmorphism) --- */
.hero {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1438032005730-c779502df39b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 5rem 4rem;
    text-align: center;
    max-width: 900px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Added strict white colors and text shadows for high contrast over images */
.glass-panel h1, 
.glass-panel h2, 
.glass-panel p, 
.glass-panel span {
    color: #ffffff !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.glass-panel h1 {
    margin-bottom: 1rem;
}

.glass-panel p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* --- Neumorphic Elements & Layout --- */
.container {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.neu-card {
    background-color: var(--bg-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--neu-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.neu-card:hover {
    transform: translateY(-5px);
}

.neu-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--neu-inner);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--bg-color);
    box-shadow: var(--neu-shadow);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    color: var(--accent);
}

.btn:active {
    box-shadow: var(--neu-inner);
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* --- Form Styles (For Registration Page) --- */
.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group > label {
    display: block;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.required {
    color: #d63031;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    background-color: var(--bg-color);
    box-shadow: var(--neu-inner);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Darker placeholders for readability */
::placeholder {
    color: #718096;
    opacity: 1;
    font-weight: 500;
}

.form-control:focus {
    box-shadow: inset 8px 8px 12px 0 rgba(163, 177, 198, 0.9), 
                inset -8px -8px 12px 0 rgba(255, 255, 255, 1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}

.option-label input[type="checkbox"],
.option-label input[type="radio"] {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    accent-color: var(--accent);
    cursor: pointer;
}

.inline-input {
    border: none;
    border-bottom: 2px solid #718096;
    background: transparent;
    margin-left: 10px;
    padding: 0.2rem 0.5rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    font-weight: 600;
    outline: none;
    width: 200px;
}

.inline-input:focus {
    border-bottom-color: var(--accent);
}

/* --- Validation Error Styles --- */
.error-message {
    color: #d63031;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 0.5rem;
    display: none; /* Hidden by default */
}

/* When an input fails validation, we apply this class via JavaScript */
.form-control.input-error {
    border: 2px solid #d63031;
    box-shadow: inset 4px 4px 8px 0 rgba(214, 48, 49, 0.1), 
                inset -4px -4px 8px 0 rgba(255, 255, 255, 0.8);
}

/* --- Footer --- */
footer {
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--neu-inner);
    margin-top: 4rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .glass-panel { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    
    /* 1. Prevent the fixed header from overlapping top content */
    .hero { padding-top: 6rem; height: auto; min-height: 100vh; padding-bottom: 4rem; }
    
    /* 2. Force fonts to shrink on mobile (overrides inline HTML styles) */
    h1, .glass-panel h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    .glass-panel h2 { font-size: 1.2rem !important; }
    
    /* 3. Drastically shrink padding so content stays on screen */
    .glass-panel { padding: 2rem 1.5rem !important; width: 92%; margin: 0 auto; }
    .neu-card { padding: 2rem 1.2rem !important; width: 100%; box-sizing: border-box; }
    
    /* 4. Stack the Date/Time/Venue details vertically so they don't get squished */
    .glass-panel div[style*="display: flex"] { 
        flex-direction: column; 
        gap: 1.5rem !important; 
    }
    
    /* 5. Fix the 'Other' form inputs so they drop to a new line */
    .inline-input { 
        width: 100%; 
        margin-left: 0; 
        margin-top: 0.5rem; 
        display: block;
    }
    
    /* --- Mobile Menu Settings --- */
    .burger { display: block; }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: var(--glass-bg); 
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        width: 100%;
        border-radius: 24px;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        display: none; 
        gap: 1.5rem;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    }
    
    .nav-links a { color: #ffffff; } 
    .nav-links.nav-active { display: flex; } 
    
    /* Burger Animation into an 'X' */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--accent); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--accent); }
}

/* --- Navigation (Glassmorphism) --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(224, 229, 236, 0.85); 
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    position: relative;
}

/* Updated Logo Styling */
.logo img {
    height: 100px; /* Adjust this to make your logo bigger/smaller */
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hamburger Menu Styling */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* --- Responsive Media Queries (Updated for Mobile Menu) --- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .glass-panel { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .glass-panel { padding: 3rem 1.5rem; }
    .neu-card { padding: 2rem 1.5rem; }
    
    /* Mobile Menu Settings */
    .burger { display: block; }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: var(--glass-bg); /* Dark smoked glass */
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        width: 100%;
        border-radius: 24px;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        display: none; /* Hidden by default */
        gap: 1.5rem;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    }
    
    .nav-links a { color: #ffffff; } /* Make text white on mobile menu */
    
    .nav-links.nav-active { display: flex; } /* Shows menu when toggled */
    
    /* Burger Animation into an 'X' */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--accent); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--accent); }
}

/* --- Custom Popup Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Darkened transparent background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensures it sits on top of everything */
}

.modal-content {
    max-width: 400px;
    width: 90%;
    padding: 3rem 2rem;
    animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Loading Spinner --- */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(0, 86, 179, 0.2); /* Faded version of your accent blue */
    border-top: 6px solid var(--accent); /* Solid accent blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.Phone-Number{
    color: var(--accent);
    transition: all 0.3s ease;
}

.Phone-Number:hover{
    color: #003d82;
    transition: all 0.3s ease;
}
/* --- Enhanced Admin Dashboard & Table Styles --- */
.table-container {
    overflow-x: auto;
    background-color: var(--bg-color);
    border-radius: 20px;
    box-shadow: var(--neu-shadow);
    margin-top: 2rem;
    max-height: 600px; /* Enables vertical scrolling */
    position: relative;
}

/* Custom Neumorphic Scrollbar for the table */
.table-container::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}
.table-container::-webkit-scrollbar-track {
    background: rgba(0, 86, 179, 0.05);
    border-radius: 10px;
    margin: 10px;
}
.table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 86, 179, 0.3);
    border-radius: 10px;
}
.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.neu-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap; /* Keeps columns neat */
}

/* Sticky Header */
/* Sticky Header with Grid Lines */
.neu-table thead th {
    position: sticky;
    top: 0;
    background-color: #e0e5ec;
    color: var(--accent);
    font-weight: 900;
    padding: 1.2rem 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 10;
    border: 1px solid rgba(163, 177, 198, 0.6); /* Adds the vertical and horizontal lines */
}

/* Table Cells with Grid Lines */
.neu-table td {
    padding: 1.2rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 200px; 
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(163, 177, 198, 0.4); /* Adds the vertical and horizontal lines */
}

.neu-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.4); 
    cursor: pointer; /* Makes the mouse look like a clicking finger */
}

/* Status Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-yes {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}
.badge-no {
    background-color: rgba(214, 48, 49, 0.15);
    color: #d63031;
}

/* Stat Card */
.stat-card {
    background-color: var(--bg-color);
    box-shadow: var(--neu-inner);
    border-radius: 15px;
    padding: 1.5rem;
    display: inline-block;
    min-width: 250px;
}
.stat-card h3 { font-size: 2.5rem; color: var(--accent); margin-bottom: 0; }
.stat-card p { text-transform: uppercase; font-weight: 800; font-size: 0.8rem; margin-top: 0; }

