/* ========================================
   CALENDAR MODAL - Přidat událost
   Komponenta (BEM, MOBILE FIRST)
   ======================================== */

.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.calendar-modal__inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-modal__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.calendar-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
}

.calendar-modal__close:hover {
    color: #374151;
}

.calendar-modal__body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.calendar-modal__field {
    margin-bottom: 16px;
}

.calendar-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.calendar-modal__input,
.calendar-modal__select,
.calendar-modal__textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #1a1a2e;
    background: #fff;
    box-sizing: border-box;
}

.calendar-modal__textarea {
    resize: vertical;
    min-height: 60px;
}

.calendar-modal__input:focus,
.calendar-modal__select:focus,
.calendar-modal__textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.calendar-modal__hint {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Typ akce - výběr tlačítky */
.calendar-modal__type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.calendar-modal__type-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.calendar-modal__type-btn:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.calendar-modal__type-btn--active {
    border-color: #f97316;
    background: #fff7ed;
    color: #ea580c;
    font-weight: 600;
}

.calendar-modal__type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-modal__type-dot--health {
    background: #22c55e;
}

.calendar-modal__type-dot--heat {
    background: #ec4899;
}

.calendar-modal__type-dot--show {
    background: #3b82f6;
}

.calendar-modal__type-dot--exam {
    background: #8b5cf6;
}

.calendar-modal__type-dot--litter {
    background: #f97316;
}

.calendar-modal__type-dot--other {
    background: #6b7280;
}

/* Připomínka */
.calendar-modal__reminder-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-modal__reminder-select {
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    background: #fff;
}

.calendar-modal__reminder-select:focus {
    outline: none;
    border-color: #f97316;
}

.calendar-modal__reminder-label {
    font-size: 13px;
    color: #6b7280;
}

/* Akce */
.calendar-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
}

.calendar-modal__cancel {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #6b7280;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.calendar-modal__cancel:hover {
    background: #e5e7eb;
}

.calendar-modal__submit {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #f97316;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.calendar-modal__submit:hover {
    background: #ea580c;
}

/* ----------------------------------------
   DESKTOP (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
    .calendar-modal__type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
