:root { 
    --navy: #001f3f; 
    --white: #ffffff; 
    --green: #28a745; 
    --gray: #6c757d; 
    --red: #ff4d4d; 
}

body { 
    font-family: -apple-system, system-ui, sans-serif; 
    background-color: var(--navy); 
    color: var(--white); 
    margin: 0; 
    padding: 10px; 
    -webkit-text-size-adjust: 100%; 
}

.form-container { 
    width: 100%; 
    max-width: 900px; 
    margin: auto; 
    background: rgba(255,255,255,0.1); 
    padding: 20px; 
    border-radius: 12px; 
    box-sizing: border-box; 
}

.form-header { 
    display: table; 
    width: 100%; 
    margin-bottom: 20px; 
    table-layout: fixed; 
}

.header-title { 
    display: table-cell; 
    vertical-align: middle; 
    text-align: left; 
}

.header-logo { 
    display: table-cell; 
    vertical-align: middle; 
    text-align: right; 
    width: 90px; 
}

.header-logo img { 
    max-width: 100%; 
    height: auto; 
    max-height: 75px; 
    display: inline-block; 
}

h2 { 
    text-transform: uppercase; 
    margin: 0; 
    letter-spacing: 1px; 
    font-size: 32px; 
}

@media (max-width: 480px) { 
    h2 { font-size: 20px; } 
    .header-logo { width: 70px; } 
}

.grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.datetime-row { 
    display: grid; 
    grid-template-columns: 2fr 1.2fr 2fr 1.2fr; 
    gap: 15px; 
    grid-column: span 2; 
}

@media (max-width: 750px) { 
    .grid { grid-template-columns: 1fr; }
    .datetime-row { 
        grid-template-columns: 1fr 1fr; 
        grid-column: span 1; 
    } 
}

@media (max-width: 480px) {
    .datetime-row { 
        grid-template-columns: 1fr; 
        gap: 12px;
    }
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
}

.full-width { 
    grid-column: span 2; 
}

@media (max-width: 750px) { 
    .full-width { grid-column: span 1; } 
}

label { 
    margin-bottom: 5px; 
    font-weight: bold; 
    font-size: 0.85em; 
    opacity: 0.9; 
}

input, textarea, select { 
    padding: 12px; 
    border-radius: 6px; 
    border: none; 
    background: #fff; 
    color: #000; 
    font-size: 16px; 
    width: 100%; 
    box-sizing: border-box; 
    min-width: 0; 
    max-width: 100%; 
}

input[readonly] { 
    background: #e9ecef; 
    color: #495057; 
    cursor: not-allowed; 
}

.checkbox-section { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 12px; 
    background: rgba(255,255,255,0.05); 
    padding: 15px; 
    border-radius: 8px; 
}

.checkbox-item { 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
}

.checkbox-item input { 
    width: 26px; 
    height: 26px; 
    margin-right: 12px; 
    cursor: pointer; 
    flex-shrink: 0;
}

/* Nové styly pro části stadionu podle verze 1.2 */
.span-full-row {
    grid-column: span 2;
}

.alert-color {
    color: #ffc107;
}

@media (max-width: 480px) {
    .span-full-row {
        grid-column: span 1;
    }
}

.repeat-trigger-zone { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 15px; 
    background: rgba(255,255,255,0.12); 
    padding: 15px; 
    border-radius: 8px; 
}

.repeat-date-inline { 
    display: none; 
    align-items: center; 
    gap: 10px; 
}

.repeat-date-inline input { 
    width: auto; 
    min-width: 170px; 
    padding: 8px 12px; 
    font-size: 15px; 
}

@media (max-width: 550px) { 
    .repeat-trigger-zone { flex-direction: column; align-items: flex-start; } 
    .repeat-date-inline { width: 100%; justify-content: space-between; } 
    .repeat-date-inline input { width: 100%; } 
}

.repeat-section { 
    display: none; 
    background: rgba(255,255,255,0.08); 
    padding: 15px; 
    border-radius: 0 0 8px 8px; 
    border: 1px solid rgba(255,255,255,0.2); 
    border-top: none; 
    margin-top: -4px; 
}

.days-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); 
    gap: 10px; 
    margin-top: 10px; 
}

.day-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background: rgba(0,0,0,0.2); 
    padding: 10px; 
    border-radius: 6px; 
    cursor: pointer; 
}

.day-item input { 
    width: 22px; 
    height: 22px; 
    margin-top: 5px; 
    cursor: pointer; 
}

.button-group { 
    display: flex; 
    gap: 10px; 
    margin-top: 25px; 
    align-items: center; 
}

button { 
    flex: 2; 
    padding: 18px; 
    background-color: var(--green); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 19px; 
    font-weight: bold; 
    cursor: pointer; 
}

.btn-close { 
    flex: 1; 
    background-color: var(--gray); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    padding: 18px; 
    font-weight: bold; 
    cursor: pointer; 
    text-align: center; 
}

#status { 
    display: none; 
    margin-top: 15px; 
    padding: 15px; 
    background: var(--green); 
    border-radius: 6px; 
    text-align: center; 
    font-weight: bold; 
}

#error-msg { 
    display: none; 
    color: var(--red); 
    font-weight: bold; 
    text-align: center; 
    margin-bottom: 15px; 
    padding: 10px; 
    border: 1px solid var(--red); 
    border-radius: 6px; 
}