/* ═══════════════════════════════════════════════════════════════════════ */
/* OutreachOS - Professional Animations & Micro-Interactions               */
/* Using CORRECT class names from SignalWorkbenchV2.razor                  */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Page Load Animation */
.workbench-v2 {
    animation: pageEnter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

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

/* Staggered Panel Entrances */
.sidebar-v2 {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both !important;
}

.queue-v2 {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s both !important;
}

.main-stage-v2 {
    animation: fadeInScale 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Lead Card Interactions - Haptic Feedback                                */
/* ═══════════════════════════════════════════════════════════════════════ */

.lead-card {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.lead-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15) !important;
}

.lead-card:active {
    transform: scale(0.95) !important;
    transition-duration: 0.1s !important;
}

.lead-card.selected {
    animation: cardSelectPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes cardSelectPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* Queue Items Stagger */
.lead-card:nth-child(1) { animation: queueSlide 0.5s ease 0.1s both !important; }
.lead-card:nth-child(2) { animation: queueSlide 0.5s ease 0.2s both !important; }
.lead-card:nth-child(3) { animation: queueSlide 0.5s ease 0.3s both !important; }
.lead-card:nth-child(4) { animation: queueSlide 0.5s ease 0.4s both !important; }
.lead-card:nth-child(5) { animation: queueSlide 0.5s ease 0.5s both !important; }

@keyframes queueSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Button Haptic Feedback - CORRECT CLASS NAMES                            */
/* ═══════════════════════════════════════════════════════════════════════ */

.btn-skip,
.btn-approve,
.tone-btn {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.btn-skip:hover,
.tone-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
}

.btn-skip:active,
.tone-btn:active {
    transform: scale(0.88) !important;
    transition-duration: 0.08s !important;
}

.btn-approve:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35) !important;
}

.btn-approve:active {
    transform: scale(0.92) !important;
    transition-duration: 0.08s !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Signal Badges - CORRECT CLASS NAME: signal-badge-v2                     */
/* ═══════════════════════════════════════════════════════════════════════ */

.signal-badge-v2 {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.signal-badge-v2:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Tier Badge (Critical/High) - CORRECT CLASS NAME                         */
/* ═══════════════════════════════════════════════════════════════════════ */

.tier-badge.critical {
    animation: criticalPulse 1.5s ease-in-out infinite !important;
}

@keyframes criticalPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
    }
}

.tier-badge.high {
    animation: highPulse 2s ease-in-out infinite !important;
}

@keyframes highPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Campaign Items                                                          */
/* ═══════════════════════════════════════════════════════════════════════ */

