﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #222;
}

.header-container,
.match-container,
.top-header,
.footer {
    max-width: 900px;
    margin: 0 auto 1rem auto;
}

.header-container {
    margin-top: 2rem;
}

.match-container,
.top-header {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 20px;
    box-sizing: border-box;
}

.footer {
    margin: 0 auto;
    text-align: right;
}

.date-header {
    font-weight: 600;
    font-size: 1rem;
}

    .date-header.weekday {
        color: #000000;
    }

    .date-header.saturday {
        color: #20b2aa;
    }

    .date-header.sunday {
        color: #ff4500;
    }

.liga-block {
    margin-top: 1rem;
}

.liga-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #004080;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: 70px 1.5fr 80px 80px;
    gap: 0 15px;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 2px 0;
}

    .matches-grid:last-child {
        border-bottom: none;
    }

    .matches-grid > div {
        padding: 6px 8px;
        font-size: 1rem;
    }

    .matches-grid > .time {
        font-weight: 500;
        color: #004080;
        text-align: center;
    }

    .matches-grid > .teams {
        font-weight: 400;
        color: #222;
        text-align: left;
    }

        .matches-grid > .teams strong {
            font-weight: 700;
        }

    .matches-grid > .result {
        font-weight: 400;
        color: #444;
        text-align: center;
    }

    .matches-grid > .link a {
        color: #0066cc;
        font-weight: 400;
        text-decoration: none;
    }

        .matches-grid > .link a:hover {
            text-decoration: underline;
        }

/* --- Mobilní zobrazení --- */
@media (max-width: 600px) {
    .match-container,
    .top-header {
        padding: 8px 12px;
    }

    .date-header, 
    .matches-grid > .time, 
    .matches-grid > .link, 
    .matches-grid > .teams, 
    .matches-grid > .result {
        padding: 2px 0;
    }

    .liga-info {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .matches-grid {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0;
        padding: 6px 0;
    }

        .matches-grid > .time {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            text-align: left;
        }

        .matches-grid > .link {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            text-align: right;
        }

        /* 2. řádek: týmy vlevo */
        .matches-grid > .teams {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
            text-align: left;
        }

        /* 2. řádek: výsledek vpravo */
        .matches-grid > .result {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
            text-align: right;
        }
}

/* Bootstrap-inspired button styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 2px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
    line-height: 1.5;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Primary Button */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    color: #fff;
}

.btn-primary:active {
    background-color: #004085;
    border-color: #002752;
}

/* Secondary Button */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

.btn-secondary:active {
    background-color: #545b62;
    border-color: #4e555b;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    margin: 6px 0;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: #adb5bd;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.form-group {
    margin-top: 6px;
    padding: 0 8px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.form-actions {
    margin-top: 12px;
    text-align: left;
}