@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    /*Event Background */
    background: url('event-bg.png?v=3') no-repeat center center fixed;
    background-color: #0a0a0a; /* dark background */
    background-size: cover;
    color: #fdf8f5; /* Light text for dark theme */
    font-size: 18px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
}

.navbar {
    background-color: rgba(5, 5, 10, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding: 18px 40px; /* for edges */
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.15);
    position: absolute;
    top: 0;
    z-index: 100;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    width: 100%;
}

.navbar li:first-child {
    margin-right: auto; /* Pushes the first item (Home) to the far left */
}

.navbar a {
    color: #fdf8f5; /* Light cream */
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #00f3ff; /* Neon cyan */
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Main Container */
.container {
    background-color: rgba(10, 10, 15, 0.85); /* Dark glass for neon contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 243, 255, 0.15); /* Glowing shadow */
    border-radius: 24px; /* More rounded */
    padding: 50px;
    width: 90%;
    max-width: 750px; /* Wider for dashboard feel */
    margin-top: 100px;
    margin-bottom: 50px;
    color: #fdf8f5;
    position: relative;
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 36px;
    color: #00f3ff; /* Neon Cyan */
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5); /* Neon text shadow */
}

.event-count {
    display: inline-block;
    background-color: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: #00f3ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    background-color: rgba(0, 243, 255, 0.05);
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #b026ff 0%, #00f3ff 100%); /* Neon purple to cyan */
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Event List */
.list-section {
    margin-bottom: 30px;
}

.list-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fdf8f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-section ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-section li {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.list-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #b026ff, #00f3ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px #00f3ff;
}

.list-section li:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.2);
    border-color: rgba(0, 243, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.list-section li:hover::before {
    opacity: 1;
}

.event-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.event-date-badge {
    background-color: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    min-width: 65px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

.event-date-month {
    font-size: 11px;
    text-transform: uppercase;
    color: #00f3ff;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

.event-date-day {
    font-size: 22px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-top: 2px;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-title {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.event-time {
    color: #d1d5db;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-delete {
    background-color: transparent;
    color: #ff0055; /* Neon pink for delete */
    border: 1px solid #ff0055;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background-color: #ff0055;
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

/* Past Events specific styling */
.past-event {
    opacity: 0.5;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.past-event:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Mobile Design */
@media (max-width: 480px) {
    .container {
        padding: 25px;
        margin-top: 30px;
    }

    .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .navbar ul {
        gap: 20px;
    }

    .list-section li {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-delete {
        width: 100%;
        text-align: center;
    }
}

/* Grid Pixelate Wipe Animation Styles */
#wipe-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: transparent;
    pointer-events: none;
    overflow: hidden;
}

#wipe-grid {
    position: absolute;
    inset: 0;
    display: grid;
    /* Grid template columns/rows set by JS */
}

.wipe-cell {
    background-color: #050505;
    opacity: 1;
    transition: opacity 0.15s linear;
}

#wipe-scene-a {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #050505 0%, #1a0b2e 48%, #b026ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    gap: 18px;
    text-align: center;
    transition: opacity 0.1s linear;
}

.wipe-subtitle {
    font-size: 18px;
    letter-spacing: 0.4em;
    opacity: 0.72;
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.wipe-title {
    font-size: 96px;
    font-weight: 700;
    letter-spacing: -0.06em;
    text-shadow: 0 0 20px rgba(176, 38, 255, 0.6);
}