@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Energetic Fitness Theme (Vibrant Blue / Teal / Orange) */
    --primary: #0ea5e9; /* Sky 500 */
    --primary-hover: #0284c7; /* Sky 600 */
    --secondary: #64748b; /* Slate 500 */
    --secondary-hover: #475569; /* Slate 600 */
    --accent: #f97316; /* Orange 500 */
    --accent-muted: #fed7aa; /* Orange 200 */
    --teal: #14b8a6; /* Teal 500 */
    --teal-muted: #99f6e4; /* Teal 200 */
    --background: #f0f9ff; /* Sky 50 */
    --surface: #ffffff;
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --border: #e2e8f0; /* Slate 200 */
    --link: #0ea5e9;
    --link-hover: #0284c7;
    --success: #10b981;
    --error: #ef4444;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Radius - slightly rounder for workout-card feel */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

/* Typography - sporty feel with tighter letter-spacing */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: var(--space-lg); }
h2 { font-size: 1.5rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }

/* Section headers - uppercase, sporty */
.section-label,
.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
.section-title { font-size: 0.85rem; }

p { margin-bottom: var(--space-md); }

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Layout */
header {
    background-color: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: 64px;
    display: flex;
    align-items: center;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo-link {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    gap: var(--space-xs);
}

.logo-image {
    height: 48px;
    width: auto;
}

.auth-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.auth-buttons a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-buttons a:hover {
    color: var(--primary);
}

main {
    max-width: 1000px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-lg);
    min-height: calc(100vh - 64px - 100px);
}

/* Dashboard 2-column layout (main feed + sidebar) */
main.dashboard {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    align-items: start;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-sidebar {
    position: sticky;
    top: calc(64px + var(--space-md));
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-widget {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.routine-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    white-space: pre-wrap;
}

.routine-content:empty::before,
.routine-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Quick-log activity buttons */
.quick-log-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.quick-log-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
}

.quick-log-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.06);
}

@media (max-width: 1024px) {
    main.dashboard {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        position: static;
    }
}

/* Components - cards styled like stats / workout logs */
.card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
}

.card-stat,
.workout-card {
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    background: linear-gradient(to right, rgba(14, 165, 233, 0.04), var(--surface));
}

.workout-card.completion {
    border-left-color: var(--accent);
    background: linear-gradient(to right, rgba(249, 115, 22, 0.06), var(--surface));
}

.btn, button, .button, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
    line-height: 1.25;
}

.btn-primary, .cta-button, .button {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover, .cta-button:hover, .button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: white;
    border: 1px solid var(--border);
    color: var(--text-main);
}

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

.btn-danger, .ban-button, .delete-update-btn {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-danger:hover, .ban-button, .delete-update-btn:hover {
    background-color: #fecaca;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-full);
}

.btn-icon:hover {
    background-color: var(--background);
    color: var(--text-main);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background-color: var(--surface);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xs) 0;
    z-index: 100;
    margin-top: var(--space-xs);
}

.dropdown.show .dropdown-menu {
    display: block;
    animation: fadeIn 0.1s ease-out;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: var(--space-xs) var(--space-md);
    clear: both;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--background);
    text-decoration: none;
}

.dropdown-item.text-danger {
    color: var(--error);
}

.dropdown-item.text-danger:hover {
    background-color: #fee2e2;
}

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

/* Notifications Tray */
.notifications-dropdown .dropdown-menu {
    min-width: 320px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    right: 0;
    left: auto;
}

.notifications-trigger {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-trigger:hover {
    color: var(--primary);
    background-color: var(--background);
}

.notifications-icon {
    display: block;
}

.notifications-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    background-color: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    display: none;
}

.notifications-badge:not(:empty) {
    display: block;
}

.notifications-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.notifications-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.notifications-list {
    padding: var(--space-xs);
}

