:root {
    --primary-color: #AF9044;
    --secondary-color: #34495E;
    --accent-color: #3498DB;
    --light-gray: #ECF0F1;
    --white: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --success-color: #27AE60;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 2px 0 0 0;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box,
.filter-box {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

    .search-box .material-icons-round,
    .filter-box .material-icons-round {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-secondary);
        font-size: 18px;
        z-index: 1;
        pointer-events: none;
    }

#searchInput,
#dateFilter,
#locationFilter {
    width: 100%;
    height: 45px;
    padding: 0 1rem 0 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
    line-height: 45px;
}

    #searchInput:focus,
    #dateFilter:focus,
    #locationFilter:focus {
        outline: none;
        box-shadow: 0 2px 15px rgba(52, 152, 219, 0.2);
    }

.schedule-table {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem;
}

.header-cell {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px;
    font-weight: 500;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

    .header-cell .material-icons-round {
        font-size: 16px;
        opacity: 0.9;
    }

    .header-cell:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        margin-right: 0.5rem;
        padding-right: 0.5rem;
    }

.sort-icon {
    position: absolute;
    right: 5px;
    font-size: 16px !important;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.header-cell:hover .sort-icon {
    opacity: 0.8;
}

.event-row {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    padding: 0.8rem;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background-color 0.3s;
}

    .event-row:hover {
        background-color: #f5f5f5;
    }

.event-cell {
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .event-cell:first-child {
        min-width: 0;
        overflow: hidden;
    }

.date-text {
    font-weight: 500;
    font-size: 0.85rem;
}

.badges-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.time-badge {
    line-height: 1.4;
    padding: 0.4rem 0.8rem;
    text-align: center;
    white-space: normal;
    border-radius: 12px;
    font-size: 16px;
}

    .time-badge br {
        display: block;
        content: "";
        margin: 5px 0;
    }

    .time-badge time {
        font-size: 22px;
        font-weight: 500;
        display: block;
    }

    .time-badge.day-11 {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    .time-badge.day-12 {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

    .time-badge.day-13 {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
    }

.status-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

    .status-badge.featured {
        background: rgba(46, 204, 113, 0.1);
        color: #2ecc71;
    }

    .status-badge.main-event {
        background: rgba(155, 89, 182, 0.1);
        color: #9b59b6;
    }

.day-20,
.day-21,
.day-22 {
    color: inherit;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-box {
        width: 100%;
    }

    .table-header,
    .event-row {
        grid-template-columns: 2fr 3fr 1fr;
        font-size: 0.9rem;
    }

    .header-cell,
    .event-cell {
        padding: 0.5rem;
        min-width: 0;
        overflow: hidden;
    }

    .time-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1.2rem;
    }

    #searchInput,
    #dateFilter,
    #locationFilter {
        height: 40px;
        line-height: 40px;
        font-size: 0.95rem;
    }
}

.material-icons-round {
    font-size: 20px;
}

.logo .material-icons-round {
    font-size: 2.5rem;
}

.event-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .event-title-container .event-title {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        margin: 0;
    }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 30px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px;
    padding-bottom: 0px;
    text-align: right;
}

.close-modal {
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    font-size: 28px;
}

    .close-modal:hover {
        color: #333;
    }

.modal-body {
    padding: 0 30px 30px 30px;
}

.event-detail-header {
    text-align: center;
    margin-bottom: 10px /*30px*/;
}

.event-status {
    /*margin-bottom: 15px;*/
    margin-bottom: 5px;
}

.event-detail-header .event-title {
    font-size: 2rem;
    color: var(--primary-color);
    /*margin: 0 0 15px 0;*/
    margin: 0 0 5px 0;
}

.event-datetime, .event-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    margin: 8px 0;
}

    .event-datetime .material-icons-round,
    .event-location .material-icons-round {
        color: var(--accent-color);
    }

.event-detail-content {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 25px;
    padding: 8px 25px 8px 25px;
}

.detail-section {
    margin-bottom: 5px;
}

    .detail-section h3 {
        color: var(--primary-color);
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 5px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.languages,
.mods, .participants {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}


.info-item .material-icons-round {
    color: var(--accent-color);
    font-size: 24px;
}

.info-content h4 {
    margin: 0 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 15px;
        width: auto;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 0 15px 15px 15px;
    }
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

#modalParticipants {
    padding: 0 0 0 0;
}

@media (max-width: 768px) {
    .table-header, .event-row {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 0.9rem;
    }
}
