/* ==========================================
   KIBEY INNOVATIONS - PREMIUM TECH DESIGN
   Innovation Studio Aesthetic
   ========================================== */

/* Premium Buttons with Glow Effects */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--electric-blue), var(--vivid-cyan));
    color: var(--white);
}

.btn-secondary-premium {
    background: linear-gradient(135deg, var(--vibrant-violet), var(--hot-pink));
    color: var(--white);
}

.btn-outline-premium {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-premium:hover {
    background: var(--primary);
    color: var(--white);
}

/* Premium Cards with Depth - Light cards on dark background */
.card-premium {
    position: relative;
    background: #FFFFFF;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    color: var(--dark-gray);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-blue), var(--vivid-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-premium:hover::before {
    transform: scaleX(1);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.2);
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-violet), var(--vivid-cyan));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Glow Effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.8);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Modern Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mid-gray), transparent);
    margin: 5rem 0;
    opacity: 0.2;
}

/* Icon Containers with Gradient Backgrounds */
.icon-box {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--vivid-cyan));
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(14, 165, 233, 0.5);
}

/* Badge Styles */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--electric-blue);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.badge-premium:hover {
    background: var(--electric-blue);
    color: var(--white);
    transform: scale(1.05);
}

/* Glassmorphism Effect - Light glass on dark background */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: var(--dark-gray);
}

/* Neon Border Effect - Light content on dark background */
.neon-border {
    position: relative;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(45deg, var(--electric-blue), var(--vivid-cyan), var(--vibrant-violet));
    background-size: 200% 200%;
    animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.neon-border-inner {
    background: #FFFFFF;
    border-radius: calc(1rem - 2px);
    padding: 2rem;
    color: var(--dark-gray);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(14, 165, 233, 0.1);
    border-top-color: var(--electric-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stat Numbers with Count-Up Effect */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Responsive Grid with Auto-Fit */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .btn-premium {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .card-premium {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Advanced Micro-Interactions */
.btn-premium, .card-premium, .icon-box, .badge-premium {
    will-change: transform;
}

/* Stagger Animation for Card Grids */
.auto-grid > *:nth-child(1) { animation-delay: 0.1s; }
.auto-grid > *:nth-child(2) { animation-delay: 0.2s; }
.auto-grid > *:nth-child(3) { animation-delay: 0.3s; }
.auto-grid > *:nth-child(4) { animation-delay: 0.4s; }
.auto-grid > *:nth-child(5) { animation-delay: 0.5s; }
.auto-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Smooth Color Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Focus States for Accessibility */
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Enhanced Link Hover */
a:not(.btn-premium) {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn-premium):hover {
    color: var(--electric-blue);
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: var(--dark-gray);
    color: var(--white);
    font-size: 0.875rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Ripple Effect on Click */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Text Selection Styling */
::selection {
    background: var(--electric-blue);
    color: var(--white);
}

::-moz-selection {
    background: var(--electric-blue);
    color: var(--white);
}

/* Improved Performance */
.card-premium, .btn-premium, .icon-box {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Dark Theme is Now Default - No Media Query Needed */

/* ==========================================
   ACTIVITY FEED ANIMATIONS
   ========================================== */

/* New Activity Item Animation */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

.activity-item.activity-new {
    animation: slideInFromRight 0.5s ease-out, pulseGlow 1s ease-in-out;
    border-color: rgba(59, 130, 246, 0.8) !important;
}

/* Scrollbar Styling for Activity Feed */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 85, 99, 0.8) rgba(31, 41, 55, 0.5);
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 0.8);
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 1);
}

/* Activity Feed Pulse Indicator */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================
   HOMEPAGE ENHANCEMENTS
   ========================================== */

/* Enhanced Scroll Reveal - Scale In */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Reveal Delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero Gradient Overlay with Animated Orbs */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float-orb 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -250px;
    right: -150px;
    animation-delay: 7s;
}

.gradient-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* FAQ Accordion Enhancements */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(14, 165, 233, 0.5) !important;
}

.faq-button {
    transition: all 0.2s ease;
}

.faq-button:hover {
    background-color: rgba(31, 41, 55, 0.5);
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.faq-content.hidden {
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.faq-content:not(.hidden) {
    max-height: 500px;
}

/* Feature Card Hover Lift */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

/* Process Step Enhancements */
.process-step {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--electric-blue), var(--vivid-cyan));
}

.step-number {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Title Enhancement */
.hero-title {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Credibility Cards Pulse on Hover */
.credibility-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.credibility-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.3);
}

/* Metric Progress Bar Animation */
@keyframes progress-fill {
    from {
        width: 0;
    }
}

.metric-progress {
    animation: progress-fill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Count-up Number Styling */
[data-count] {
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

[data-count].counting {
    transform: scale(1.05);
}

/* Section Heading Enhancements */
.section-heading {
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-blue), var(--vivid-cyan));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.6s ease, width 0.6s ease;
}

.section-heading.active::after {
    opacity: 1;
    width: 100px;
}

/* Smooth Page Transitions */
.tab-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   CRM TAB ENHANCEMENTS
   ========================================== */

/* Company Card Animations */
.company-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

/* Contact Table Row Hover */
.contact-row {
    transition: all 0.2s ease;
}

.contact-row:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateX(4px);
}

