/* ============================================
   KAN VISUALIZER - PREMIUM DESIGN SYSTEM
   Modern, Dynamic, Glassmorphic Interface
   ============================================ */

/* CSS Variables for Design Tokens */
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Solid Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #4ecdc4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Neutrals */
    --bg-dark: #0f0f23;
    --bg-deeper: #1a1a2e;
    --surface: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
    --shadow-neon: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(102, 126, 234, 0.3);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(78, 205, 196, 0.15) 0%, transparent 40%),
        var(--bg-dark);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

header h1::before {
    content: '🧠';
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: var(--space-xs);
}

/* ============================================
   NAVIGATION CONTROLS
   ============================================ */
nav.controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

nav.controls .container {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.control-group label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: lowercase;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

/* Enhanced Select Dropdowns */
select {
    appearance: none;
    -webkit-appearance: none;
    padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    min-width: 180px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

select:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-1px);
}

select:focus {
    outline: none;
    box-shadow: var(--shadow-md), var(--shadow-neon);
}

/* Enhanced Button */
button {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.play-btn {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-sm) var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.play-btn::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: var(--transition-slow);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:active {
    transform: translateY(0);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    padding-bottom: var(--space-2xl);
}

/* ============================================
   PANELS
   ============================================ */
.panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-xl);
    overflow: hidden;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: panelFadeIn 0.5s ease-out;
}

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

.panel.active {
    display: block;
}

/* Panel Header */
.panel-header {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    position: relative;
    overflow: hidden;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerGlow 10s linear infinite;
}

@keyframes headerGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.panel-header p {
    opacity: 0.9;
    margin-top: var(--space-xs);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.panel-header .info {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.panel-header .controls {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    display: flex;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

.panel-header .controls select {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.panel-header .controls select option {
    color: var(--text-primary);
    background: white;
}

.panel-header .controls label {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   VISUALIZATION CONTAINERS
   ============================================ */
.visualization-container {
    padding: var(--space-xl);
    min-height: 500px;
    display: flex;
    gap: var(--space-xl);
    background: linear-gradient(to bottom, rgba(250, 250, 255, 0.5), white);
}

/* ============================================
   NETWORK VISUALIZATION
   ============================================ */
#network-svg {
    width: 70%;
    height: 600px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    background: 
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: var(--transition-base);
}

#network-svg:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03), var(--shadow-glow);
}

#network-sidebar {
    width: 28%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#layer-details, #edge-details {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition-base);
}

#layer-details:hover, #edge-details:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.3);
}

#layer-details h3, #edge-details h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

#layer-details h3::before {
    content: '📊';
}

#edge-details h3::before {
    content: '🔗';
}

/* ============================================
   SPLINE VISUALIZATION
   ============================================ */
#spline-plot {
    width: 70%;
    height: 500px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    background: white;
    overflow: hidden;
}

#spline-info {
    width: 28%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#function-equation {
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
    border-left: 4px solid var(--primary);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

#function-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ============================================
   INFERENCE VISUALIZATION
   ============================================ */
.input-controls {
    width: 25%;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.input-controls h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.input-controls h3::before {
    content: '🎛️';
}

.inference-visualization {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.activation-flow {
    width: 25%;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.activation-flow h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.activation-flow h3::before {
    content: '⚡';
}

#input-sliders {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.slider-container label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Enhanced Range Slider */
.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #ddd 0%, #ddd 100%);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    border: 3px solid white;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
}

.input-values, .output-display {
    background: linear-gradient(135deg, #e8f2ff 0%, #dbeafe 100%);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

#current-output {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

#target-output {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   TRAINING VISUALIZATION
   ============================================ */
#training-plots {
    width: 70%;
    min-height: 500px;
}

#training-stats {
    width: 28%;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

#training-stats h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

#training-stats h3::before {
    content: '📈';
}

#stats-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: white;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.stat-item span {
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   NETWORK GRAPH STYLES
   ============================================ */
.node {
    cursor: pointer;
    transition: var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.node:hover {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.node-input {
    fill: url(#inputGradient);
    stroke: #e55555;
    stroke-width: 3;
}

.node-hidden {
    fill: url(#hiddenGradient);
    stroke: #45b7b8;
    stroke-width: 3;
}

.node-output {
    fill: url(#outputGradient);
    stroke: #5a67d8;
    stroke-width: 3;
}

.edge {
    stroke: #c0c0c0;
    stroke-width: 1.5;
    fill: none;
    cursor: pointer;
    transition: var(--transition-fast);
    stroke-linecap: round;
}

.edge:hover {
    stroke: var(--primary);
    stroke-width: 3;
    filter: drop-shadow(0 0 4px var(--primary));
}

.edge.selected {
    stroke: var(--accent);
    stroke-width: 3;
    filter: drop-shadow(0 0 6px var(--accent));
}

.edge.highlighted {
    stroke: var(--primary);
    stroke-width: 2.5;
}

.edge.connected {
    stroke: var(--primary);
    stroke-width: 2;
    opacity: 1;
}

.edge.active {
    stroke: #ff6b6b;
    stroke-width: 4;
    stroke-dasharray: 8, 4;
    animation: flowDash 1s linear infinite;
    filter: drop-shadow(0 0 8px #ff6b6b);
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -12;
    }
}

.node-label {
    font-size: 11px;
    text-anchor: middle;
    fill: var(--text-primary);
    font-weight: 700;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Data Particle Animation */
.data-particle {
    filter: drop-shadow(0 0 8px #ff6b6b);
    animation: particlePulse 0.5s ease-in-out infinite alternate;
}

@keyframes particlePulse {
    from { r: 4; opacity: 1; }
    to { r: 6; opacity: 0.8; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--space-lg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-overlay p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.5s ease-out;
}

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

/* ============================================
   TOOLTIPS
   ============================================ */
#kan-tooltip {
    position: absolute;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 250px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .visualization-container {
        flex-direction: column;
    }
    
    #network-svg, #spline-plot, #training-plots {
        width: 100%;
    }
    
    #network-sidebar, #spline-info, #training-stats {
        width: 100%;
        margin-top: var(--space-md);
    }
    
    .input-controls, .inference-visualization, .activation-flow {
        width: 100%;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 16px;
        --space-xl: 24px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav.controls .container {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
    
    .control-group {
        justify-content: space-between;
    }
    
    select {
        min-width: 100%;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: var(--space-md);
    }
    
    .panel-header h2 {
        font-size: 1.25rem;
    }
    
    .visualization-container {
        padding: var(--space-md);
    }
    
    #network-svg {
        height: 400px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Value display next to sliders */
.value-display {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
    min-width: 45px;
    text-align: center;
}