@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Enhanced color theme variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.dark {
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced number balls with modern styling */
#result-area > div > div > div,
.prediction-item div > div,
.method-card div > div,
.history-item div > div {
    box-shadow: var(--card-shadow);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark #result-area > div > div > div,
.dark .prediction-item div > div,
.dark .method-card div > div,
.dark .history-item div > div {
    background: linear-gradient(145deg, #374151, #4b5563);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--card-shadow);
}

/* Special style for the Powerball to make it pop */
.bg-red-500 {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Method toggle switch styling */
#method-toggle:checked + div {
    background-color: #3b82f6;
}

#method-toggle:focus + div {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

/* Score component styling */
.score-component {
    transition: all 0.3s ease;
}

.score-component:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Progress bars for scores */
.score-component .bg-blue-500,
.score-component .bg-green-500,
.score-component .bg-yellow-500,
.score-component .bg-red-500 {
    transition: width 0.8s ease-in-out;
}

/* Enhanced method comparison cards */
.method-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
}

.method-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.dark .method-card {
    background: linear-gradient(145deg, #1f2937, #374151);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .method-card:hover {
    background: linear-gradient(145deg, #374151, #4b5563);
}

.method-card::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;
}

.method-card:hover::before {
    left: 100%;
}

/* Prediction history styling */
.prediction-history {
    max-height: 500px;
}

.history-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.history-item:hover {
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateX(4px);
}

.dark .history-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Traceability info styling */
#traceability-info {
    border-left: 4px solid #3b82f6;
    animation: slideIn 0.5s ease-out;
}

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

/* Score details animation */
#score-details {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Enhanced button styling */
.deterministic-feature button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.deterministic-feature button::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;
}

.deterministic-feature button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    filter: brightness(1.1);
}

.deterministic-feature button:hover::before {
    left: 100%;
}

.deterministic-feature button:active {
    transform: translateY(-1px);
}

/* Success button variant */
.bg-emerald-600 {
    background: var(--success-gradient) !important;
}

.bg-emerald-600:hover {
    box-shadow: 0 8px 30px rgba(17, 153, 142, 0.4) !important;
}

/* Warning button variant */
.bg-amber-600 {
    background: var(--warning-gradient) !important;
}

.bg-amber-600:hover {
    box-shadow: 0 8px 30px rgba(240, 147, 251, 0.4) !important;
}

/* Method badge styling */
.prediction-item span {
    animation: pulse 2s infinite;
}

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

/* Responsive design improvements */
@media (max-width: 768px) {
    .method-comparison .grid {
        grid-template-columns: 1fr;
    }

    .deterministic-feature {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .deterministic-feature button {
        padding: 0.75rem 1rem;
    }
}

/* Loading state improvements */
.fas.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced toast notification */
#toast-notification {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Method info panel styling */
.method-info {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.method-info:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.dark .method-info:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Score visualization enhancements */
.score-component .rounded-full {
    position: relative;
    overflow: hidden;
}

.score-component .rounded-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Improved focus states for accessibility */
button:focus,
input:focus,
#method-toggle:focus + div {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode enhancements */
.dark .method-card {
    border-color: rgba(75, 85, 99, 0.3);
}

.dark .score-component:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Prediction item styling */
.prediction-item {
    transition: all 0.3s ease;
    border-radius: 1rem;
    padding: 1rem;
    border: 2px solid transparent;
}

.prediction-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

.dark .prediction-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Enhanced number ball styling */
.prediction-item div > div,
.method-card div > div,
.history-item div > div {
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.prediction-item div > div:hover,
.method-card div > div:hover,
.history-item div > div:hover {
    transform: scale(1.1);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== PIPELINE DASHBOARD STYLES ===== */

/* Pipeline status cards */
.pipeline-status-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.dark .pipeline-status-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Pipeline status indicators */
#pipeline-status-indicator.status-running {
    background-color: #059669; /* muted green */
    animation: pulse-green 2s infinite;
}

#pipeline-status-indicator.status-idle {
    background-color: #64748b; /* softer gray */
}

#pipeline-status-indicator.status-failed {
    background-color: #dc2626; /* muted red */
    animation: pulse-red 2s infinite;
}

#pipeline-status-indicator.status-warning {
    background-color: #d97706; /* muted amber */
    animation: pulse-yellow 2s infinite;
}

