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

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 25px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 35px;
    font-size: 2.4em;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-section, .events-section, .demo-section {
    background: #fefefe;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.form-section h2, .events-section h2, .demo-section h2 {
    color: #5a67d8;
    margin-bottom: 18px;
    font-size: 1.4em;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.92em;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-section button[type="submit"] {
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.controls button {
    flex: 1;
    font-size: 14px;
    padding: 10px;
}

#eventContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.event-card {
    background: linear-gradient(135deg, #f7f8fc 0%, #e8ecf5 100%);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.event-card h3 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: 700;
}

.event-date {
    color: #718096;
    font-size: 0.88em;
    margin-bottom: 6px;
}

.event-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-description {
    color: #5a6578;
    line-height: 1.6;
    font-size: 0.92em;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    padding: 0; 
}

.delete-btn:hover {
    background: #ff3838;
    transform: none; 
    box-shadow: none;
}

.empty-state {
    text-align: center;
    color: #a0aec0;
    padding: 45px 20px;
    font-size: 1.05em;
    grid-column: 1 / -1;
}

.demo-content {
    background: #f7f8fc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    font-size: 1.15em;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}

.key-highlight {
    color: #5a67d8;
    font-weight: 700;
    font-size: 1.3em;
}