/* Основные стили */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5dc; /* Бежевый фон */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: #6a1b9a; /* Фиолетовый акцент */
}

/* Кнопка "Статистика" */
.statistics-button {
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    background-color: #6a1b9a; /* Фиолетовая кнопка */
    color: #fff;
    font-size: 1em;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

.statistics-button:hover {
    background-color: #4a148c; /* Более темный оттенок */
}

/* Сетка для событий */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Карточка события */
.event {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #eae2f8; /* Нежно-фиолетовый */
    border: 1px solid #d1c4e9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #333;
}

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

/* Заголовок события */
.event-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4a148c; /* Темно-фиолетовый */
}

/* Дата события */
.event-date {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

/* Кнопка Подробнее */
.event-button {
    margin-top: auto;
    text-align: center;
    padding: 10px;
    background-color: #6a1b9a; /* Фиолетовая кнопка */
    color: #fff;
    font-size: 0.9em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.event-button:hover {
    background-color: #4a148c; /* Более темный оттенок */
}

.completed {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}