/* Custom styles for SitePlanner */

:root {
    --status-planned: #3b82f6;
    --status-in-progress: #f59e0b;
    --status-blocked: #ef4444;
    --status-done: #10b981;
}

/* Task block status colors */
.task-block {
    transition: all 0.2s ease;
    position: relative;
}

.task-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.task-block.status-planned {
    background-color: #dbeafe;
    border-left: 4px solid var(--status-planned);
    color: #1e40af;
}

.task-block.status-in_progress {
    background-color: #fef3c7;
    border-left: 4px solid var(--status-in-progress);
    color: #92400e;
}

.task-block.status-blocked {
    background-color: #fee2e2;
    border-left: 4px solid var(--status-blocked);
    color: #991b1b;
}

.task-block.status-done {
    background-color: #d1fae5;
    border-left: 4px solid var(--status-done);
    color: #065f46;
}

/* Task progress bar - more visible */
.task-progress-bar {
    height: 4px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.task-progress-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.status-planned .task-progress-bar-fill {
    background-color: var(--status-planned);
}

.status-in_progress .task-progress-bar-fill {
    background-color: var(--status-in-progress);
}

.status-blocked .task-progress-bar-fill {
    background-color: var(--status-blocked);
}

.status-done .task-progress-bar-fill {
    background-color: var(--status-done);
}

/* Multi-day task styling */
.task-block.multi-day {
    position: relative;
    border-left-width: 4px;
}

/* Multi-day badge icon */
.multi-day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
    font-size: 9px;
    flex-shrink: 0;
}

/* Progress slider styling */
.slider {
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.15s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Drawer animation */
#task-drawer {
    border-left: 1px solid #e5e7eb;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(2px);
}

/* Time grid markers */
.time-marker {
    font-size: 10px;
    color: #9ca3af;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}
/* Conflict alert animation */
@keyframes pulse-once {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; background-color: #fef3c7; }
}

.animate-pulse-once {
    animation: pulse-once 0.5s ease-in-out;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}