@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* Default body font */
}

:root {
    --primary-color: #FF5A5F;
    /* Coral Red from screenshot */
    --secondary-color: #FF5A5F;
    /* Unifying primary/secondary for now unless needed */
    --text-color: #222222;
    /* darker black */
    --light-bg: #FFFFFF;
    /* White background as per screenshot */
    --white: #ffffff;
    --gray: #717171;
    /* lighter gray for subtext */
    --border-color: #DDDDDD;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
    --radius-btn: 8px;
    /* Slightly less rounded than pill */
    --radius-card: 12px;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
.logo,
.btn {
    font-family: 'Outfit', sans-serif;
    /* Headings font */
}

/* Navigation */
.navbar {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    padding: 0.8rem 5% !important;
    background-color: var(--white);
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100% !important;
}

.logo {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap !important;
}

.logo-circle,
#userAvatar {
    background: var(--primary-color) !important;
    color: white !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    cursor: pointer;
    flex-shrink: 0 !important;
}

#userProfile {
    display: none;
    /* Controlled by JS */
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

#logoutBtn {
    background: white !important;
    border: 1px solid #ddd !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    color: var(--text-color) !important;
    flex-shrink: 0 !important;
}

#logoutBtn:hover {
    background: #f8fafc;
    border-color: #999;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    list-style: none !important;
    align-items: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
    justify-self: center !important;
}

.nav-links a {
    text-decoration: none !important;
    color: var(--text-color) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: color 0.2s !important;
}

.nav-links a:hover {
    color: var(--primary-color) !important;
}

.create-event-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
    font-family: 'Outfit', sans-serif !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.create-event-btn:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    justify-self: end !important;
}

.mobile-menu-btn {
    display: none !important;
}

#authLinks {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.login-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap !important;
}



.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 5%;
    border-top: 1px solid #eee;
}

.footer-section {
    flex: 1;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 991px) {
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.6rem 4% !important;
    }

    .nav-links {
        display: none !important;
        /* Managed via .active in media query below */
    }

    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 4% !important;
    }

    .nav-links.active {
        display: flex !important;
        position: absolute !important;
        top: 70px !important;
        right: 5% !important;
        width: 200px !important;
        background: white !important;
        flex-direction: column !important;
        padding: 5px !important;
        border-radius: 16px !important;
        border: 1px solid #eee !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        z-index: 1001 !important;
        gap: 0 !important;
    }

    .nav-links li {
        width: 100% !important;
        border-bottom: 1px solid #f8fafc !important;
    }

    .nav-links li:last-child {
        border-bottom: none !important;
    }

    .nav-links li a {
        display: block !important;
        padding: 12px 15px !important;
        text-align: center !important;
        border-radius: 8px !important;
        color: var(--text-color) !important;
        font-weight: 600 !important;
    }

    .nav-links li a:hover {
        background: #f8fafc !important;
        color: var(--primary-color) !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        font-size: 1.1rem !important;
        color: var(--text-color) !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }



    .category-buttons {
        gap: 0.8rem;
        padding: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .category-buttons::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0 !important;
        padding: 0.6rem 1.4rem !important;
    }
}

@media screen and (max-width: 640px) {


    .logo-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .logo {
        font-size: 1.1rem !important;
    }

    .create-event-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 8px !important;
    }

    .event-card {
        border-radius: 16px !important;
    }

    .event-image-container {
        height: 350px !important; /* Extremely tall portrait ratio */
    }

    .event-content {
        padding: 10px !important;
    }

    .event-title {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }

    .event-info-row {
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
    }

    .creator-row {
        margin: 8px 0 !important;
        font-size: 0.75rem !important;
        gap: 5px !important;
    }

    .creator-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        align-items: stretch !important;
    }

    .btn-book,
    .btn-icon {
        padding: 6px 0 !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }

    .event-card-grid,
    .events-container,
    .event-list {
        padding: 0 !important;
    }

    .modal-content {
        padding: 1.5rem !important;
        width: 95% !important;
    }

    .footer-content {
        gap: 2rem !important;
    }
}

/* Footer & Global Tweaks */
.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

/* Categories */
.categories {
    padding: 2rem 5%;
}

/* Event Card Badge & Icons */
.card-badge-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.card-icon-save {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.2s;
}

.card-icon-save:hover {
    transform: scale(1.1);
}

/* Card Content Layout */
.event-info-row {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.2;
}

/* Creator Row */
.creator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.creator-avatar {
    width: 32px;
    height: 32px;
    background-color: #ddd;
    /* Default fallback */
    color: #222;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.creator-row strong {
    color: var(--text-color);
    /* Name is black */
    font-weight: 600;
}