.notifications-loading {
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notifications-empty {
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
}

.notifications-empty-hint {
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.notification-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
}

.notification-item:hover {
    background-color: var(--background);
}

.notification-item .profile-image {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.notification-item-body {
    flex: 1;
    min-width: 0;
}

.notification-item-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-item-text strong {
    font-weight: 600;
}

.notification-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Forms */
input[type="text"],
input[type="url"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background-color: #f9fafb;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    background-color: white;
}

/* Hero Section */
.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    padding: 5rem 2rem 4rem;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--text-main);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.hero .cta-button {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hero .cta-button:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.hero .google-signin-button {
    background-color: var(--primary);
    color: white;
    border: none;
}

/* Updates Feed */
.update-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.update-item:hover {
    box-shadow: var(--shadow-md);
}

.update-item.completion-update {
    background: linear-gradient(to bottom right, #fffbeb, #fef3c7);
    border-color: #fcd34d;
    position: relative;
    overflow: hidden;
}

.update-item.completion-update::before {
    content: "VICTORY";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-bottom-left-radius: var(--radius-md);
}

.feed-activity-icon {
    font-size: 1.1em;
    vertical-align: middle;
}

.update-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.profile-image {
    border-radius: 50%;
    object-fit: cover;
}

.profile-image.medium {
    width: 48px;
    height: 48px;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.profile-image.small {
    width: 32px;
    height: 32px;
}

.profile-image.large {
    width: 120px;
    height: 120px;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.update-meta {
    margin-left: var(--space-md);
}

.update-author {
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

.update-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.update-content {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

/* Markdown in goal updates: links, code, lists */
.update-body p:first-child { margin-top: 0; }
.update-body p:last-child { margin-bottom: 0; }
.update-body p { margin: 0 0 0.5em; }
.update-body code {
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}
.update-body pre { 
    background: #f3f4f6; 
    padding: var(--space-sm); 
    border-radius: var(--radius-md); 
    overflow-x: auto; 
    margin: 0.5em 0;
    font-size: 0.9rem;
}
.update-body pre code { background: none; padding: 0; }
.update-body ul, .update-body ol { margin: 0.5em 0; padding-left: 1.5em; }
.update-body li { margin: 0.2em 0; }
.update-body a { color: var(--link); text-decoration: none; }
.update-body a:hover { color: var(--link-hover); text-decoration: underline; }
.update-body strong, .update-body b { font-weight: 700; }
.update-body em, .update-body i { font-style: italic; }

.update-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
    margin-top: auto;
}

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

.cheer-count {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.cheer-button {
    background-color: transparent;
    color: var(--text-muted);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.cheer-button:hover {
    background-color: #fdf2f8; /* Pink 50 */
    color: var(--secondary);
}

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

.cheer-button.uncheers {
    background-color: #fdf2f8;
    color: var(--secondary);
    border-color: #fbcfe8;
}

.share-button.copied {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

/* User Grid / Discovery */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.user-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.user-item .profile-image {
    margin-bottom: var(--space-xs);
}

/* Profile Page */
.profile-header {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

.profile-info {
    margin-top: var(--space-md);
}

@media (min-width: 640px) {
    .profile-info {
        margin-top: 0;
        margin-left: var(--space-xl);
        flex: 1;
    }
}

.profile-info h1 {
    margin-bottom: var(--space-xs);
}

.follow-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-md) 0;
    justify-content: center;
}

@media (min-width: 640px) {
    .follow-stats {
        justify-content: flex-start;
    }
}

.profile-actions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .profile-actions {
        justify-content: flex-start;
    }
}

.action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

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

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

/* Footer */
footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-xl) 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary);
}

/* Features List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    list-style: none;
    padding: 0;
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: start;
    gap: var(--space-md);
}

.feature-icon {
    color: var(--primary);
    background: #e0e7ff;
    width: 48px;
    height: 48px;
    min-width: 48px; /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* Comments */
.comments-container {
    background-color: #f9fafb;
    border-top: 1px solid var(--border);
    padding: var(--space-md);
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
}

.comment-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.google-signin-button {
    background-color: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.google-signin-button:hover {
    background-color: #f9fafb;
    box-shadow: var(--shadow-sm);
}

/* Alerts and Banners */
.alert-banner {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    animation: slideDown 0.3s ease-out;
}

.alert-banner.info {
    background-color: #eff6ff; /* Blue 50 */
    border: 1px solid #bfdbfe; /* Blue 200 */
    color: #1e40af; /* Blue 800 */
}

.alert-banner.success {
    background-color: #f0fdf4; /* Green 50 */
    border: 1px solid #bbf7d0; /* Green 200 */
    color: #166534; /* Green 800 */
}

/* Celebration Card */
.celebration-card {
    background: linear-gradient(to bottom right, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

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

.celebration-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.celebration-title h3 {
    margin: 0;
    color: #92400e; /* Amber 800 */
    font-size: 1.25rem;
}

.celebration-icon {
    font-size: 1.5rem;
}

.celebration-message {
    color: #92400e;
    margin-bottom: var(--space-md);
    opacity: 0.9;
    font-size: 1rem;
}

.celebration-form textarea {
    background: white;
    border-color: #fcd34d;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.celebration-form textarea:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.celebration-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-ghost {
    background: transparent;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.btn-ghost:hover {
    background: rgba(146, 64, 14, 0.05);
    text-decoration: none;
    color: #78350f;
}

.undo-form {
    margin: 0;
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    color: #92400e;
    opacity: 0.7;
}

.btn-text:hover {
    opacity: 1;
}

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

/* Goal List Styles */
.goal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goal-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    background-color: #f9fafb;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.goal-list-item:hover {
    background-color: white;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.goal-list-item.completed {
    background-color: #f0fdf4;
    border-color: transparent;
}

.goal-text {
    flex-grow: 1;
    margin-right: var(--space-md);
    font-weight: 500;
}

.goal-list-item.completed .goal-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.goal-list-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.goal-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-undo {
    font-size: 0.85rem;
}

/* Goal Coach Nudge */
.goal-coach-nudge {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    margin-top: 0.5rem;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
    animation: slideDown 0.2s ease-out;
}

.goal-coach-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.goal-coach-body {
    flex: 1;
    min-width: 0;
}

.goal-coach-tip {
    display: block;
    color: #92400e;
}

.goal-coach-use {
    display: inline-block;
    margin-top: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
    text-align: left;
    line-height: 1.4;
}

.goal-coach-use:hover {
    background-color: #fef3c7;
}

.goal-examples {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.goal-example-row {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    line-height: 1.4;
}

.goal-example-bad {
    color: var(--text-muted);
    text-decoration: line-through;
}

.goal-example-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

.goal-example-good {
    color: var(--text-main);
    font-weight: 500;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    height: auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--background);
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}
