/* World Meeting Planner — Ultra-Refined Responsive Styles */

.planner-grid-bg {
    background-image: radial-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.dark .planner-grid-bg {
    background-image: radial-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Control Pills & Chips */
.wmp-pill-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 0.5rem;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.dark .wmp-pill-btn {
    color: #94a3b8;
}

.wmp-pill-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

.dark .wmp-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.wmp-pill-active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    font-weight: 700 !important;
}

.dark .wmp-pill-active {
    background: rgba(59, 130, 246, 0.22) !important;
    color: #93c5fd !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.wmp-chip {
    padding: 0.25rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #2563eb;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.dark .wmp-chip {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}

.wmp-chip:hover {
    background: rgba(59, 130, 246, 0.16);
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
}

.dark .wmp-chip:hover {
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
}

.wmp-date-picker {
    padding: 0.35rem 0.65rem;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dark .wmp-date-picker {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.wmp-date-picker:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Timeline Matrix Wrapper & Sticky City Headers */
.planner-timeline-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    position: relative;
}

.dark .planner-timeline-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
    background: #0f172a;
}

.planner-grid-row {
    display: grid;
    grid-template-columns: 145px repeat(24, minmax(36px, 1fr));
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    min-width: 1010px;
}

.dark .planner-grid-row {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.planner-grid-header {
    background: #f8fafc;
    border-bottom: 2px solid rgba(226, 232, 240, 0.9);
}

.dark .planner-grid-header {
    background: #1e293b;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Sticky City Column: remains visible during horizontal scrolling! */
.planner-city-cell {
    position: sticky;
    left: 0;
    z-index: 15;
    padding: 0.625rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.planner-grid-header .planner-city-cell {
    background: #f8fafc;
    z-index: 20;
}

.dark .planner-city-cell {
    border-right-color: rgba(255, 255, 255, 0.08);
    background: #0f172a;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.35);
}

.dark .planner-grid-header .planner-city-cell {
    background: #1e293b;
}

/* Hour Cells */
.planner-hour-cell {
    padding: 0.5rem 0.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
    border-right: 1px solid rgba(226, 232, 240, 0.45);
    transition: all 0.12s ease;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.dark .planner-hour-cell {
    border-right-color: rgba(255, 255, 255, 0.04);
}

.planner-hour-cell:hover {
    filter: brightness(1.08);
    transform: scale(1.06);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Status Colors & Contrast */
.planner-stat-work {
    background: rgba(16, 185, 129, 0.22);
    color: #047857;
}

.dark .planner-stat-work {
    background: rgba(16, 185, 129, 0.28);
    color: #6ee7b7;
}

.planner-stat-shoulder {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.dark .planner-stat-shoulder {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
}

.planner-stat-sleep {
    background: rgba(241, 245, 249, 0.5);
    color: #94a3b8;
}

.dark .planner-stat-sleep {
    background: rgba(15, 23, 42, 0.4);
    color: #64748b;
}

/* Selected Column Illumination */
.planner-hour-selected {
    box-shadow: inset 0 0 0 2px #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.18) !important;
    font-weight: 900 !important;
    z-index: 5;
}

.planner-grid-header .planner-hour-selected {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Golden Peak Indicator Bar */
.wmp-golden-peak-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.12);
    border-left: 2px dashed #10b981;
    border-right: 2px dashed #10b981;
    pointer-events: none;
    z-index: 4;
}

/* City Autocomplete Dropdown */
.wmp-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.dark .wmp-autocomplete-list {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Floating Toast Notification */
.wmp-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.wmp-toast-active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Meeting Role / Purpose Pills */
.wmp-role-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0.625rem;
    background: rgba(244, 244, 245, 0.8);
    border: 1px solid rgba(228, 228, 231, 0.8);
    color: #52525b;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.dark .wmp-role-pill {
    background: rgba(39, 39, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
}

.wmp-role-pill:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: #1e40af;
    background: rgba(59, 130, 246, 0.08);
}

.dark .wmp-role-pill:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
}

.wmp-role-active,
.dark .wmp-role-active {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.dark .wmp-role-active {
    color: #93c5fd !important;
}

/* Recommended Meeting Slot Cards */
.wmp-slot-card {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.dark .wmp-slot-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 27, 0.6);
}

.wmp-slot-card:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

.wmp-slot-card.is-active {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.06) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
}

.dark .wmp-slot-card.is-active {
    background: rgba(16, 185, 129, 0.14) !important;
}
