body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 40px 0;
    background-color: #f5f5f5;
    color: #1F1F1F;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 80px; /* Prostor pro patičku */
    overflow-x: hidden;
    width: 100%;
}

.content-wrapper {
    margin: 0 auto;
    padding: 0;
    position: relative;
    width: 95%;
    max-width: 1600px;
}

.header-section {
    text-align: right;
    margin-bottom: 10px;
}

h1 {
    color: #1F6F75;
    margin-bottom: 5px;
    font-weight: 800;
    font-size: 2em;
}

.subtitle {
    color: #666;
    font-size: 0.8em;
    margin: 0;
}

h2 {
    color: #1F1F1F;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 0;
}

.container {
    display: flex;
    gap: 24px;
    margin: 0 auto;
    width: 100%;
    background: transparent;
    padding: 0;
}

.calendar-section, .slots-section, .booking-section {
    flex: 1;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: auto;
    box-sizing: border-box;
}

.calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    margin-top: 20px;
}

.calendar th {
    padding: 12px;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9em;
}

.calendar td {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    position: relative;
    transition: all 0.2s ease;
}

.calendar td:hover:not(.disabled):not(.other-month) {
    background: rgba(31, 111, 117, 0.15);
    border-radius: 50%;
    color: #1F6F75;
}

.calendar td.selected {
    background: #1F6F75;
    color: white;
    border-radius: 50%;
}

.calendar td.today {
    font-weight: bold;
    border: 2px solid #1F6F75;
    border-radius: 50%;
}

.calendar td.other-month {
    color: #adb5bd;
}

.calendar td.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.calendar td.disabled:hover {
    background-color: #f5f5f5;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 12px;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.slot {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    background-color: #FFFFFF;
    color: #1F1F1F;
    transition: all 0.2s ease;
    font-weight: 500;
}

.slot.selected {
    background-color: #1F6F75;
    color: #FFFFFF;
    border-color: #1F6F75;
}

.slot:hover {
    background-color: #1F6F75;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(31, 111, 117, 0.1);
}

.booking-section {
    flex: 1;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    transition: all 0.3s ease;
}

.booking-section.inactive {
    opacity: 0.6;
    pointer-events: none;
}

.booking-section.inactive::after {
    content: "Nejdříve prosím vyberte termín";
    display: block;
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-size: 0.9em;
    font-style: italic;
}

.booking-form {
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1F1F1F;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1F6F75;
    box-shadow: 0 0 0 3px rgba(31, 111, 117, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', sans-serif;
}

button {
    padding: 12px 24px;
    background-color: #1F6F75;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #185458;
    transform: translateY(-1px);
}

.calendar-nav button {
    padding: 8px 16px;
    font-size: 14px;
    background-color: rgba(31, 111, 117, 0.1);
    border: none;
    color: #1F6F75;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav button:hover {
    background-color: rgba(31, 111, 117, 0.2);
}

.no-slots {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-style: normal;
    background: #f8fafc;
    border-radius: 12px;
}

@media (max-width: 1240px) {
    .container,
    .booking-form {
        max-width: calc(100% - 40px);
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0;
        gap: 16px;
        min-width: 0; /* Zabrání přetékání flex kontejneru */
    }
    
    .content-wrapper {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .calendar-section, .slots-section, .booking-section {
        width: 100%;
        padding: 15px;
        min-width: 0;
        max-width: 100%;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .calendar td {
        padding: 8px;
        width: 30px;
        height: 30px;
    }

    .slot {
        padding: 10px;
    }

    input, textarea {
        padding: 10px;
    }

    button {
        width: 100%;
        padding: 10px 20px;
    }

    .calendar {
        border-spacing: 2px;
    }

    .calendar-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    #currentMonth {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 0;
    }

    .content-wrapper {
        padding: 0 10px;
    }

    .calendar td {
        padding: 6px;
        width: 20px;
        height: 20px;
        font-size: 0.9em;
    }

    .calendar th {
        padding: 8px;
        font-size: 0.8em;
        white-space: nowrap;
    }

    .calendar-section, .slots-section, .booking-section {
        padding: 10px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.secondary-button {
    background-color: #e2e8f0;
    color: #1F1F1F;
}

.secondary-button:hover {
    background-color: #cbd5e1;
}

.duration-selector {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.duration-selector h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.duration-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.duration-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.duration-btn:hover {
    border-color: #1F6F75;
    color: #1F6F75;
}

.duration-btn.active {
    background-color: #1F6F75;
    color: white;
    border-color: #1F6F75;
}

footer {
    display: none;
}