:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #475569;
    --accent: #f59e0b;
    --background: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --success: #22c55e;
    --error: #ef4444;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --modal-overlay: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Event Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.event-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-type {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.event-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.event-meta i {
    color: var(--primary);
}

/* Add Event Form */
.add-event-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.add-event-button:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-submit {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-submit:hover {
    background: var(--primary-dark);
}

/* Stats Section */
.stats {
    background: var(--white);
    padding: 4rem 0;
    margin-top: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    color: var(--white);
    font-weight: 500;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--error);
}

.event-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.delete-btn {
    background-color: var(--error);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background-color: #dc2626;
}

.delete-btn i {
    font-size: 0.875rem;
}

.dashboard-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    height: 100%;
}

.dashboard-button:hover {
    background-color: #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-button i {
    margin-right: 0.75rem;
    color: var(--primary);
} n i {
    margin-right: 0.75rem;
    color: var(--primary);
} 

/* Mobile Responsive for Header */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
        min-height: auto;
        height: auto;
    }
    
    .header-content {
        padding: 0 1rem;
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.4rem 0;
        min-height: auto;
        height: auto;
    }
    
    .header-content {
        padding: 0 0.75rem;
        min-height: auto;
        height: auto;
    }
} 
        max-height: 40px;
    }
    
    .header-content {
        padding: 0 0.75rem;
        min-height: 40px;
        height: 40px;
        max-height: 40px;
    }
} 