:root {
    --bg-dark: #050814;
    --card-bg: #0f172a;
    --border-color: #38bdf8;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --accent-blue: #38bdf8;
    --accent-green: #22c55e;
    --accent-purple: #c084fc;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 650px;
    margin: 0 auto;
}

/* Header & Badges */
header {
    text-align: center;
    margin-bottom: 20px;
}

.badge {
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

header h1 {
    font-size: 1.75rem;
    margin: 8px 0 4px;
    color: #ffffff;
}

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

/* Cards */
.card, .countdown-card {
    background: var(--card-bg);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.card h2, .countdown-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.countdown-card {
    background: linear-gradient(135deg, #0f172a 100%, #1e1b4b 0%);
    text-align: center;
}

.countdown-card h3 {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#countdown-timer {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 6px;
}

/* Timer Display */
.stopwatch-display {
    font-family: monospace;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-green);
    margin: 12px 0;
}

/* Buttons & Inputs */
button {
    background: #1e293b;
    color: var(--text-primary);
    border: 1px solid #475569;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

button:active, button:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: #0f172a;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ai-btn {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
}

/* Progress Bar */
.overall-progress {
    margin: 12px 0;
}

.progress-bar {
    background: #1e293b;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid #334155;
}

.progress-fill {
    background: var(--accent-green);
    height: 100%;
    width: 0%;
}

#progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Textareas & Output Boxes */
textarea {
    width: 100%;
    height: 80px;
    background: #030712;
    border: 1px solid #475569;
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    margin-top: 8px;
}

textarea::placeholder {
    color: #64748b;
}


/* High-Contrast Italian Italic Style for AI Output Boxes */
.ai-output {
    background: #030712;
    border-left: 3px solid var(--accent-purple);
    padding: 14px;
    border-radius: 0 8px 8px 0;
    margin-top: 12px;
    font-size: 0.95rem;
    
    /* Crisp bright text color for maximum readability */
    color: #ffffff;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.3);
    
    /* Italian Serif Italic Styling */
    font-family: "Georgia", "Garamond", "Times New Roman", serif;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.3px;
}
    