:root {
    --primary-color: #1E88E5;
    --secondary-color: #42A5F5;
    --accent-color: #90CAF9;
    --text-dark: #0D47A1;
    --bg-light: #E3F2FD;
    --gradient: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    --glass-effect: rgba(30, 136, 229, 0.1);
    --glass-border: rgba(30, 136, 229, 0.2);
    --cyber-glow: rgba(66, 165, 245, 0.3);
}

body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 50%, #E1F5FE 100%);
     background-attachment: fixed;
     color: var(--text-dark);
     min-height: 100vh;
 }

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    color: white !important;
}

.navbar {
    background: var(--gradient) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1050;
}

.dropdown-menu {
    z-index: 1060;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
     background: linear-gradient(135deg, #1976D2 0%, #1E88E5 100%);
 }

.card {
     border: 1px solid var(--glass-border);
     border-radius: 20px;
     background: rgba(255, 255, 255, 0.85);
     backdrop-filter: blur(10px);
     box-shadow: 0 8px 32px rgba(30, 136, 229, 0.15);
     transition: all 0.3s ease;
 }

 .card:hover {
     transform: translateY(-8px);
     box-shadow: 0 12px 40px rgba(30, 136, 229, 0.25);
     background: rgba(255, 255, 255, 0.9);
 }

.progress-bar {
    background: var(--gradient);
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    color: #666;
    position: relative;
}

.step.active {
    background: var(--gradient);
    color: white;
}

.step.completed {
     background: linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
     color: white;
     box-shadow: 0 4px 15px var(--cyber-glow);
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background: #e0e0e0;
    margin-left: 10px;
}

.step:last-child::after {
    display: none;
}

.hero-section {
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.feature-icon {
     font-size: 3rem;
     color: var(--secondary-color);
     margin-bottom: 20px;
     text-shadow: 0 0 20px var(--cyber-glow);
     filter: drop-shadow(0 4px 8px rgba(30, 136, 229, 0.3));
 }

.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.audio-controls {
    text-align: center;
    margin: 20px 0;
}

.record-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: white;
    font-size: 2rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.record-button:hover {
    transform: scale(1.1);
}

.record-button.recording {
    animation: pulse 1s infinite;
}

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

.question-container {
     background: rgba(255, 255, 255, 0.9);
     backdrop-filter: blur(15px);
     border: 1px solid var(--glass-border);
     border-radius: 20px;
     padding: 30px;
     margin: 20px 0;
     box-shadow: 0 8px 32px rgba(30, 136, 229, 0.15);
 }

.answer-input {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    min-height: 120px;
    resize: vertical;
}

.answer-input:focus {
     border-color: var(--secondary-color);
     box-shadow: 0 0 0 0.2rem rgba(66, 165, 245, 0.25);
     background: rgba(255, 255, 255, 0.95);
 }

.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.report-section {
     background: rgba(255, 255, 255, 0.9);
     backdrop-filter: blur(15px);
     border: 1px solid var(--glass-border);
     border-radius: 20px;
     padding: 30px;
     margin: 20px 0;
     box-shadow: 0 8px 32px rgba(30, 136, 229, 0.15);
 }

.score-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin: 5px;
}

.score-excellent {
     background: linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
     color: white;
     box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.score-good {
     background: linear-gradient(135deg, #90CAF9 0%, #42A5F5 100%);
     color: white;
     box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

.score-average {
     background: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);
     color: white;
     box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}
.score-poor {
     background: linear-gradient(135deg, #FFAB91 0%, #FF7043 100%);
     color: white;
     box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.score-fail {
    background: linear-gradient(135deg, #EF5350 0%, #E53935 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Additional robotic effects */
.navbar {
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(30, 136, 229, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(66, 165, 245, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.step {
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.step:hover::before {
    width: 100px;
    height: 100px;
}

 /* Pulse animation for active elements */
@keyframes cyber-pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(30, 136, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); }
}

.step.active {
    animation: cyber-pulse 2s infinite;
}

/* Enhanced glass effects */
.card::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
 border-radius: 20px;
 pointer-events: none;
}

@media (max-width: 768px) {
 .hero-section {
     padding: 40px 0;
 }

 .step-indicator {
     flex-wrap: wrap;
 }

 .step {
     margin: 5px;
 }
}
