/* =============================================
   OT-MOBILE-FP.CSS — Modal fullscreen calendar pe mobil + toast
   =============================================
   Folosit de:
    - ot-mobile-fp.js (logica)
    - part-mobile-fp-modal.php (markup)
   Inclus global din scripts.php
   z-index 1000010 — DEASUPRA tuturor modalelor existente (search-modal e 99999)
   ============================================= */

.ot-fp-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000010;
    background: #fff;
    display: flex;
    flex-direction: column;
    animation: otFpFadeIn 0.18s ease-out;
}
.ot-fp-overlay[hidden] { display: none; }
@keyframes otFpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
body.ot-fp-modal-open { overflow: hidden; }

/* Header (sticky sus): X stanga, titlu centru */
.ot-fp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ot-fp-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.ot-fp-close:hover, .ot-fp-close:active { background: #e2e8f0; }
.ot-fp-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
    text-align: center;
    flex: 1;
}
.ot-fp-spacer { width: 40px; }

/* Body (scroll mijloc): contine calendarul flatpickr */
.ot-fp-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f8fafc;
    -webkit-overflow-scrolling: touch;
}
.ot-fp-body .flatpickr-calendar {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 !important;
}
.ot-fp-body .flatpickr-calendar.open {
    display: block !important;
}
.ot-fp-body .flatpickr-calendar::before,
.ot-fp-body .flatpickr-calendar::after {
    display: none !important;
}
.ot-fp-body .flatpickr-day {
    height: 56px !important;
    line-height: 56px !important;
    font-size: 1rem !important;
    max-width: none !important;
    flex-basis: 14.28% !important;
}
.ot-fp-body .flatpickr-day.selected,
.ot-fp-body .flatpickr-day.startRange,
.ot-fp-body .flatpickr-day.endRange {
    background: #1680FF !important;
    border-color: #1680FF !important;
    color: #fff !important;
    font-weight: 700;
}
.ot-fp-body .flatpickr-day.inRange {
    background: rgba(22, 128, 255, 0.12) !important;
    border-color: rgba(22, 128, 255, 0.12) !important;
    color: #1a1a2e !important;
}
.ot-fp-body .flatpickr-months {
    padding-top: 6px;
    padding-bottom: 6px;
}
.ot-fp-body .flatpickr-current-month {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}
.ot-fp-body .flatpickr-prev-month,
.ot-fp-body .flatpickr-next-month {
    padding: 12px !important;
}
.ot-fp-body .flatpickr-prev-month svg,
.ot-fp-body .flatpickr-next-month svg {
    width: 20px !important;
    height: 20px !important;
}
.ot-fp-body span.flatpickr-weekday {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

/* Footer (sticky jos): doar indicator "Selectat: X" */
.ot-fp-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
.ot-fp-selected {
    display: block;
    font-size: 0.95rem;
    color: #1a1a2e;
    text-align: center;
    font-weight: 600;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.ot-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000011;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
    width: max-content;
}
.ot-toast {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
    max-width: 100%;
    text-align: center;
}
.ot-toast.ot-toast-show {
    opacity: 1;
    transform: translateY(0);
}
@media (min-width: 769px) {
    .ot-toast-container {
        top: auto;
        bottom: 24px;
        right: 24px;
        left: auto;
        transform: none;
    }
}