.campaign-item {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.campaign-item:hover {
    transform: translateX(8px) !important;
    background: rgba(99, 102, 241, 0.08) !important;
}

.campaign-item:active {
    transform: scale(0.95) !important;
    transition-duration: 0.1s !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* List Quality Card - Pulse Animation                                     */
/* ═══════════════════════════════════════════════════════════════════════ */

.list-quality-card {
    animation: qualityPulse 2s ease-in-out infinite !important;
}

@keyframes qualityPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.15);
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Lead Score Animation                                                    */
/* ═══════════════════════════════════════════════════════════════════════ */

.lead-score {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.lead-card:hover .lead-score {
    transform: scale(1.2) !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Signal Card Animations                                                  */
/* ═══════════════════════════════════════════════════════════════════════ */

.signal-card-primary,
.signal-card-secondary {
    animation: cardFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transition: all 0.25s ease !important;
}

.signal-card-primary:hover,
.signal-card-secondary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

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

/* ═══════════════════════════════════════════════════════════════════════ */
/* Email Card Animation                                                    */
/* ═══════════════════════════════════════════════════════════════════════ */

.email-card {
    animation: emailSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@keyframes emailSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Modal & Sheet Bounce Animations                                         */
/* ═══════════════════════════════════════════════════════════════════════ */

.job-selector,
.profile-setup-overlay {
    animation: overlayFadeIn 0.3s ease-out !important;
}

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

.job-selector-content,
.profile-setup-card {
    animation: modalBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-setup-header {
    animation: headerFadeIn 0.5s ease-out 0.2s both !important;
}

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

/* ═══════════════════════════════════════════════════════════════════════ */
/* Job List Items Stagger                                                  */
/* ═══════════════════════════════════════════════════════════════════════ */

.job-item {
    animation: listItemSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.job-item:nth-child(1) { animation-delay: 0.1s !important; }
.job-item:nth-child(2) { animation-delay: 0.2s !important; }
.job-item:nth-child(3) { animation-delay: 0.3s !important; }
.job-item:nth-child(4) { animation-delay: 0.4s !important; }
.job-item:nth-child(5) { animation-delay: 0.5s !important; }

@keyframes listItemSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.job-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.job-item:active {
    transform: scale(0.95) !important;
    transition-duration: 0.1s !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Toast Notifications                                                     */
/* ═══════════════════════════════════════════════════════════════════════ */

.toast {
    animation: toastBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes toastBounceIn {
    0% {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Loading States                                                          */
/* ═══════════════════════════════════════════════════════════════════════ */

.loading-overlay {
    animation: overlayFadeIn 0.3s ease-out !important;
}

.loading-text {
    animation: textFadeIn 0.5s ease-out 0.1s both !important;
}

.loading-progress {
    animation: textFadeIn 0.5s ease-out 0.25s both !important;
}

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

.loading-progress-fill {
    animation: progressSlide 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

@keyframes progressSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.loading-spinner {
    animation: spinPro 0.8s linear infinite !important;
}

@keyframes spinPro {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Department Buttons (Profile Setup)                                      */
/* ═══════════════════════════════════════════════════════════════════════ */

.dept-btn {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.dept-btn:hover {
    transform: translateY(-3px) !important;
}

.dept-btn:active {
    transform: scale(0.9) !important;
    transition-duration: 0.08s !important;
}

.dept-btn.active {
    animation: deptSelectPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes deptSelectPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.88); }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Submit Button                                                           */
/* ═══════════════════════════════════════════════════════════════════════ */

.profile-submit-btn {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.profile-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25) !important;
}

.profile-submit-btn:active:not(:disabled) {
    transform: scale(0.95) !important;
    transition-duration: 0.1s !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Edit Profile Link                                                       */
/* ═══════════════════════════════════════════════════════════════════════ */

.edit-profile-link {
    transition: all 0.2s ease !important;
}

.edit-profile-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.edit-profile-link:active {
    transform: scale(0.94) !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Workbench Page Wrapper                                                  */
/* ═══════════════════════════════════════════════════════════════════════ */

.workbench-page {
    animation: pageSlideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

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

/* ═══════════════════════════════════════════════════════════════════════ */
/* Stage Header Animation                                                  */
/* ═══════════════════════════════════════════════════════════════════════ */

.stage-header {
    animation: fadeInDown 0.5s ease 0.3s both !important;
}

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

/* ═══════════════════════════════════════════════════════════════════════ */
/* Translation Box Animation                                               */
/* ═══════════════════════════════════════════════════════════════════════ */

.translation-box {
    animation: translateBoxIn 0.4s ease 0.4s both !important;
    transition: all 0.2s ease !important;
}

.translation-box:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

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

/* ═══════════════════════════════════════════════════════════════════════ */
/* Suggested Angle Box Animation                                           */
/* ═══════════════════════════════════════════════════════════════════════ */

.suggested-angle-box {
    animation: angleBoxIn 0.4s ease 0.5s both !important;
    transition: all 0.2s ease !important;
}

.suggested-angle-box:hover {
    transform: translateY(-2px) !important;
}

@keyframes angleBoxIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* User Avatar Animation                                                   */
/* ═══════════════════════════════════════════════════════════════════════ */

.user-avatar {
    transition: all 0.2s ease !important;
}

.user-avatar:hover {
    transform: scale(1.1) !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Brand Icon Animation                                                    */
/* ═══════════════════════════════════════════════════════════════════════ */

.brand-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.sidebar-brand:hover .brand-icon {
    transform: rotate(-10deg) scale(1.1) !important;
}
