/* Device Assessment Tool - Enhanced Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

/* CSS Custom Properties */
:root {
    /* Color Palette - Modern Dark */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(255, 255, 255, 0.08);
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Neon Colors */
    --neon-blue: #00d4ff;
    --neon-purple: #b347d9;
    --neon-green: #00ff88;
    --neon-pink: #ff006e;
    --neon-yellow: #ffff00;
    --neon-cyan: #00ffff;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-accent: var(--neon-blue);
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(99, 102, 241, 0.3);
    --border-glow: var(--neon-blue);
    
    /* 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 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', monospace;
    
    /* Spacing - Reduced */
    --space-xs: 0.25rem;
    --space-sm: 0.375rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    filter: blur(1px);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 70%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 40%;
    animation-delay: 1s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 30%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Main Layout */
.main-container {
    min-height: 100vh;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-wrapper {
    width: 100%;
    max-width: 1400px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

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

/* Header */
.app-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-bottom: 1px solid var(--border-accent);
    padding: var(--space-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    animation: pulse 2s ease-in-out infinite;
}

.logo-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
}

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

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

.app-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    margin: 0;
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
    min-height: 700px;
}

/* Panels */
.input-panel,
.results-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-panel:hover,
.results-panel:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.panel-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.panel-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px currentColor);
}

.progress-indicator {
    width: 100px;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.results-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-warning);
    box-shadow: 0 0 10px currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Form Styles */
.form-grid {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: var(--space-sm);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.label-text {
    color: var(--text-primary);
}

.label-required {
    color: var(--accent-danger);
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
}

.label-optional {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
}

.label-auto {
    color: var(--neon-green);
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: 3rem;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 15px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:read-only {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
}

.input-icon {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* Select Styles */
.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: 3rem;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    appearance: none;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 15px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-sm);
}

/* Style for select placeholder text (when no option is selected) */
.form-select:invalid {
    color: var(--text-muted);
}

.select-arrow {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* Dropdown Styles */
.dropdown-container {
    position: relative;
}

.dropdown-input {
    padding-right: 4rem !important;
}

.dropdown-arrow {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: var(--space-xs);
}

.dropdown-menu.show {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

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

.dropdown-item {
    padding: var(--space-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-primary);
}

.dropdown-item:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Warranty Options */
.warranty-toggle-section {
    margin-top: var(--space-sm);
}

.warranty-options {
    display: flex;
    gap: var(--space-md);
}

.warranty-option {
    flex: 1;
}

.warranty-option input[type="radio"] {
    display: none;
}

.warranty-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.warranty-label:hover {
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.1);
}

.warranty-option input[type="radio"]:checked + .warranty-label {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.warranty-option#no_warranty_option input[type="radio"]:checked + .warranty-label {
    border-color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.warranty-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.warranty-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.warranty-option input[type="radio"]:checked + .warranty-label .warranty-text {
    color: var(--text-primary);
}

/* Source information styling */
.detection-source {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

.source-icon {
    font-size: 1rem;
}

/* Results Grid */
.results-grid {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Semi-Circle Progress Indicator */
.circle-progress-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--space-lg);
    overflow: visible;
}

.score-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-xl);
    overflow: visible;
}

.circle-progress-svg {
    display: block;
    margin: 0 auto;
}

.circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    text-align: center;
    z-index: 2;
}

.circle-content .score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: var(--space-xs);
}

.circle-content .score-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 20px currentColor;
    line-height: 1;
}

.circle-content .score-separator {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 2px;
}

.circle-content .score-max {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1;
}

.circle-content .score-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Score Recommendation Section */
.score-recommendation-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.score-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.recommendation-result {
    text-align: center;
    width: 100%;
}

.recommendation-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.decision-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.decision-text {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recommendation-explanation {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

/* Decision States */
.decision-reuse {
    border-color: var(--neon-green) !important;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05)) !important;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2) !important;
}

.decision-reuse .recommendation-badge {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.decision-donate {
    border-color: var(--neon-yellow) !important;
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.1), rgba(255, 255, 0, 0.05)) !important;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.2) !important;
}

.decision-donate .recommendation-badge {
    border-color: var(--neon-yellow);
    background: rgba(255, 255, 0, 0.1);
    color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}

.decision-ewaste {
    border-color: var(--accent-danger) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05)) !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2) !important;
}

.decision-ewaste .recommendation-badge {
    border-color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.decision-waiting {
    border-color: var(--text-muted);
    background: rgba(156, 163, 175, 0.1);
}

.decision-waiting .recommendation-badge {
    border-color: var(--text-muted);
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
    box-shadow: 0 0 15px rgba(156, 163, 175, 0.3);
}

/* Score Section */
.score-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-primary);
}

.score-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.score-total {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.score-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

.score-max {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Factor Groups */
.factor-group {
    padding: var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.unified-factors {
    border-left: 4px solid var(--neon-blue);
}

.factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.factor-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.factor-icon {
    font-size: 1.25rem;
}

.factor-requirement {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
}

.factor-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.factor-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.factor-points {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 600;
}

.points-value {
    color: var(--neon-green);
    font-family: var(--font-display);
}

.points-max {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.factor-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-primary);
    font-weight: 600;
}

.total-label {
    color: var(--text-primary);
}

.total-value {
    color: var(--neon-green);
    font-family: var(--font-display);
    text-shadow: 0 0 10px var(--neon-green);
}



.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--bg-input);
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.secondary-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}



/* Footer */
.app-footer {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.footer-icon {
    width: 1rem;
    height: 1rem;
    color: var(--neon-blue);
}

.footer-stats {
    display: flex;
    gap: var(--space-lg);
}

.footer-stat {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-stat::before {
    content: '●';
    color: var(--neon-green);
    font-size: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .app-title {
        font-size: 1.75rem;
    }
    
    .header-stats {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: var(--space-sm);
    }
    
    .app-header {
        padding: var(--space-md);
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .header-stats {
        justify-content: center;
        width: 100%;
    }
    
    .main-content {
        padding: var(--space-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .warranty-options {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .app-wrapper {
        margin: 0;
        border-radius: 0;
    }
    
    .main-container {
        padding: 0;
        align-items: stretch;
    }
    
    .form-grid,
    .results-grid {
        padding: var(--space-md);
    }
    
    .score-number {
        font-size: 1.5rem;
    }
    
    .score-max {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-animation,
    .floating-shapes,
    .action-btn {
        display: none !important;
    }
    
    .app-wrapper {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .app-header {
        background: #f5f5f5 !important;
    }
    
    .main-content {
        grid-template-columns: 1fr !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
}

::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: var(--space-md);
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-primary);
    border-top: 2px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

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

/* Focus States */
.form-input:focus,
.form-select:focus,
.action-btn:focus {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}