/* Modern iOS/macOS Style Scheduler CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #1d1d1f;
    line-height: 1.5;
}

.app-container {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100vh;
    min-height: 100vh;
    max-width: none;
    overflow-x: hidden;
}



/* Main Content Layout */
.main-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 100vh;
}

/* View Selector Tabs */
.view-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Employee Scheduler Button */
.employee-scheduler-btn {
    background: #007AFF;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: white;
    font-weight: 500;
    margin-right: 12px;
    margin-bottom: 16px;
}

.employee-scheduler-btn:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.employee-scheduler-btn i {
    font-size: 16px;
}

/* Settings Button */
.settings-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.settings-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.settings-button:active {
    transform: translateY(0);
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 280px;
    z-index: 99999 !important;
    animation: slideIn 0.3s ease;
    pointer-events: auto;
    isolation: isolate;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.close-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #8e8e93;
    transition: all 0.2s ease;
}

.close-settings:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.settings-content {
    padding: 20px;
}

.settings-content .scale-group,
.settings-content .interval-group,
.settings-content .time-range-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.settings-content .scale-group:last-child,
.settings-content .interval-group:last-child,
.settings-content .time-range-group:last-child {
    margin-bottom: 0;
}

.settings-content label {
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    font-size: 12px;
    min-width: 50px;
}

.settings-content input[type="range"] {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 122, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.settings-content input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
}

.settings-content input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 122, 255, 0.4);
}

.settings-content #scale-value {
    font-weight: 600;
    color: #007AFF;
    min-width: 40px;
    text-align: right;
    font-size: 12px;
}

.settings-content select {
    padding: 6px 10px;
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 90px;
}

.settings-content select:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

/* Compact Scale Selector */
.compact-scale-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    color: #1d1d1f;
}

.scale-group, .interval-group, .time-range-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-scale-selector label {
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    font-size: 11px;
}

.compact-scale-selector input[type="range"] {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 122, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.compact-scale-selector input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
}

.compact-scale-selector input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 122, 255, 0.4);
}

.compact-scale-selector input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.compact-scale-selector #scale-value {
    font-weight: 600;
    color: #007AFF;
    min-width: 35px;
    text-align: right;
    font-size: 11px;
}

.compact-scale-selector select {
    padding: 4px 8px;
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 80px;
}

.compact-scale-selector select:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.compact-scale-selector select:hover {
    border-color: rgba(0, 122, 255, 0.3);
    background: white;
}

/* Weekly Calendar Styles */
.weekly-calendar {
    margin-top: 20px;
    width: 100%;
}

/* Daily Calendar Styles */
.daily-calendar {
    margin-top: 20px;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    max-width: none;
    flex: 1;
}

/* Daily time slots with dynamic height */
.daily-time-slot {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.2s ease;
}

.daily-time-label {
    width: 80px;
    padding: 15px;
    text-align: right;
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 80px;
}

.daily-events-container {
    flex: 1;
    padding: 6px;
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    min-width: 0;
    overflow: visible;
}

