/* Status Colors and Badges */

/* Status Badge Base Styles */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

/* Status: Scheduled */
.status-scheduled {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border-color: rgba(34, 197, 94, 0.2);
}

.status-scheduled:hover {
    background: rgba(34, 197, 94, 0.2);
}

/* Status: Completed */
.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #047857;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-completed:hover {
    background: rgba(34, 197, 94, 0.25);
}

/* Status: Postponed */
.status-postponed {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
    border-color: rgba(107, 114, 128, 0.2);
}

.status-postponed:hover {
    background: rgba(107, 114, 128, 0.2);
}

/* Status: Canceled */
.status-canceled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.status-canceled:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Calendar Event Badge Colors */
.calendar-event {
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-event:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Badge Color Classes */
.badge-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
}

.badge-green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.badge-red {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

.badge-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.badge-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
}

.badge-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    color: white;
}

.badge-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: white;
}

.badge-gray {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

.badge-orange {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
}

.badge-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #5eead4 100%);
    color: white;
}

/* Form Controls for Colors */
.color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0;
}

.color-picker:hover {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.color-picker:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Color Preview */
.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 0.375rem;
    border: 2px solid var(--border-light);
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

/* Status Filter Dropdown */
.status-filter {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: 120px;
    transition: all 0.2s ease;
}

.status-filter:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Badge Color Selector */
.badge-color-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge-color-option {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.badge-color-option:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.badge-color-option.selected {
    border-color: var(--white);
    box-shadow: 0 0 0 2px var(--primary-blue);
}

.badge-color-option:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.badge-color-option.selected:after {
    opacity: 1;
}

/* Form Groups for Status and Badge Color */
.form-group.status-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.badge-color-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge-color-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .badge-color-option {
        width: 35px;
        height: 35px;
    }
    
    .color-picker {
        width: 50px;
        height: 35px;
    }
}