:root {
    --primary: #9DDB2C;
    --primary-dark: #8BC91F;
    --bg-base: #ffffff;
    --bg-card: #f9fafb;
    --bg-elevated: #f4f4f5;
    --text-primary: #18181b;
    --text-muted: #71717a;
    --border-base: #e4e4e7;
    --accent: #ef4444;
    --filler: #f97316;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Blobs (Softer for Light Theme) */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    animation: blob 15s infinite;
}

.blob-1 {
    background: var(--primary);
    top: -10%;
    right: -10%;
}

.blob-2 {
    background: #60a5fa;
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeIn 0.6s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #1a1a1a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(157, 219, 44, 0.3);
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #1a1a1a;
}

.logo h1 span {
    color: var(--primary);
}

/* Card Component (Clean White) */
.card {
    background: #ffffff;
    border: 1px solid var(--border-base);
    border-radius: 32px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.8s ease-out;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
}

/* Passage Box */
.passage-box {
    background: #f8fafc;
    border: 1px solid var(--border-base);
    border-radius: 24px;
    padding: 2rem;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #334155;
}

/* Recording UI */
.recording-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.record-btn {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(157, 219, 44, 0.3);
}

.record-btn:hover {
    transform: scale(1.05);
}

.record-btn.active {
    background: var(--accent);
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Metrics Dashboard */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.metric-card {
    background: #ffffff;
    border: 1px solid var(--border-base);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.15rem;
    letter-spacing: -1px;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.metric-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 500;
}

/* Syllable Transcript Tags */
syb {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #dcfce7;
}

rep,
pro,
block {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid #fee2e2;
}

inter {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: #fff7ed;
    color: #ea580c;
    border-radius: 6px;
    font-style: italic;
    border: 1px solid #ffedd5;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(157, 219, 44, 0.4);
}

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

.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid var(--border-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

/* Utility Classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-xs {
    max-width: 20rem;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

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

.leading-relaxed {
    line-height: 1.625;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.border {
    border: 1px solid var(--border-base);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

/* Classification Banner */
#classification-banner {
    transition: all 0.3s;
}

.bg-red-500\/10 {
    background-color: rgba(239, 68, 68, 0.1);
}

.border-red-500\/30 {
    border-color: rgba(239, 68, 68, 0.3);
}

.bg-orange-500\/10 {
    background-color: rgba(249, 115, 22, 0.1);
}

.border-orange-500\/30 {
    border-color: rgba(249, 115, 22, 0.3);
}

.bg-primary\/10 {
    background-color: rgba(157, 219, 44, 0.1);
}

.border-primary\/30 {
    border-color: rgba(157, 219, 44, 0.3);
}

.hidden {
    display: none !important;
}

/* Professional Result Section Components */
.summary-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.summary-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.summary-icon i {
    width: 32px;
    height: 32px;
}

.summary-stat {
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.1);
    text-align: right;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.content-box {
    background: #f8fafc;
    border: 1px solid var(--border-base);
    border-radius: 24px;
    padding: 1.75rem;
}

.content-box.highlight {
    background: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(157, 219, 44, 0.05);
}

.transcript-box {
    background: #ffffff;
    border: 1px solid var(--border-base);
    border-radius: 16px;
    padding: 1.25rem;
    min-height: 200px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.insights-box {
    font-size: 1.05rem;
    color: #475569;
}

/* Practice Items */
.practice-item {
    background: #ffffff;
    border: 1px solid var(--border-base);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.practice-item:hover {
    border-color: var(--primary);
    background: #fdfdfd;
    transform: translateX(4px);
}

.practice-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.practice-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

/* Transcript Enhancements */
.transcript-box syb {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.transcript-box rep, 
.transcript-box pro, 
.transcript-box block {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.transcript-box inter {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border-radius: 6px;
    font-style: italic;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Professional Responsive Adjustments */
@media (max-width: 800px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}