.daily-header {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.daily-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.daily-header p {
    margin: 0;
    font-size: 13px;
    color: #86868b;
    font-weight: 500;
    line-height: 1.2;
}

.daily-time-slots {
    max-height: 600px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex: 1;
    width: 100%;
}

.daily-time-slot {
    display: flex;
    min-height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.2s ease;
}

.daily-time-slot:hover {
    background: rgba(0, 122, 255, 0.02);
}

.daily-time-label {
    width: 80px;
    padding: 15px;
    text-align: right;
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.daily-events-container {
    flex: 1;
    padding: 10px 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.daily-events-container:hover {
    background: rgba(0, 122, 255, 0.05);
}

.daily-event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    margin: 5px 0;
    border-left: 4px solid #007AFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    z-index: 5;
}

.daily-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.daily-event-card.drag-over {
    background: rgba(0, 122, 255, 0.1) !important;
    border-color: rgba(0, 122, 255, 0.6) !important;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

/* Daily view specific employee slot styles */
.daily-event-card .assigned-slot {
    background: rgba(52, 199, 89, 0.1) !important;
    color: #34C759 !important;
    border: 1px solid rgba(52, 199, 89, 0.3) !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    position: relative;
}

.daily-event-card .open-slot {
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007AFF !important;
    border: 1px dashed rgba(0, 122, 255, 0.3) !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.daily-event-card .open-slot:hover {
    background: rgba(0, 122, 255, 0.2) !important;
    border-color: rgba(0, 122, 255, 0.5) !important;
    transform: scale(1.05);
}

.daily-event-card .assigned-slot:hover {
    background: rgba(52, 199, 89, 0.2) !important;
    transform: scale(1.05);
}

/* Daily view status indicator positioning */
.daily-event-card .employee-status-indicator {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* Expanded time slot spacing for weekly view */
.weekly-time-slots {
    max-height: 800px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Time slot height will be set dynamically via JavaScript */
.weekly-time-slots > div {
    min-height: 30px;
}

/* Time column styling with dynamic height */
.weekly-calendar .weekly-header > div:first-child,
.weekly-calendar .weekly-time-slots > div:nth-child(7n+1) {
    background: rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(0, 122, 255, 0.1);
}

/* Enhanced weekly event cards with better spacing */
.weekly-event-card {
    border-radius: 8px;
    font-family: inherit;
    max-width: 100%;
    margin: 2px 0;
    padding: 8px 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weekly-event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Spanning event styles */
.weekly-event-card.spanning-start {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.weekly-event-card.spanning-middle {
    border-radius: 0;
    margin: 0;
    border-top: none;
    border-bottom: none;
}

.weekly-event-card.spanning-end {
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    border-top: none;
}

/* Employee assignment status indicators */
.employee-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.employee-status-available { background: #34C759; }
.employee-status-partial { background: #FF9500; }
.employee-status-unassigned { background: #FF3B30; }

/* Open slot indicator */
.open-slot {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border: 1px dashed rgba(0, 122, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    margin: 2px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.open-slot:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.5);
}

.open-slot.drag-over {
    background: rgba(0, 122, 255, 0.3);
    border-color: #007AFF;
    transform: scale(1.05);
}

/* Assigned employee slot styles */
.assigned-slot {
    background: rgba(52, 199, 89, 0.1) !important;
    color: #34C759 !important;
    border: 1px solid rgba(52, 199, 89, 0.3) !important;
}

.assigned-slot:hover {
    background: rgba(52, 199, 89, 0.2) !important;
    transform: scale(1.05);
}

/* Remove employee button styles */
.remove-employee-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    background: #FF3B30;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-employee-btn:hover {
    background: #FF2D55;
    transform: scale(1.2);
    opacity: 1 !important;
}

.assigned-slot:hover .remove-employee-btn {
    opacity: 1;
}

/* Weekly event card drag over effect */
.weekly-event-card.drag-over {
    background: rgba(0, 122, 255, 0.1) !important;
    border-color: rgba(0, 122, 255, 0.6) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

/* Individual slot drag over effect */
.employee-slot.drag-over {
    background: rgba(0, 122, 255, 0.2) !important;
    border-color: #007AFF !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Booking card drag effects */
.weekly-event-card[draggable="true"]:active {
    cursor: grabbing;
}

.weekly-event-card[draggable="true"]:hover {
    cursor: grab;
}

/* Resize handle styles */
.resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(0, 122, 255, 0.3);
    cursor: ns-resize;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.resize-handle:hover {
    background: rgba(0, 122, 255, 0.5);
}

.weekly-event-card:hover .resize-handle {
    opacity: 1;
}

/* Resize feedback */
.weekly-event-card.resizing {
    z-index: 1000 !important;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4) !important;
}

.weekly-event-card.resizing .resize-handle {
    background: rgba(0, 122, 255, 0.7) !important;
    opacity: 1 !important;
}

/* Drag and drop styles */
.draggable-employee {
    cursor: grab;
    transition: all 0.2s ease;
}

.draggable-employee:active {
    cursor: grabbing;
}

.draggable-employee.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(0.95);
}

/* Employee card drag states */
.employee-card {
    cursor: grab;
    transition: all 0.2s ease;
}

.employee-card:active {
    cursor: grabbing;
}

.employee-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Drop zone highlighting */
.time-slot-drop-zone {
    transition: all 0.2s ease;
}

.time-slot-drop-zone.drag-over {
    background: rgba(0, 122, 255, 0.1) !important;
    border: 2px dashed #007AFF !important;
    transform: scale(1.02);
}

.weekly-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.weekly-time-slots {
    max-height: 600px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.weekly-event-card {
    border-radius: 6px;
    font-family: inherit;
    max-width: 100%;
}

.weekly-event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure proper grid alignment */
.weekly-calendar .weekly-header,
.weekly-calendar .weekly-time-slots {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
}

/* Time column styling */
.weekly-calendar .weekly-header > div:first-child,
.weekly-calendar .weekly-time-slots > div:nth-child(7n+1) {
    background: rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(0, 122, 255, 0.1);
}

.view-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #86868b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.view-tab:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
}

.view-tab.active {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.view-tab i {
    font-size: 16px;
}

.view-tab span {
    font-weight: 600;
}

/* Calendar Header and Navigation */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.nav-btn {
    background: rgba(0, 122, 255, 0.1);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #007AFF;
}

.nav-btn:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn i {
    font-size: 16px;
    font-weight: 600;
}

.calendar-section {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 15px;
}



/* Weekdays */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #86868b;
    font-size: 14px;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 20px;
    width: 100%;
    max-width: none;
    min-height: 0;
    grid-auto-rows: minmax(80px, auto);
    grid-template-rows: repeat(auto-fit, minmax(80px, auto));
}

/* Ensure equal column distribution */
.calendar-grid > * {
    grid-column: span 1;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all calendar days have equal width and height */
.calendar-day {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1;
    overflow: hidden;
}

/* Force equal sizing for all calendar days */
.calendar-grid .calendar-day {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: 100%;
    height: 100%;
}

/* Additional grid fixes for equal sizing */
.calendar-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr !important;
}

/* Ensure no flexbox conflicts */
.calendar-grid .calendar-day {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

/* Weekly View Overrides */
.calendar-grid.weekly-view {
    display: block;
    grid-template-columns: none;
    gap: 0;
}

/* Daily View Overrides */
.calendar-grid.daily-view {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
}

.calendar-day.today {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.calendar-day.other-month {
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.6);
}



.day-number {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-events {
    font-size: 11px;
    color: #86868b;
    line-height: 1.2;
}

.calendar-day.today .day-events {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== EMPLOYEE MANAGEMENT PANEL - INTEGRATED ===== */

/* Employee Panel */
.employee-panel {
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 20px 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    order: -1; /* Move to the left */
    margin-left: 0;
    position: relative;
    left: 0;
}

/* Employee Context Menu */
.employee-context-menu {
    position: fixed;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 180px;
    overflow: hidden;
    animation: slideIn 0.2s ease;
}

.context-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background-color: #f5f5f5;
}

.context-menu-item i {
    width: 16px;
    color: #666;
}

.employee-panel.collapsed {
    width: 60px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.panel-header i {
    color: #007AFF;
}

.panel-toggle {
    background: rgba(0, 122, 255, 0.1);
    border: none;
    color: #007AFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-toggle:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: scale(1.05);
}

.panel-content {
    padding: 25px;
}

/* Employee Filters */
.employee-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.employee-search {
    padding: 12px 16px;
    border: 2px solid rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.employee-search:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.skill-filter {
    padding: 12px 16px;
    border: 2px solid rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.skill-filter:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Employee List */
.employee-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.employee-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.employee-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.employee-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.employee-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.employee-info h4 {
    margin: 0;
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 600;
}

.employee-info p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #86868b;
}

.employee-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.skill-tag {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.employee-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #86868b;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-available { background: #34C759; }
.status-busy { background: #FF9500; }
.status-off { background: #FF3B30; }

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    border: 2px solid rgba(0, 122, 255, 0.2);
}

.action-btn.secondary:hover {
    background: white;
    border-color: #007AFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Employee Modal */
.employee-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.employee-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.employee-modal .modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #f2f2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.employee-modal .modal-title h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.employee-modal .modal-title p {
    margin: 0;
    color: #86868b;
    font-size: 14px;
}

.modal-close {
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

/* Employee Form Styles */
.employee-form {
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #f2f2f7;
    border-radius: 12px;
    background: #f9f9f9;
    color: #1d1d1f;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Checkbox and Radio Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    background: rgba(0, 122, 255, 0.05);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5ea;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-option input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #007AFF;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-option input {
    display: none;
}

/* Availability Grid */
.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.availability-day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.availability-day label {
    font-size: 11px;
    color: #86868b;
    font-weight: 500;
}

.availability-day select {
    padding: 8px;
    border: 2px solid #f2f2f7;
    border-radius: 8px;
    background: #f9f9f9;
    color: #1d1d1f;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}

.availability-day select:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 25px;
    border-top: 1px solid #f2f2f7;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #e5e5ea;
    transform: translateY(-1px);
}

.btn-danger {
    background: #FF3B30;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.4);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #f2f2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.close-button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
        align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #86868b;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

/* Form Styles */
.event-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f2f2f7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.color-picker {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.color-picker input[type="radio"] {
    display: none;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-picker input[type="radio"]:checked + .color-option {
    border-color: #1d1d1f;
    transform: scale(1.1);
}

.color-picker input[type="radio"]:checked + .color-option::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.button.primary {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.button.secondary {
    background: #f2f2f7;
    color: #1d1d1f;
}

.button.secondary:hover {
    background: #e5e5ea;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .employee-panel {
        width: 100%;
        max-height: 500px;
        order: 0; /* Reset order for mobile */
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .view-selector {
        margin-bottom: 15px;
    }
    
    .scale-selector {
        padding: 12px 15px;
    }
    
    .scale-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .scale-group, .interval-group {
        justify-content: center;
    }
    
    .scale-selector label {
        text-align: center;
    }
    
    .scale-selector #scale-value {
        text-align: center;
    }
    
    .view-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .view-tab i {
        font-size: 14px;
    }
    
    .weekly-calendar {
        margin-top: 15px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .weekly-time-slots {
        max-height: 500px;
    }
    
    /* Adjust grid for smaller screens */
    .weekly-calendar .weekly-header,
    .weekly-calendar .weekly-time-slots {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .calendar-header {
        padding: 15px 20px;
    }
    
    .calendar-header h2 {
        font-size: 18px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .weekday {
        font-size: 12px;
        padding: 10px 0;
    }
    
    .calendar-day {
        padding: 6px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal {
        margin: 20px;
        max-width: none;
    }
    
    .event-form {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .availability-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .availability-day:nth-child(n+5) {
        grid-column: span 2;
    }
    
    .cleaning-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cleaning-content {
        justify-content: space-between;
    }
    
    .employee-slots {
        right: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .view-selector {
        margin-bottom: 12px;
    }
    
    .view-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .view-tab i {
        font-size: 13px;
    }
    
    .view-tab span {
        display: none;
    }
    
    .weekly-calendar {
        margin-top: 12px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .weekly-time-slots {
        max-height: 400px;
    }
    
    /* Adjust grid for smallest screens */
    .weekly-calendar .weekly-header,
    .weekly-calendar .weekly-time-slots {
        grid-template-columns: 70px repeat(7, 1fr);
    }
    
    /* Daily view mobile adjustments */
    .daily-calendar {
        margin-top: 12px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .daily-header {
        padding: 15px 20px;
        min-height: 70px;
    }
    
    .daily-header h2 {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
    
    .daily-header p {
        font-size: 11px !important;
    }
    
    .daily-time-slots {
        max-height: 400px;
    }
    
    .daily-time-label {
        width: 60px;
        padding: 10px;
        font-size: 11px;
    }
    
    .daily-event-card {
        padding: 12px;
        margin: 3px 0;
    }
    
    .daily-event-card h3 {
        font-size: 14px;
    }
    
    .daily-event-card .event-details {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }
    
    .daily-event-card .employee-slots {
        gap: 6px;
    }
    
    .daily-event-card .assigned-slot,
    .daily-event-card .open-slot {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .calendar-header {
        padding: 12px 15px;
    }
    
    .calendar-header h2 {
        font-size: 16px;
    }
    
    .nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .nav-btn i {
        font-size: 14px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        border-radius: 12px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .employee-panel {
        border-radius: 16px;
    }
    
    .panel-content {
        padding: 20px;
    }
    
    .cleaning-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .cleaning-first-name {
        text-align: center;
        min-width: auto;
    }
    
    .employee-count-box,
    .duration-box {
        align-self: center;
    }
} 

/* Calendar Day Events Container */
.day-events-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    max-height: 80px;
    overflow: hidden;
}

/* Compact Cleaning Preview Styles */
.cleaning-preview.compact {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 9px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    height: 10px;
}

.cleaning-preview.compact:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cleaning-preview.compact.drag-over {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
}

.cleaning-preview-line.compact {
    width: 2px;
    height: 8px;
    border-radius: 1px;
    flex-shrink: 0;
}

.cleaning-preview-content.compact {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    font-size: 8px;
    line-height: 1;
}

.cleaning-preview-name.compact {
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20px;
}

.cleaning-preview-employees.compact {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.15);
    padding: 1px 2px;
    border-radius: 2px;
    font-size: 7px;
    font-weight: 500;
    min-width: 12px;
    text-align: center;
}

.cleaning-preview-duration.compact {
    background: rgba(142, 142, 147, 0.08);
    color: #8E8E93;
    border: 1px solid rgba(142, 142, 147, 0.15);
    padding: 1px 2px;
    border-radius: 2px;
    font-size: 7px;
    font-weight: 500;
    min-width: 12px;
    text-align: center;
}

.cleaning-preview-separator {
    color: #86868b;
    font-size: 6px;
    margin: 0 1px;
}

/* Cleaning Preview on Calendar Days */
.cleaning-preview {
        display: flex;
        align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.cleaning-preview:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cleaning-preview.drag-over {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
}

/* Status indicator dots for quick visual reference */
.cleaning-preview::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Red status - no employees assigned */
.cleaning-preview[style*="rgba(255, 59, 48, 0.25)"]::before {
    background-color: #FF3B30;
    box-shadow: 0 0 4px rgba(255, 59, 48, 0.6);
}

/* Orange status - partially assigned */
.cleaning-preview[style*="rgba(255, 149, 0, 0.25)"]::before {
    background-color: #FF9500;
    box-shadow: 0 0 4px rgba(255, 149, 0, 0.6);
}

/* Green status - fully assigned */
.cleaning-preview[style*="rgba(52, 199, 89, 0.25)"]::before {
    background-color: #34C759;
    box-shadow: 0 0 4px rgba(52, 199, 89, 0.6);
}

.cleaning-preview-line {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

.cleaning-preview-content {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.cleaning-preview-name {
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 32px;
}

.cleaning-preview-employees {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.15);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
}

.cleaning-preview-duration {
    background: rgba(142, 142, 147, 0.08);
    color: #8E8E93;
    border: 1px solid rgba(142, 142, 147, 0.15);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
}

.more-cleanings {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 8px;
    text-align: center;
    font-style: italic;
}

/* Adjust calendar day height to accommodate cleaning previews */
.calendar-day {
    min-height: 80px;
    padding: 8px 4px;
}

/* Remove the blue background for days with events */
.calendar-day.has-events {
    /* background: rgba(0, 122, 255, 0.05); - removed */
}

/* Make calendar days with events more prominent */
.calendar-day.has-events:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: scale(1.02);
    transition: all 0.2s ease;
} 