body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

h1 {
    color: white;
}

.form-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#search {
    margin: 20px;
    width: 50%;
}

button {
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #5a67d8;
}

#eventList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.event-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    margin: 0;
}

.event-card p {
    margin: 5px 0;
    color: #555;
}

.event-actions {
    margin-top: 10px;
}

.event-actions button {
    margin-right: 5px;
    padding: 6px 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.add-btn {
    background: #28a745;
    margin: 20px;
}
.dark {
    background: #121212;
    color: white;
}

.dark .event-card {
    background: #1e1e1e;
    color: white;
}

.dark input {
    background: #333;
    color: white;
    border: none;
}

button {
    transition: 0.2s;
}

button:hover {
    transform: scale(1.05);
}

.header {
    color: white;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.stats div {
    background: rgba(255,255,255,0.2);
    padding: 10px 15px;
    border-radius: 8px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    display: none;
}
.tag {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: white;
}

.tech { background: #007bff; }
.cultural { background: #e83e8c; }
.sports { background: #28a745; }

.loader {
    display: none;
    border: 4px solid #fff;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
