/* stream-live.css */

/* Minimalist, clean base overrides */
body {
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 
 * Google-Style Floating Labels 
 * Using CSS transitions to move the label when input is focused or not empty.
 */
.floating-input-group {
    position: relative;
    width: 100%;
}

.floating-input {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    /* Gray 900 */
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    /* Gray 300 */
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.floating-input:focus {
    border-color: #2563eb;
    /* Blue 600 */
    box-shadow: 0 0 0 1px #2563eb;
}

/* Grayed out background for read-only email */
.floating-input:read-only {
    background-color: #f3f4f6;
    /* Gray 100 */
    color: #6b7280;
    /* Gray 500 */
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.floating-input:read-only:focus {
    box-shadow: none;
    border-color: #e5e7eb;
}

/* The Label */
.floating-label {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #6b7280;
    /* Gray 500 */
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    padding: 0 0.25rem;
    margin-left: -0.25rem;
}

/* Textarea needs top positioning instead of center */
textarea.floating-input+.floating-label {
    top: 1rem;
    transform: none;
}

/* Float label logic: Focus or NOT placeholder-shown */
.floating-input:focus+.floating-label,
.floating-input:not(:placeholder-shown)+.floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: #2563eb;
    /* Blue 600 when focused/filled */
}

/* If read-only, keep label gray when floated */
.floating-input:read-only:focus+.floating-label,
.floating-input:read-only:not(:placeholder-shown)+.floating-label {
    color: #6b7280;
    background-color: transparent;
    /* Prevent white background blocking gray input border entirely */
}


/* Custom Radio Buttons Minimalist */
.custom-radio {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: border-color 0.1s ease;
}

.custom-radio::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.1s transform ease-in-out;
    box-shadow: inset 1em 1em #2563eb;
    /* Blue 600 */
}

.custom-radio:checked {
    border-color: #2563eb;
}

.custom-radio:checked::before {
    transform: scale(1);
}

.group:hover .custom-radio {
    border-color: #9ca3af;
}

.group:hover .custom-radio:checked {
    border-color: #2563eb;
}

/* Flatpickr Customization (Modern, Horizontal, Professional) */
.flatpickr-calendar {
    width: 440px !important;
    max-width: 100% !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e5e7eb !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 1rem !important;
    padding: 1.5rem 1rem !important;
    background: #ffffff !important;
}

.flatpickr-months {
    margin-bottom: 1rem;
}

.flatpickr-innerContainer {
    width: 100% !important;
}

.flatpickr-rContainer {
    width: 100% !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
}

/* Weekdays Header */
span.flatpickr-weekday {
    font-weight: 700 !important;
    color: #4b5563 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Day squares styling */
.flatpickr-day {
    max-width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    border-radius: 0.5rem !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease;
}

/* Available dates (Blue Square) */
.flatpickr-day:not(.flatpickr-disabled) {
    background-color: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}

.flatpickr-day:not(.flatpickr-disabled):hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* Selected Date */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus {
    background-color: #1e3a8a !important;
    /* Deep Blue */
    color: #ffffff !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.4) !important;
    transform: none;
}

/* Unavailable dates (Normal text, not opaque) */
.flatpickr-day.flatpickr-disabled {
    color: #9ca3af !important;
    /* Clear grey, readable */
    background: transparent !important;
    border-color: transparent !important;
    opacity: 1 !important;
    /* Remove Flatpickr's default opacity dimming */
    font-weight: 400;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Month/Year Typography */
.flatpickr-month {
    fill: #111827 !important;
    color: #111827 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #111827 !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #111827 !important;
}

/* Time Slot Selection Styles */
.time-slot {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #4b5563;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-slot:hover {
    border-color: #bfdbfe;
    background-color: #f8fafc;
    color: #1d4ed8;
}

.time-slot.selected {
    background-color: #1e3a8a;
    /* Deep Blue, matching selected date */
    border-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}