/* Základní styl tlačítka */
.date-picker-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.date-picker-button:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.date-picker-button.selected {
    background-color: #4CAF50;
}

/* Overlay pro popup */
.date-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.date-picker-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup kontejner */
.date-picker-popup {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.date-picker-overlay.active .date-picker-popup {
    transform: translateY(0);
}

/* Popup header */
.date-picker-header {
    background-color: var(--color-secondary);
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Navigace kalendáře */
.date-picker-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.date-picker-month {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
}

.date-picker-nav-buttons button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--color-secondary);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.date-picker-nav-buttons button:hover {
    background-color: rgba(74, 110, 224, 0.1);
}

/* Dny v týdnu */
.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px 15px;
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-secondary);
}

/* Kalendářní dny */
.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 15px;
}

.date-picker-day {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.date-picker-day:hover:not(.disabled):not(.selected) {
    background-color: #f1f3f5;
}

.date-picker-day.disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

.date-picker-day.available {
    background-color: rgba(74, 110, 224, 0.1);
    color: var(--color-secondary);
    font-weight: 500;
}

.date-picker-day.selected {
    background-color: var(--color-secondary);
    color: white;
    font-weight: 600;
}

.date-picker-day.other-month {
    color: #aaa;
    background-color: transparent;
}

/* Výběr času */
.date-picker-time {
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.date-picker-time-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-secondary);
    text-align: center;
}

.date-picker-times {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.date-picker-time-slot {
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.date-picker-time-slot:hover:not(.selected) {
    background-color: #e9ecef;
}

.date-picker-time-slot.selected {
    background-color: #4CAF50;
    color: white;
    font-weight: 500;
    border-color: #4CAF50;
}

/* Tlačítko potvrzení */
.date-picker-confirm {
    display: block;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.date-picker-confirm:hover {
    background-color: var(--color-secondary-hover);
}