/* Havn Club Dashboard — Custom Styles */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
}

.progress-bar-fill {
    transition: width 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-row:hover {
    background-color: #f1f5f9;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-orange { background: #fef3c7; color: #92400e; }
.badge-amber { background: #fef3c7; color: #b45309; }

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #d97706;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.phase-dot.fetching { background: #3b82f6; }
.phase-dot.analyzing { background: #f59e0b; }
.phase-dot.completing { background: #10b981; }
.phase-dot.complete { background: #10b981; }
.phase-dot.failed { background: #ef4444; }
.phase-dot.initializing { background: #8b5cf6; }
.phase-dot.sending { background: #d97706; }
.phase-dot.cancelled { background: #6b7280; }