#system-health-indicator.health-healthy {
    background-color: #059669; /* muted green */
}

#system-health-indicator.health-degraded {
    background-color: #d97706; /* muted amber */
}

#system-health-indicator.health-unhealthy {
    background-color: #dc2626; /* muted red */
}

#system-health-indicator.health-unknown {
    background-color: #64748b; /* softer gray */
}

/* Status indicator animations */
@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
    }
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.6);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(185, 28, 28, 0);
    }
}

@keyframes pulse-yellow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
    }
}

/* Pipeline action buttons */
#trigger-pipeline-btn {
    position: relative;
    overflow: hidden;
}

#trigger-pipeline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

#trigger-pipeline-btn:disabled {
    transform: none;
    box-shadow: none;
}

#view-logs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

/* Auto-refresh toggle styling */
#auto-refresh-checkbox:checked + div {
    background-color: #6366f1; /* indigo */
}

#auto-refresh-checkbox:focus + div {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* Execution history table styling */
#execution-history-tbody tr {
    transition: all 0.3s ease;
}

#execution-history-tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateX(2px);
}

.dark #execution-history-tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

/* Status badges in table */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.success {
    background-color: rgba(5, 150, 105, 0.1);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.status-badge.completed {
    background-color: rgba(5, 150, 105, 0.1);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.status-badge.failed {
    background-color: rgba(185, 28, 28, 0.1);
    color: #991b1b;
    border: 1px solid rgba(185, 28, 28, 0.2);
}

.status-badge.running {
    background-color: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
    animation: pulse 2s infinite;
}

.status-badge.warning {
    background-color: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.status-badge.unknown {
    background-color: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Dark mode status badges */
.dark .status-badge.success {
    background-color: rgba(5, 150, 105, 0.2);
    color: #10b981;
}

.dark .status-badge.completed {
    background-color: rgba(5, 150, 105, 0.2);
    color: #10b981;
}

.dark .status-badge.failed {
    background-color: rgba(185, 28, 28, 0.2);
    color: #ef4444;
}

.dark .status-badge.running {
    background-color: rgba(37, 99, 235, 0.2);
    color: #3b82f6;
}

.dark .status-badge.warning {
    background-color: rgba(217, 119, 6, 0.2);
    color: #f59e0b;
}

.dark .status-badge.unknown {
    background-color: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

/* Pipeline trigger modal */
#pipeline-trigger-modal {
    backdrop-filter: blur(8px);
}

#pipeline-trigger-modal .bg-white {
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Pipeline notifications */
#pipeline-notification {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 300px;
}

#pipeline-notification.success {
    background-color: rgba(16, 185, 129, 0.9);
    color: white;
}

#pipeline-notification.error {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
}

#pipeline-notification.info {
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
}

#pipeline-notification.warning {
    background-color: rgba(245, 158, 11, 0.9);
    color: white;
}

/* Last generated plays showcase */
#last-generated-plays {
    animation: slideInUp 0.5s ease-out;
}

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

/* Enhanced pipeline dashboard background */
.pipeline-dashboard-bg {
    background: var(--primary-gradient);
    position: relative;
}

