/* Modern Clay-inspired Design System */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, .modern-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* App Layout with Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-secondary);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    min-height: 70px;
    display: flex;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-logo {
    height: 32px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary-color);
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 1rem;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header */
.top-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info-header .user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-info-header .user-org {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Modern Navbar (kept for backward compatibility, but hidden) */
.modern-navbar {
    display: none;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.navbar-brand-modern:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 8px;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-org {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.btn-logout:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Main Content */
.modern-main {
    flex: 1;
    padding-bottom: 2rem;
}

.main-content {
    padding: 1.5rem 2rem;
    max-width: 100%;
}

/* Modern Alerts */
.modern-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 14px;
    border: 1px solid;
    animation: slideDown 0.3s ease-out;
}

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

.modern-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.modern-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.modern-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.modern-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.btn-close-modern {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.btn-close-modern:hover {
    opacity: 1;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2.5rem;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Workflow Sections */
.workflow-section {
    margin-bottom: 3rem;
}

.workflow-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.workflow-section-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.workflow-section-icon.planning {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.workflow-section-icon.testing {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.workflow-section-icon.monitoring {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.workflow-section-icon.reporting {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.workflow-section-icon.admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.workflow-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.workflow-section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Modern Cards */
.tool-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 24px;
    transition: transform 0.2s;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tool-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.tool-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.tool-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.tool-icon-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.tool-icon-dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.tool-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.tool-card-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active {
    background: #ecfdf5;
    color: #065f46;
}

.badge-soon {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
}

.btn-primary-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-modern {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary-modern:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.btn-lg-modern {
    padding: 0.875rem 1.75rem;
    font-size: 15px;
}

/* Modern Forms */
.form-label-modern {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control-modern::placeholder {
    color: var(--text-tertiary);
}

.form-text-modern {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 0.375rem;
}

.form-select-modern {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 16px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Modern Sections */
.section-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Loading States */
.loading-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.spinner-modern {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.loading-subtext {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Result Cards */
.result-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

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

.result-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-header-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.result-body {
    padding: 1.5rem;
}

.result-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 14px;
    color: var(--text-primary);
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .user-info {
        display: none;
    }
    
    .workflow-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-content {
        padding: 1rem;
    }
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--text-secondary) !important;
}

.mb-4-custom {
    margin-bottom: 1.5rem !important;
}

.gap-3-custom {
    gap: 1rem !important;
}

/* --- Traffic Overview --- */
.page-header .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.page-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.traffic-meta {
    font-size: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    padding: 0.4rem 0.75rem;
}

.traffic-legend .legend-badges {
    min-width: 320px;
}

.legend-item {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 0.75rem;
}

.legend-count {
    min-width: 36px;
}

.traffic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.traffic-badge-very_high {
    background: linear-gradient(135deg, #312e81 0%, #6366f1 100%);
    color: #f9fafb;
}

.traffic-badge-high {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #f8fafc;
}

.traffic-badge-medium {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #ecfeff;
}

.traffic-badge-low {
    background: linear-gradient(135deg, #b45309 0%, #fb923c 100%);
    color: #fff7ed;
}

.traffic-badge-very_low {
    background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%);
    color: #fef2f2;
}

.traffic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.traffic-client-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.traffic-client-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.traffic-client-total .traffic-total-label {
    font-size: 11px;
    letter-spacing: 0.08em;
}

.traffic-total-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.traffic-template-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.traffic-template-row {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
}

.traffic-template-row:last-child {
    margin-bottom: 0;
}

.traffic-template-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.traffic-template-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.traffic-template-details {
    font-size: 12px;
}

.traffic-template-indicator {
    margin-top: 0.5rem;
}

.traffic-template-bar {
    margin-top: 0.75rem;
}

.traffic-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.05);
}

.traffic-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.traffic-bar-fill.traffic-badge-very_high {
    background: linear-gradient(90deg, #312e81, #6366f1);
}

.traffic-bar-fill.traffic-badge-high {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.traffic-bar-fill.traffic-badge-medium {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.traffic-bar-fill.traffic-badge-low {
    background: linear-gradient(90deg, #b45309, #fb923c);
}

.traffic-bar-fill.traffic-badge-very_low {
    background: linear-gradient(90deg, #7f1d1d, #ef4444);
}

.traffic-template-recommendation {
    font-size: 12px;
}

.traffic-footnote {
    font-size: 11px;
    line-height: 1.4;
}

.traffic-controls .btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.traffic-empty-state {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .traffic-grid {
        grid-template-columns: 1fr;
    }
}

/* Win Rate Dashboard */
.win-rate-table-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.win-rate-table {
    width: 100%;
    border-collapse: collapse;
}

.win-rate-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.win-rate-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.win-rate-table th.text-center {
    text-align: center;
}

.win-rate-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.win-rate-table tbody tr:hover {
    background: var(--bg-secondary);
}

.win-rate-table tbody tr:last-child td {
    border-bottom: none;
}

.client-name {
    font-weight: 500;
    color: var(--text-primary);
}

.win-rate-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.win-rate-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.win-rate-value.win-high {
    color: #10b981;
}

.win-rate-value.win-medium {
    color: #f59e0b;
}

.win-rate-value.win-low {
    color: #ef4444;
}

.win-rate-count {
    font-size: 12px;
    color: var(--text-tertiary);
}

.win-rate-info {
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-title i {
    color: var(--info-color);
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.info-text:last-child {
    margin-bottom: 0;
}

.info-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Client Selection Cards */
.client-selection-container {
    margin-top: 2rem;
}

.client-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.client-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 1rem;
}

.client-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.client-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Win Rate Stats Cards */
.win-rate-stats-container {
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-value.win-high {
    color: #10b981;
}

.stat-value.win-medium {
    color: #f59e0b;
}

.stat-value.win-low {
    color: #ef4444;
}

.stat-count {
    font-size: 14px;
    color: var(--text-tertiary);
}