/* Deal Card in Pipeline */
.deal-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: move;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.deal-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

/* Status Badges with Pulse */
.status-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge.status-active::before {
    background: #10b981;
}

.status-badge.status-pending::before {
    background: #f59e0b;
}

.status-badge.status-closed::before {
    background: #6b7280;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* View Transition Animations */
.crm-view-enter {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-view-exit {
    animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Skeleton Loader */
.skeleton-loader {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
}

.skeleton-line {
    height: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.25rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.full {
    width: 100%;
}

/* CRM Header Gradient Animation */
.crm-header {
    position: relative;
    overflow: hidden;
}

.crm-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Search Input Enhancements */
.crm-search {
    transition: all 0.3s ease;
}

.crm-search:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Action Button Hover Effects */
.crm-action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.crm-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.crm-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.crm-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Pipeline Column Styling */
.pipeline-column {
    min-width: 300px;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.pipeline-column.drag-over {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
}

.pipeline-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(75, 85, 99, 0.3);
}

/* Lead Score Indicator */
.lead-score {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lead-score.hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.lead-score.warm {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.lead-score.cold {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.lead-score:hover {
    transform: scale(1.1);
}

/* ==========================================
   PROJECTS TAB ENHANCEMENTS
   ========================================== */

/* Project Header Gradient Animation */
.projects-header {
    position: relative;
    overflow: hidden;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate-gradient 12s linear infinite;
}

/* KPI Card Enhancements */
.kpi-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.kpi-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

/* Project Card Animations */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(168, 85, 247, 0.25);
}

/* Project Status Badge */
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.project-status.on-track::before {
    background: #10b981;
}

.project-status.at-risk::before {
    background: #f59e0b;
}

.project-status.delayed::before {
    background: #ef4444;
}

.project-status:hover {
    transform: scale(1.08);
}

/* Progress Bar with Gradient */
.project-progress {
    height: 8px;
    background: rgba(75, 85, 99, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.project-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 9999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Timeline View Enhancements */
.timeline-view {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gantt Chart Container */
.gantt-container {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Project View Transitions */
.projects-view-enter {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-view-exit {
    animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Milestone Badge */
.milestone-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.milestone-badge:hover {
    background: #a855f7;
    color: white;
    transform: scale(1.05);
}

/* Task Count Indicator */
.task-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.task-count:hover {
    background: #a855f7;
    color: white;
    transform: scale(1.15);
}

/* Team Member Avatars */
.team-avatars {
    display: flex;
    align-items: center;
}

.team-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.team-avatar:first-child {
    margin-left: 0;
}

.team-avatar:hover {
    transform: translateY(-4px) scale(1.15);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* Search Input for Projects */
.projects-search {
    transition: all 0.3s ease;
}

.projects-search:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* ==========================================
   ORG CHART TAB ENHANCEMENTS
   ========================================== */

/* Org Chart Header */
.orgchart-header {
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

.orgchart-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: float-orb 20s ease-in-out infinite;
}

/* File Upload Zone */
.orgchart-upload-zone {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px dashed rgba(6, 182, 212, 0.3);
}

.orgchart-upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.orgchart-upload-zone:hover::before {
    opacity: 1;
}

.orgchart-upload-zone:hover {
    border-color: #06b6d4;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.orgchart-upload-zone.drag-over {
    border-color: #0ea5e9;
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
}

.upload-icon {
    transition: all 0.3s ease;
}

.orgchart-upload-zone:hover .upload-icon {
    transform: scale(1.2) translateY(-5px);
}

/* Parse Button */
.parse-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.parse-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.parse-btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: 0s;
}

.parse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.3);
}

/* Parsing Spinner */
.parsing-spinner {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success Banner */
.success-banner {
    animation: slideInFromTop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download Buttons */
.orgchart-download-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.orgchart-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.orgchart-download-btn:hover::before {
    left: 100%;
}

.orgchart-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Visualization Container */
.viz-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.viz-container:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

/* Reset Zoom Button */
.reset-zoom-btn {
    transition: all 0.3s ease;
}

.reset-zoom-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   PROPOSALS TAB ENHANCEMENTS
   ========================================== */

/* Proposals Header */
.proposals-header {
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

.proposals-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: float-orb 18s ease-in-out infinite;
}

/* Proposal Form Inputs */
.proposal-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #374151;
    border: 1px solid #4b5563;
}

.proposal-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3), 0 4px 12px rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    background: #1f2937;
}

.proposal-input:hover {
    border-color: #6b7280;
    background: #1f2937;
}

/* Proposal Drop Zone */
.proposal-drop-zone {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px dashed #6b7280;
}

.proposal-drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proposal-drop-zone:hover::before {
    opacity: 1;
}

.proposal-drop-zone:hover {
    border-color: #a855f7;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.proposal-drop-zone.drag-over {
    border-color: #ec4899;
    background: rgba(168, 85, 247, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
}

.proposal-file-icon {
    transition: all 0.3s ease;
}

.proposal-drop-zone:hover .proposal-file-icon {
    transform: scale(1.2) translateY(-5px);
}

/* Action Buttons */
.proposal-action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proposal-action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.proposal-action-btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: 0s;
}

.proposal-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* File Preview */
.file-preview-badge {
    animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Container */
.proposal-form-container {
    position: relative;
    transition: all 0.3s ease;
}

.proposal-form-container:hover {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

/* Label Glow Effect */
.proposal-label {
    transition: all 0.2s ease;
}

.proposal-input:focus + .proposal-label,
.proposal-input:focus ~ .proposal-label {
    color: #c084fc;
}

/* ==========================================
   ESTIMATES (BOE) TAB ENHANCEMENTS
   ========================================== */

/* Estimates Header */
.estimates-header {
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

/* Sub-Tab Buttons */
.boe-tab-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.boe-tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.boe-tab-btn:hover::before {
    width: 400px;
    height: 400px;
}

.boe-tab-btn.active {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* BOE Form Inputs */
.boe-input {
    transition: all 0.3s ease;
}

.boe-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Scope Drop Zone */
.boe-drop-zone {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.boe-drop-zone:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* AI Estimate Button */
.ai-estimate-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-estimate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ai-estimate-btn:hover::before {
    left: 100%;
}

/* Pricing Model Cards */
.pricing-model-card {
    transition: all 0.3s ease;
}

.pricing-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.pricing-model-card input:checked ~ * {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* ==========================================
   RESUME BUILDER TAB
   ========================================== */
.resume-header { position: relative; overflow: hidden; animation: gradientShift 8s ease infinite; }
.resume-input { transition: all 0.3s ease; }
.resume-input:focus { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.resume-action-btn { position: relative; overflow: hidden; transition: all 0.3s ease; }
.resume-action-btn:hover { transform: translateY(-3px) scale(1.02); }

/* ==========================================
   KNOWLEDGE BASE TAB
   ========================================== */
.kb-header { position: relative; overflow: hidden; animation: gradientShift 8s ease infinite; }
.kb-search { transition: all 0.3s ease; }
.kb-search:focus { transform: scale(1.02); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.kb-card { transition: all 0.3s ease; }
.kb-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2); }

/* ==========================================
   ABOUT TAB
   ========================================== */
.about-header { position: relative; overflow: hidden; animation: gradientShift 8s ease infinite; }
.feature-card { transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3); }

/* ==========================================
   ADMIN TAB
   ========================================== */
.admin-header { position: relative; overflow: hidden; animation: gradientShift 8s ease infinite; }
.admin-card { transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); }
.admin-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); }

/* ==========================================
   FINANCIALS TAB ENHANCEMENTS
   ========================================== */

/* Financial Header Gradient */
.financials-header {
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

.financials-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float-orb 15s ease-in-out infinite;
}

/* KPI Cards with Hover Effects */
.financial-kpi-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.financial-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.financial-kpi-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2), 0 0 30px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.financial-kpi-card:hover::before {
    transform: scaleX(1);
}

.kpi-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--value-color, #10b981) 0%, var(--value-color-dark, #059669) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.financial-kpi-card:hover .kpi-icon {
    transform: scale(1.2) rotate(5deg);
}

/* View Switcher Buttons */
.finance-view-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.finance-view-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.finance-view-btn:hover::before {
    width: 400px;
    height: 400px;
}

.finance-view-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Drag and Drop Zones */
.drop-zone {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(156, 163, 175, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.drop-zone:hover::before,
.drop-zone.drag-over::before {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    animation: pulse-border 2s ease-in-out infinite;
}

.drop-zone.drag-over {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.drop-zone-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.drop-zone:hover .drop-zone-icon {
    transform: scale(1.2) translateY(-5px);
}

/* Invoice/Expense Cards */
.financial-item-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.financial-item-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981, #059669);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.financial-item-card:hover {
    transform: translateX(8px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: -4px 0 0 0 #10b981, 0 4px 12px rgba(0, 0, 0, 0.3);
}

.financial-item-card:hover::before {
    transform: scaleY(1);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge.paid {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.paid::before {
    background: #10b981;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.pending::before {
    background: #f59e0b;
}

.status-badge.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.overdue::before {
    background: #ef4444;
}

/* Amount Display */
.amount-display {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.amount-display.positive {
    color: #10b981;
}

.amount-display.negative {
    color: #ef4444;
}

/* View Transitions */
.finance-view-enter {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.finance-view-exit {
    animation: slideOutToLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Action Buttons */
.finance-action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.finance-action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.4s ease;
}

.finance-action-btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: 0s;
}

.finance-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Chart Containers */
.finance-chart-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.finance-chart-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

/* Staggered Animation Support */
.financial-item-card {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.financial-item-card:nth-child(1) { animation-delay: 0.05s; }
.financial-item-card:nth-child(2) { animation-delay: 0.1s; }
.financial-item-card:nth-child(3) { animation-delay: 0.15s; }
.financial-item-card:nth-child(4) { animation-delay: 0.2s; }
.financial-item-card:nth-child(5) { animation-delay: 0.25s; }
.financial-item-card:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   OPPORTUNITIES TAB ENHANCEMENTS
   ========================================== */

/* Opportunities Header Gradient */
.opportunities-header {
    position: relative;
    overflow: hidden;
}

.opportunities-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: rotate-gradient 15s linear infinite;
}

/* Pipeline Control Buttons */
.pipeline-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pipeline-btn:hover::before {
    width: 400px;
    height: 400px;
}

.pipeline-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.pipeline-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Company Profile Card */
.profile-card {
    transition: all 0.3s ease;
}

.profile-input {
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 500;
}

.profile-input::placeholder {
    color: #6b7280 !important;
    opacity: 0.8;
}

.profile-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    color: #111827 !important;
}

/* Pipeline Progress Container */
.progress-container {
    position: relative;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

/* Status Indicator with Pulse */
.status-pulse {
    animation: pulse-grow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-grow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

/* Live Results Card */
.live-result-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.live-result-card:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 0 0 #14b8a6;
    background-color: rgba(20, 184, 166, 0.05);
}

/* Win Probability Badge */
.win-probability {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.win-probability.high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.win-probability.medium {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.win-probability.low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.win-probability:hover {
    transform: scale(1.08);
}

/* Opportunity Type Badge */
.opp-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.opp-type-badge.sbir {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.opp-type-badge.grant {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.opp-type-badge.contract {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.opp-type-badge:hover {
    transform: scale(1.05);
}

/* Log Container Enhancements */
.log-container {
    position: relative;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.log-entry {
    padding: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    animation: slideInLog 0.3s ease-out;
}

@keyframes slideInLog {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-entry.success {
    border-left-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

.log-entry.error {
    border-left-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.log-entry.info {
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* Download Button States */
.download-btn {
    transition: all 0.3s ease;
}

.download-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Analytics Card Hover */
.analytics-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.analytics-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.25);
}

/* Live Search Input */
.live-search {
    transition: all 0.3s ease;
}

.live-search:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}