.pipeline-dashboard-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.dark .pipeline-dashboard-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.dark .pipeline-dashboard-bg::before {
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

/* Loading states for pipeline components */
.pipeline-loading {
    position: relative;
    overflow: hidden;
}

.pipeline-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

.dark .pipeline-loading::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Progress bars for pipeline operations */
.pipeline-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(156, 163, 175, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.pipeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Powerball number styling */
.powerball-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-right: 4px;
}

.powerball-number.small {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* Status indicators */
.status-idle {
    background-color: #6b7280;
}

.status-running {
    background-color: #3b82f6;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-completed {
    background-color: #10b981;
}

.status-failed {
    background-color: #ef4444;
}

.status-unknown {
    background-color: #9ca3af;
}

.status-starting {
    background-color: #f59e0b;
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Enhanced status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.running {
    background-color: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-badge.completed {
    background-color: rgba(5, 150, 105, 0.1);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.status-badge.failed {
    background-color: rgba(185, 28, 28, 0.1);
    color: #991b1b;
    border: 1px solid rgba(185, 28, 28, 0.2);
}

.status-badge.starting {
    background-color: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Health indicators */
.health-healthy {
    background-color: #10b981; /* muted emerald */
}

.health-degraded {
    background-color: #f59e0b; /* muted amber */
}

.health-unhealthy {
    background-color: #ef4444; /* muted red */
}

.health-unknown {
    background-color: #9ca3af; /* lighter gray */
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.completed {
    background-color: #f0fdf4;
    color: #15803d;
}

.status-badge.running {
    background-color: #f0f9ff;
    color: #0369a1;
}

.status-badge.failed {
    background-color: #fef2f2;
    color: #dc2626;
}

.status-badge.pending {
    background-color: #fffbeb;
    color: #d97706;
}

/* Dark mode status badges */
.dark .status-badge.completed {
    background-color: #064e3b;
    color: #a7f3d0;
}

.dark .status-badge.running {
    background-color: #0c4a6e;
    color: #bae6fd;
}

.dark .status-badge.failed {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.dark .status-badge.pending {
    background-color: #78350f;
    color: #fcd34d;
}

/* Toast notifications */
.success {
    background-color: #10b981;
}

.error {
    background-color: #ef4444;
}

.warning {
    background-color: #f59e0b;
}

.info {
    background-color: #6366f1;
}

/* Modern Dashboard Styling */
.profile-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-track {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card hover effects */
.bg-white:hover,
.dark .bg-gray-800:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Toggle switch animations */
.toggle-switch {
    transition: all 0.3s ease;
}

.toggle-switch span {
    transition: all 0.3s ease;
}

/* Progress bar animations */
.bg-green-600,
.bg-blue-600,
.bg-yellow-600,
.bg-purple-600 {
    transition: width 0.5s ease-in-out;
}

/* Button hover effects */
button:hover:not(:disabled) {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

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

/* Modal animations */
.modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

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

/* Dashboard specific grid styling */
.dashboard-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced focus states */
input:focus,
select:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode enhancements */
.dark input[type="range"]::-webkit-slider-track {
    background: #4a5568;
}

.dark input[type="range"]::-moz-range-track {
    background: #4a5568;
}

/* Status indicators with animations */
.status-indicator {
    animation: pulse 2s infinite;
}

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

/* Metric cards styling */
.metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* Configuration section styling */
.config-section {
    transition: all 0.3s ease;
}

.config-section:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Interactive elements */
.interactive:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Syndicate-specific styles */
.syndicate-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    border: 2px solid #22c55e;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-premium {
    background-color: #faf5ff;
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}

.tier-high {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.tier-medium {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}

.tier-standard {
    background-color: #f9fafb;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.syndicate-loading {
    background: rgba(34, 197, 94, 0.1);
    border-radius: 1rem;
    padding: 3rem;
}

.syndicate-table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.syndicate-table-container::-webkit-scrollbar {
    width: 8px;
}

.syndicate-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.syndicate-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.syndicate-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.number-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.number-ball.white {
    background-color: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.number-ball.power {
    background-color: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.coverage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.coverage-stat {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.coverage-stat.premium {
    border-color: #a855f7;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.coverage-stat.high {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.coverage-stat.medium {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.coverage-stat.standard {
    border-color: #6b7280;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}