/* Action Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-book {
    flex: 2;
    padding: 6px 0;
    /* Slightly taller */
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Slightly less rounded */
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.btn-book:hover {
    border-color: var(--text-color);
    background: #fafafa;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    background: white;
    /* Changed from gray to white */
    border: 1px solid #e2e8f0;
    /* Added border */
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-icon:hover {
    border-color: var(--text-color);
    background: #fafafa;
}

/* Categories */
.categories h2 {
    font-size: 2rem;
    color: var(--text-color);
}

.category-btn {
    padding: 0.8rem 1.8rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    /* Pill */
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Events Grid */
/* Global strictly enforced 5-column layout */
.events-container {
    padding: 5px 10px !important;
    max-width: 1500px !important;
    margin: 0 auto;
}

.events-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 12px !important;
    justify-content: center;
}

/* Responsive Grid Adapters (Everywhere) */
@media (max-width: 1550px) {
    .events-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 1350px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Laptop minimum and Tablet/Phone view: strictly 2 events per row */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

.sort-select {
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

.event-card {
    background: var(--white);
    border-radius: 24px;
    /* More rounded */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.event-image-container {
    overflow: hidden;
    height: 350px; /* Extremely tall portrait ratio */
    position: relative;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
    /* Zoom effect */
}

.event-content {
    padding: 0.8rem;
}

.event-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

.event-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    /* Light purple bg */
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-details {
    gap: 0.8rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.event-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -1px;
}

.share-btn,
.chat-btn,
.save-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
    color: var(--gray);
    box-shadow: var(--shadow-sm);
}

/* Event Card Footer */
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

/* Event Detail Items */
.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-detail-item i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0 5%;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-left,
.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.saved-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.saved-checkbox input {
    accent-color: var(--secondary-color);
    width: 1.1rem;
    height: 1.1rem;
}

/* Category Buttons Container (Horizontal Scroll) */
/* Strictly Grid-Aligned Category Flow */
.category-flow-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.category-flow-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: flow-left-grid 35s linear infinite;
    flex-wrap: nowrap;
}

.category-flow-marquee:hover .category-flow-track {
    animation-play-state: paused;
}

@keyframes flow-left-grid {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.category-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
}

.share-btn:hover,
.chat-btn:hover,
.save-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.chat-btn {
    background: #f8fafc;
    /* Reset specific chat btn color to generic */
}


.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.upload-area {
    border: 2px dashed #ddd;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.image-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Skeleton Loader */
.skeleton {
    background: #e0e0e0;
    border-radius: 4px;
    animation: skeleton-loading 1.2s infinite ease-in-out;
}

@keyframes skeleton-loading {
    0% {
        background-color: #e0e0e0;
    }

    50% {
        background-color: #f5f5f5;
    }

    100% {
        background-color: #e0e0e0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 400px;
}

.skeleton-image {
    width: 100%;
    height: 220px;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-text {
    height: 15px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-text.short {
    width: 40%;
}

/* =========================================
   Global Smooth Animations & Scroll Reveal 
   ========================================= */

/* Base Reveal Class - Hidden by default */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Active State - Triggered by JS */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Children */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Smooth Section Loading */
body {
    animation: pageFadeIn 0.8s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.btn:hover,
.btn-book:hover,
.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .events-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* --- Standard Footer System - Redesign to match screenshot exactly --- */
.main-footer {
    background-color: #ffffff !important;
    padding: 60px 8% 40px !important;
    border-top: 1px solid #eeeeee !important;
    color: #4b5563 !important;
    width: 100% !important;
    margin-top: 40px !important;
    position: relative !important;
    z-index: 10 !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-bottom: 50px !important;
}

.footer-section h3 {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    text-transform: none !important;
    font-family: 'Outfit', sans-serif !important;
}

.footer-section p {
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    max-width: 260px !important;
    font-weight: 500 !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.2s !important;
    font-weight: 500 !important;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.social-links {
    display: flex !important;
    gap: 12px !important;
}

.social-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: var(--primary-color) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    box-shadow: 2px 2px 8px rgba(255, 90, 95, 0.4) !important;
    transition: transform 0.2s !important;
    text-decoration: none !important;
}

.social-btn:hover {
    transform: translateY(-3px) !important;
    opacity: 0.9 !important;
}

.copyright-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    text-align: left !important;
    border-top: none !important;
}

.copyright-section p {
    color: #4b5563 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Footer Responsive Overrides */
@media screen and (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media screen and (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .social-links {
        justify-content: flex-start !important;
    }
}

/* --- End Footer System --- */

/* Restored Share Modal Styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.share-modal-content {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 24px !important;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal[style*="display: flex"] .share-modal-content {
    transform: scale(1);
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.share-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.share-option:hover {
    transform: scale(1.1);
}

.facebook-bg {
    background: #1877F2;
}

.twitter-bg {
    background: #1DA1F2;
}

.whatsapp-bg {
    background: #25D366;
}

.link-bg {
    background: var(--secondary-color);
}

.share-url {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    gap: 0.5rem;
}

.share-url input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.share-url button {
    background: var(--text-color);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9 !important;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #e2e8f0 !important;
    transform: rotate(90deg);
}

/* Toast System (Restored) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast-info .toast-icon {
    background: #e0f2fe;
    color: #0284c7;
}

@media screen and (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        grid-template-columns: auto auto !important;
        gap: 15px !important;
    }

    .nav-links {
        display: none !important;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    table {
        min-width: 600px;
    }

    .modal-content {
        padding: 20px !important;
        width: 95% !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 0.8rem 15px !important;
    }

    .logo {
        font-size: 1rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .event-price {
        font-size: 1.5rem !important;
    }

    .toast {
        min-width: calc(100vw - 40px);
        right: 10px;
        left: 10px;
    }

    .btn-google {
        font-size: 14px !important;
        padding: 12px !important;
    }

    .attendee-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 15px 0 !important;
    }

    .upload-area {
        padding: 1.5rem !important;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100% !important;
    }

    /* Target specific form grids used in create-event.html */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}