/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root,
.theme-light {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;

    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #93c5fd;

    --success: #10b981;
    --warning: #f59e0b;
    --info: #06b6d4;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.theme-dark {
    /* Dark mode colors */
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-gradient-start: #0a0f1e;
    --bg-gradient-end: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;

    --accent-primary: #60a5fa;
    --accent-secondary: #93c5fd;
    --accent-tertiary: #bfdbfe;

    --success: #34d399;
    --warning: #fbbf24;
    --info: #22d3ee;

    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.8);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.8);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.8);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.9);
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
}

html.dark-mode {
    background-color: #0a0f1e !important;
}

body {
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

body.dark-mode {
    background-color: #0a0f1e;
}

#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LAYOUT
   ============================================ */
.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 2rem 1.25rem;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto 1.5rem;
    animation: slideDown 0.6s ease-out;
}

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

.header-text {
    flex: 1;
    text-align: center;
}

.header-title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.app-logo {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-secondary);
    color: var(--accent-primary);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

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

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.main-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    align-items: center;
}

/* Override for dashboard page */
.main-container:has(.dashboard-layout) {
    display: flex;
    max-width: 100%;
    padding: 0;
    gap: 0;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 2rem;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    max-width: 36rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--info) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

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

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-secondary);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

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

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   STATE CONTAINERS
   ============================================ */
.state {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    width: 100%;
    animation: fadeIn 0.5s ease-in, floatUp 0.5s ease-out;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.state::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

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

.state h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.state p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ============================================
   STATE-SPECIFIC ICONS & ANIMATIONS
   ============================================ */
.icon-container {
    font-size: 5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7.5rem;
}

.breathing-animation {
    color: #ef4444;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    14% {
        opacity: 1;
        transform: scale(1.15);
    }
    28% {
        opacity: 0.8;
        transform: scale(1);
    }
    42% {
        opacity: 1;
        transform: scale(1.15);
    }
    56% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.speaking-indicator {
    color: var(--accent-tertiary);
    animation: pulse-bounce 1s cubic-bezier(0.36, 0, 0.66, 1) infinite;
}

@keyframes pulse-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-1.5rem);
        opacity: 0.7;
    }
}

.feedback-icon {
    color: var(--success);
}

.feedback-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.feedback-star-icon {
    color: var(--success);
    font-size: 1.75rem;
}

/* ============================================
   PROMPT & FEEDBACK TEXT
   ============================================ */
.prompt-text {
    font-size: 1.1875rem;
    color: var(--accent-primary);
    font-style: italic;
    margin: 1.75rem 0 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-secondary);
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: left;
}

.feedback-message {
    font-size: 1.1875rem;
    color: var(--success);
    font-weight: 600;
    margin: 1.75rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--success);
    border-radius: 0.5rem;
    text-align: left;
    line-height: 1.6;
}

/* ============================================
   LOADING STATE
   ============================================ */
.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1.75rem auto;
}

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

.loading-text {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.button-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    font-size: 1.0625rem;
    padding: 0.875rem 2.25rem;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
    min-width: 10rem;
    justify-content: center;
}

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

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

.btn:focus-visible {
    outline: 2px solid var(--accent-tertiary);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--accent-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn i {
    font-size: 1.125rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    color: var(--text-tertiary);
    text-align: center;
    font-size: 0.9375rem;
    margin-top: 2rem;
    font-weight: 500;
}

footer p {
    margin: 0;
}

/* ============================================
   FEEDBACK CARD STYLES
   ============================================ */
.feedback-container {
    width: 100%;
}

.feedback-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.75rem 0 2rem 0;
    animation: slideUp 0.5s ease-out;
}

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

.feedback-section {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent-tertiary);
    transition: all 0.3s ease;
}

.feedback-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.feedback-section.encouragement {
    border-left-color: var(--success);
}

.feedback-section.pacing {
    border-left-color: var(--warning);
}

.feedback-section.tips {
    border-left-color: var(--accent-secondary);
}

.feedback-section.metrics {
    border-left-color: var(--info);
}

.feedback-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-section-content {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   METRICS GRID
   ============================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.metric-item {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.metric-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.metric-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--accent-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   LOADING CONTAINER
   ============================================ */
.loading-container {
    text-align: center;
    padding: 2rem 0;
}

.loading-container p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app {
        padding: 1.5rem 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        order: 1;
    }

    .theme-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    header h1 {
        font-size: 1.875rem;
    }

    .app-logo {
        width: 2.25rem;
        height: 2.25rem;
    }

    .subtitle {
        font-size: 0.9375rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.0625rem;
    }

    .state {
        padding: 2.5rem 1.5rem;
        border-radius: 0.75rem;
    }

    .state h2 {
        font-size: 1.375rem;
    }

    .state p {
        font-size: 1rem;
    }

    .icon-container {
        font-size: 4rem;
        height: 6.25rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.75rem 1.75rem;
        min-width: 8.75rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .app {
        padding: 1.25rem 0.75rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

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

    .state {
        padding: 2rem 1.125rem;
    }

    .state h2 {
        font-size: 1.25rem;
    }

    .icon-container {
        font-size: 3rem;
        height: 5rem;
    }

    .btn {
        font-size: 0.9375rem;
        padding: 0.6875rem 1.375rem;
        min-width: 8.125rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   NAVIGATION & HEADER ACTIONS
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.nav-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.nav-tab i {
    font-size: 0.875rem;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: left;
    width: 100%;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
}

.dashboard-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.stat-card.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    background: var(--bg-primary);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Card-specific accent colors */
.session-card .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.words-card .stat-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.wpm-card .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.streak-card .stat-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

/* ============================================
   RESPONSIVE - NAVIGATION & DASHBOARD
   ============================================ */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }

    .nav-tabs {
        order: -1;
    }

    .dashboard-title {
        font-size: 1.75rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .stat-card {
        padding: 1rem;
        gap: 1rem;
    }

    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* ============================================
   DASHBOARD ENCOURAGEMENT
   ============================================ */
.encouragement-banner {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    width: 100%;
}

.encouragement-icon {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.encouragement-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

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

/* Dashboard titles are already centered */
.dashboard-title,
.dashboard-subtitle {
    text-align: center;
}

/* ============================================
   DASHBOARD LAYOUT WITH CHART
   ============================================ */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
}

.dashboard-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-right {
    flex: 1;
    min-width: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dashboard-right-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chart placeholder */
.chart-placeholder {
    text-align: center;
    color: var(--text-tertiary);
    padding: 3rem 2rem;
}

.chart-placeholder-icon {
    font-size: 4rem;
    opacity: 0.2;
    margin-bottom: 1rem;
}

.chart-placeholder-text {
    font-size: 1.125rem;
    opacity: 0.6;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Chart container */
.chart-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.timeline-chart {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 600px;
}

.chart-point {
    cursor: pointer;
    transition: r 0.2s ease;
}

.chart-point:hover {
    r: 7;
}

.chart-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chart-empty i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.chart-empty p {
    margin: 0.5rem 0;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-left {
        flex: 1;
        width: 100%;
    }

    .dashboard-right {
        width: 100%;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .encouragement-banner {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .encouragement-text {
        font-size: 1rem;
    }

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

    .dashboard-layout {
        gap: 1.5rem;
    }

    .chart-title {
        font-size: 1.125rem;
    }

    .timeline-chart {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .encouragement-banner {
        padding: 1rem;
    }

    .encouragement-text {
        font-size: 0.9375rem;
    }
}
