/* Enhanced styles for IG/OS Prospect Pipeline Manager */

/* Smooth transitions for interactive elements */
.transition-colors {
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Enhanced Kanban column styling with better differentiation */
.kanban-column {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Unique styling for each column */
.kanban-column:nth-child(1) {
    /* On Deck - Blue theme */
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.kanban-column:nth-child(3) {
    /* On Process - Yellow theme */
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.kanban-column:nth-child(5) {
    /* Done - Green theme */
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.kanban-column:nth-child(6) {
    /* Blocked - Red theme */
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Column headers with matching colors and icons */
.kanban-column:nth-child(1) h2 {
    color: #1d4ed8;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}



.kanban-column:nth-child(3) h2 {
    color: #d97706;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}



.kanban-column:nth-child(5) h2 {
    color: #047857;
    border-bottom: 2px solid #10b981;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}



.kanban-column:nth-child(6) h2 {
    color: #dc2626;
    border-bottom: 2px solid #ef4444;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}



/* Hover effects for columns */
.kanban-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.kanban-column:nth-child(1):hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.kanban-column:nth-child(3):hover {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.kanban-column:nth-child(5):hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.kanban-column:nth-child(6):hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.kanban-column > div[id] {
    flex: 1;
    min-height: 350px;
    max-height: calc(100vh - 200px); /* Allow scrolling */
    overflow-y: auto;
    transition: background-color 0.2s ease-in-out;
    padding-bottom: 1rem;
}

/* Compact card styling for kanban view */
.prospect-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    padding: 0.75rem !important; /* Smaller padding */
    font-size: 0.875rem; /* Smaller text */
}

/* Hide badges and options in kanban view */
.kanban-column .prospect-card .triage-badges,
.kanban-column .prospect-card .niche-badge,
.kanban-column .prospect-card .maturity-badge,
.kanban-column .prospect-card .source-badge {
    display: none !important;
}

/* Hide manual/automatic indicator in kanban */
.kanban-column .prospect-card .bg-gray-100 {
    display: none !important;
}

/* Make cards more compact */
.kanban-column .prospect-card .grid-cols-2 {
    gap: 0.25rem;
    font-size: 0.75rem;
}

.kanban-column .prospect-card .mb-2 {
    margin-bottom: 0.5rem;
}

.kanban-column .prospect-card .mb-1 {
    margin-bottom: 0.25rem;
}

/* Prospect card hover effects */
.prospect-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.prospect-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Smaller cards in kanban columns */
.kanban-column .prospect-card:hover {
    transform: translateY(-1px); /* Less dramatic hover for compact cards */
}

/* Option button styles */
.niche-option, .maturity-option, .triage-option, .manual-niche-option, .manual-maturity-option {
    transition: all 0.2s ease-in-out;
}

.niche-option:hover, .maturity-option:hover, .triage-option:hover, 
.manual-niche-option:hover, .manual-maturity-option:hover {
    transform: translateY(-1px);
}

/* Sidebar navigation styles */
nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: none;
}

/* Input focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dropdown animation and positioning */
#dropdown-menu {
    animation: slideDown 0.2s ease-out;
    z-index: 1100; /* Higher than collapsed sidebar */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 600px; /* Constrain width */
}

/* Ensure dropdown appears properly when sidebar is collapsed */
@media (max-width: 1200px) and (min-width: 769px) {
    #dropdown-menu {
        left: 0; /* Don't offset for collapsed sidebar */
        margin-left: 0;
        z-index: 1200; /* Even higher for collapsed sidebar */
    }
}

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

/* Modal styling */
.modal {
    backdrop-filter: blur(4px);
}

/* Card editing styles */
.prospect-card {
    position: relative;
}

.prospect-card:hover .edit-card-btn {
    opacity: 1;
}

.edit-card-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

/* Badge styling */
.triage-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.niche-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.maturity-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Input mode toggle styling */
.input-mode-option {
    transition: all 0.2s ease-in-out;
}

.input-mode-option:hover {
    transform: translateY(-1px);
}

/* Notes section styling */
.notes-section {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    border-left: 3px solid #f59e0b;
}

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced button styles */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Loading state styles */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Empty column styling */
.empty-column {
    /* Invisible spacer - maintains grid structure */
}

/* FIXED: Simple Grid Layout - No Overlapping */
.kanban-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 equal columns */
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.kanban-column {
    /* Simple grid item - no flex conflicts */
    width: 100%;
    min-width: 0; /* Allow shrinking below content size */
    box-sizing: border-box;
}

.empty-column {
    display: none !important; /* Force hide empty columns */
}

/* Simple Responsive Breakpoints */

/* Large Screens */
@media (min-width: 1200px) {
    .kanban-container {
        gap: 1rem;
        padding: 0 1rem;
    }
}

/* Medium Screens */
@media (min-width: 900px) and (max-width: 1199px) {
    .kanban-container {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
}

/* Main content area optimization when sidebar is collapsed */
@media (max-width: 1200px) and (min-width: 769px) {
    /* Main content positioning when sidebar is collapsed */
    .flex-1.overflow-hidden {
        position: relative;
        z-index: 10; /* Lower than dropdown but higher than sidebar */
    }
    
    /* Input area positioning */
    #main-content {
        padding-left: 1.5rem; /* Space from collapsed sidebar */
        padding-right: 1rem;
        position: relative;
    }
    
    /* Input field container */
    .relative {
        position: relative;
        z-index: 100; /* Ensure input and dropdown are above everything */
    }
}
    /* Sidebar container */
    .w-64 {
        width: 4rem !important; /* 64px collapsed width */
        transition: width 0.3s ease-in-out;
        overflow: hidden;
        position: relative;
        z-index: 100;
    }
    
    .w-64:hover {
        width: 16rem !important; /* Expand on hover */
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow: visible;
    }
    
    /* Logo section - hide text completely when collapsed */
    .w-64 .p-6 {
        padding: 1rem 0.75rem;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
    }
    
    .w-64 .p-6 h1 {
        display: none; /* Completely hide logo text when collapsed */
    }
    
    .w-64:hover .p-6 {
        text-align: left;
        padding: 1.5rem;
    }
    
    .w-64:hover .p-6 h1 {
        display: block; /* Show logo text on hover */
        animation: slideInLeft 0.3s ease-in-out;
    }
    
    /* Navigation links - icon only when collapsed */
    .w-64 nav {
        padding: 0;
    }
    
    .w-64 nav a {
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        padding: 0.75rem !important;
        margin: 0.25rem;
        border-radius: 0.5rem;
        position: relative;
        overflow: hidden;
    }
    
    .w-64:hover nav a {
        justify-content: flex-start !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Icons - always visible and centered when collapsed */
    .w-64 nav a i {
        display: block !important;
        width: 1.5rem;
        text-align: center;
        flex-shrink: 0;
        margin: 0 !important;
    }
    
    .w-64:hover nav a i {
        margin-right: 0.75rem !important;
    }
    
    /* Text labels - completely hidden when collapsed */
    .w-64 nav a span {
        display: none !important; /* Completely hide text */
    }
    
    .w-64:hover nav a span {
        display: inline !important; /* Show text on hover */
        animation: slideInLeft 0.3s ease-in-out;
    }
    
    /* Red notification dots - positioned for icon-only mode */
    .w-64 nav a .absolute {
        top: 0.5rem !important;
        left: 1.75rem !important;
    }
    
    .w-64:hover nav a .absolute {
        left: 2.5rem !important;
    }
    
    /* Bottom menu - same treatment */
    .w-64 .border-t {
        padding: 0;
        margin-top: auto;
    }
    
    .w-64 .border-t ul li a {
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        padding: 0.75rem !important;
        margin: 0.25rem;
    }
    
    .w-64:hover .border-t ul li a {
        justify-content: flex-start !important;
        padding: 0.75rem 1rem !important;
    }
    
    .w-64 .border-t ul li a i {
        width: 1.5rem;
        text-align: center;
        flex-shrink: 0;
        margin: 0 !important;
    }
    
    .w-64:hover .border-t ul li a i {
        margin-right: 0.75rem !important;
    }
    
    .w-64 .border-t ul li a span {
        display: none !important;
    }
    
    .w-64:hover .border-t ul li a span {
        display: inline !important;
        animation: slideInLeft 0.3s ease-in-out;
    }
    
    /* Hover effects */
    .w-64:hover nav a:hover,
    .w-64:hover .border-t a:hover {
        background-color: rgba(59, 130, 246, 0.1);
    }
    
    /* Animation for text appearing */
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Optimize main content padding when sidebar collapsed */
    #main-content {
        padding: 1.5rem 0.5rem 1.5rem 1rem;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto; /* Allow horizontal scroll if content overflows */
    }
}

/* Tablet Layout - 2x2 Grid */
@media (max-width: 899px) and (min-width: 769px) {
    .kanban-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 1rem;
        padding: 0 0.5rem;
        height: auto;
        overflow-x: visible;
    }
    
    .kanban-column {
        min-width: unset;
        max-width: unset;
        width: auto;
        flex: unset;
    }
    
    /* Arrange columns in 2x2 grid */
    .kanban-column:nth-child(1) { grid-column: 1; grid-row: 1; }
    .kanban-column:nth-child(3) { grid-column: 2; grid-row: 1; }
    .kanban-column:nth-child(5) { grid-column: 1; grid-row: 2; }
    .kanban-column:nth-child(6) { grid-column: 2; grid-row: 2; }
    
    .empty-column {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile Layout Fixes */
    .flex.h-screen {
        flex-direction: column;
    }
    
    /* Compact Mobile Header */
    .w-64 {
        width: 100%;
        height: auto;
        border-r: none;
        border-b: 1px solid #e5e7eb;
    }
    
    /* Logo and main nav in mobile header */
    .w-64 .p-6 {
        padding: 1rem;
    }
    
    .w-64 nav {
        padding: 0;
    }
    
    .w-64 nav ul {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .w-64 nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .w-64 nav li {
        flex-shrink: 0;
    }
    
    .w-64 nav a {
        padding: 0.5rem;
        border-radius: 0.5rem;
        min-width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide text labels, keep only icons */
    .w-64 nav span {
        display: none;
    }
    
    .w-64 .ml-4 {
        margin-left: 0;
    }
    
    /* Hide bottom menu on mobile */
    .w-64 .border-t {
        display: none;
    }
    
    /* Mobile Main Content */
    .flex-1.overflow-hidden {
        height: calc(100vh - 80px); /* Adjust for mobile header */
        overflow-y: auto;
    }
    
    #main-content {
        padding: 1rem;
        height: auto;
    }
    
    /* Mobile Kanban - Horizontal Scroll */
    .kanban-container {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 1rem;
        scrollbar-width: thin;
    }
    
    .kanban-column {
        min-width: 280px;
        flex-shrink: 0;
    }
    
    .empty-column {
        display: none; /* Hide empty spaces */
    }
    
    /* Mobile Cards */
    .prospect-card {
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Mobile Input */
    #prospect-input {
        width: 100%;
        max-width: none;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Mobile Dropdown */
    #dropdown-menu {
        max-width: 100vw;
        left: -1rem;
        right: -1rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* Hide touchpoints on mobile for space */
    .touchpoint-buttons {
        display: none !important;
    }
    
    .card-with-touchpoints {
        flex-direction: column;
    }
    
    /* Mobile API Status */
    #api-status {
        font-size: 0.75rem;
        padding: 0.5rem;
        background: #f9fafb;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile Modal */
    #edit-modal .max-w-2xl {
        max-width: 95vw;
        margin: 1rem;
        max-height: 90vh;
    }
    
    #edit-modal .p-6 {
        padding: 1rem;
    }
    
    /* Better touch targets */
    button, .slider, .touchpoint-radio {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    /* Horizontal scroll indicator */
    .grid-cols-6::-webkit-scrollbar {
        height: 4px;
    }
    
    .grid-cols-6::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
    }
    
    .grid-cols-6::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
}

/* Scrollbar styling */
.kanban-column > div[id]::-webkit-scrollbar {
    width: 4px;
}

.kanban-column > div[id]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.kanban-column > div[id]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.kanban-column > div[id]::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Modal scrollbar */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Enhanced form styling */
.form-section {
    border-left: 3px solid #e5e7eb;
    padding-left: 1rem;
}

.form-section.active {
    border-left-color: #3b82f6;
}

/* Status indicator styles */
.status-indicator {
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Card animation when added */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.prospect-card.new {
    animation: cardSlideIn 0.3s ease-out;
}

/* Drag and drop visual feedback */
.kanban-column > div[id].drag-over {
    background-color: #dbeafe;
    border: 2px dashed #3b82f6;
}

/* Success/error message styles */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    background-color: #10b981;
    color: white;
}

.toast.error {
    background-color: #ef4444;
    color: white;
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Touchpoint system styles */
.card-with-touchpoints {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.touchpoint-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.touchpoint-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.touchpoint-radio:hover {
    border-color: #3b82f6;
    transform: scale(1.1);
}

.touchpoint-radio.selected {
    background: #3b82f6;
    border-color: #1d4ed8;
}

.touchpoint-radio.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* On/Off Slider Styles */
.slider-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider.active {
    background: #10b981;
}

.slider-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider.active .slider-thumb {
    transform: translateX(20px);
}

/* LED Indicator Styles */
.led-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.led-indicator.active {
    opacity: 1;
}

.led-indicator.blink-slow {
    animation: blink-slow 3s infinite;
}

.led-indicator.blink-medium {
    animation: blink-medium 2s infinite;
}

.led-indicator.blink-fast {
    animation: blink-fast 1s infinite;
}

@keyframes blink-slow {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes blink-medium {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes blink-fast {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Tooltip styles */
.touchpoint-tooltip {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.touchpoint-tooltip.show {
    opacity: 1;
}

/* Responsive adjustments for touchpoints */
@media (max-width: 1024px) {
    .card-with-touchpoints {
        flex-direction: column;
    }
    
    .touchpoint-buttons {
        flex-direction: row;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Mobile-specific enhancements */
@media (max-width: 480px) {
    /* Extra small mobile devices */
    .kanban-column {
        min-width: 250px;
    }
    
    #main-content {
        padding: 0.5rem;
    }
    
    .prospect-card {
        padding: 0.75rem;
    }
    
    /* Compact mobile header */
    .w-64 .p-6 h1 {
        font-size: 1.25rem;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .touchpoint-buttons {
        display: none; /* Hide on mobile for space */
    }
    
    .card-with-touchpoints {
        flex-direction: column;
    }
}

/* Flow Mode Styles */
#flow-modal {
    backdrop-filter: blur(8px);
    transition: all 0.3s ease-in-out;
}

#flow-modal.show {
    opacity: 1;
    visibility: visible;
}

.flow-card {
    max-width: 500px;
    min-height: 400px;
    animation: flowCardEnter 0.5s ease-out;
}

@keyframes flowCardEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Flow Mode Timer Styles */
.timer-display {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-display.overtime {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% { 
        background: rgba(239, 68, 68, 0.2); 
    }
    50% { 
        background: rgba(239, 68, 68, 0.4); 
    }
}

/* Flow Mode Enhanced Radio Buttons */
.flow-touchpoint {
    width: 60px;
    height: 60px;
    border: 3px solid #d1d5db;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #6b7280;
    margin: 0.5rem;
}

.flow-touchpoint:hover {
    border-color: #3b82f6;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.flow-touchpoint.selected {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #1d4ed8;
    color: white;
    transform: scale(1.05);
}

.flow-touchpoint.next-active {
    border-color: #f59e0b;
    animation: flowBlink 1.5s infinite;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.flow-touchpoint.hidden {
    display: none;
}

@keyframes flowBlink {
    0%, 100% { 
        border-color: #f59e0b;
        background: rgba(245, 158, 11, 0.1);
    }
    50% { 
        border-color: #d97706;
        background: rgba(245, 158, 11, 0.3);
        transform: scale(1.15);
    }
}

/* Flow Mode Progress Styles */
.flow-progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem auto;
}

.flow-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.5s ease-in-out;
    border-radius: 2px;
}

/* Bell Sound Indicator */
.bell-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    z-index: 1000;
    animation: bellPulse 0.5s ease-in-out;
}

@keyframes bellPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Flow Mode Card Enhancements */
#flow-card-container .prospect-card {
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    margin: 0;
}

/* Flow Mode Button Styles */
.flow-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.flow-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.flow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flow-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.flow-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Flow Mode Responsive Design */
@media (max-width: 768px) {
    .flow-card {
        max-width: 90vw;
        min-height: 300px;
    }
    
    .flow-touchpoint {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    #flow-modal .p-8 {
        padding: 1rem;
    }
    
    .timer-display {
        font-size: 1rem;
        padding: 0.25rem 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .prospect-card {
        border: 2px solid #000;
    }
    
    .bg-gray-50 {
        background-color: #f9f9f9;
        border: 1px solid #ccc;
    }
}