* {
    box-sizing: border-box;
}

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

#events {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

ul {
    list-style: none;
    padding: 0;
}

#events li {
    list-style: none;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

#events li .countdown {
    display: grid;
    grid-template-areas:
        "title title title"
        "event-date event-date event-date"
        "date date date"
        "date date date"
        "date date date"
        "date date date"
        "description description description";
    gap: 10px;
}

#events li h2 {
    grid-area: title;
    margin: 0;
}

.event-date {
    grid-area: event-date;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #333;
    border-top: 1px solid #333;
    margin: 0;
}

#events li .time-direction {
    grid-area: description;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.time-direction.past {
    background-color: rgb(255, 114, 114);
}

.time-direction.future {
    background-color: rgb(216, 255, 157);
}

#event-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

#event-form input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
}

#event-form input[type="date"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
}

#event-form input[type="submit"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #333;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#event-form input[type="submit"]:hover {
    background-color: #555;
}

/* Storage info styles */
.storage-info {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.cloud-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.local-status {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #2d3436;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.small-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.small-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.local-status .small-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.local-status .small-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Event action buttons */
.event-action {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.event-action:hover {
    background: #0056b3;
}

.event-action:last-child {
    background: #dc3545;
}

.event-action:last-child:hover {
    background: #c82333;
}

/* Mobile version */
@media screen and (max-width: 600px) {
    #timeline {
        display: none;
    }

    .cloud-status,
    .local-status {
        flex-direction: column;
        text-align: center;
    }

    .small-btn {
        margin-top: 10px;
        width: 100%;
    }
}
