/* ===== Helix Sales Track — Ultra-Premium Business Style ===== */

/* === Base View Animations === */
.view-enter {
    animation: viewEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.animate-slideDown {
    animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* === Staggered Children Animation === */
.stagger-children > * {
    opacity: 0;
    animation: staggerIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }

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

/* === Bottom Sheet === */
.bottom-sheet-overlay {
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease-out forwards;
}

.bottom-sheet-content {
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

/* === Scrollbar hidden === */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === Leaflet Overrides === */
.leaflet-control-attribution { display: none !important; }
.leaflet-container { font-family: 'Inter', sans-serif !important; }

/* === Premium Utility Classes === */

.divider-thin {
    height: 1px;
    background: linear-gradient(to right, transparent, #E2E5E9, transparent);
}

/* Premium Card — refined shadow and border */
.card-premium {
    background: #FFFFFF;
    border: 1px solid #E2E5E9;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
}

/* Premium Button */
.btn-premium {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-premium:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Subtle press effect */
.press-effect {
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease;
}
.press-effect:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* === Rating Card Premium (Light) === */
.rating-card-premium {
    background: #FFFFFF;
    border: 1px solid #E2E5E9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}
.rating-card-premium::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}
.rating-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #D4AF37, #F3E5AB, #D4AF37);
    opacity: 0.8;
}

/* === Progress Card Premium === */
.progress-card-premium {
    background: #FFFFFF;
    border: 1px solid #E2E5E9;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* === Action Card Hover Glow === */
.action-card {
    background: #FFFFFF;
    border: 1px solid #E2E5E9;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.action-card:active {
    transform: scale(0.97);
    box-shadow: 0 0 0 3px rgba(74, 122, 46, 0.08);
}

/* === Schedule Item Premium === */
.schedule-item {
    transition: all 0.2s ease;
}
.schedule-item:active {
    background: rgba(74, 122, 46, 0.03);
}

/* === Premium Status Badge Pulse === */
@keyframes premiumPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
}
.pulse-premium {
    animation: premiumPulse 2s ease-in-out infinite;
}

/* === Counter Animation === */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
.animate-count {
    animation: countUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* === Gold Accent Line === */
.gold-accent {
    position: relative;
}
.gold-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(to bottom, #B8860B, #DAA520);
    border-radius: 3px;
}

/* Chip outline style */
.chip-outline {
    border: 1px solid #E2E5E9;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #9CA3AF;
    transition: all 0.2s ease;
    cursor: pointer;
}
.chip-outline.active {
    border-color: #4A7A2E;
    color: #4A7A2E;
    background: #F0F5EB;
}

/* Status dot */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* === Subtle Background Pattern === */
.bg-dots-pattern {
    background-image: radial-gradient(circle, #E2E5E9 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* === Number Typography === */
.num-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    font-feature-settings: 'tnum';
}
