/* Common styles for events pages */
.events-container {
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.events-page-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Styles from events_body.html */
.events-actions {
    text-align: right;
    margin-bottom: 20px;
}

.events-section {
    margin-bottom: 30px;
}

.events-section-title {
    font-size: 1.5em;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.event-closed {
    opacity: 0.7;
    background-color: #f5f5f5;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 1.8em;
    color: #333;
    margin: 0 0 8px 0;
}

.event-date {
    font-size: 1.4em;
    color: #777;
    margin: 0;
}

.event-countdown {
    font-size: 1.4em;
    color: #666;
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

.event-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.button-icon {
    background: none;
    border: 1px solid #C7C3BF;
    color: #1a5b9f;
    padding: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.button-icon:hover {
    color: #154a80;
}

.button-danger {
    color: #d9534f;
}

.button-danger:hover {
    color: #c9302c;
}

.events-no-content {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #777;
    font-size: 1.1em;
}

.icon-green {
    color: #28a745;
}

.icon-red {
    color: #dc3545;
}

/* Styles from events_edit_body.html */
.fields2 dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

.fields2 dt {
    flex: 0 0 150px;
    font-weight: bold;
    color: #555;
    padding-right: 10px;
}

.fields2 dd {
    flex: 1;
    margin-left: 0;
}

.inputbox {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}