/* ===== FeelFree design system ===== */
:root {
    --ff-brand: #4f46e5;
    --ff-brand-dark: #4338ca;
    --ff-accent: #7c3aed;
    --ff-bg: #f4f5fb;
    --ff-card: #ffffff;
    --ff-text: #1e1b3a;
    --ff-muted: #6b7280;
    --ff-radius: 1rem;
}

body {
    background: var(--ff-bg);
    color: var(--ff-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navbar */
.navbar-ff {
    background: linear-gradient(90deg, var(--ff-brand), var(--ff-accent));
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.25);
}
.navbar-ff .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.92rem;
}
.navbar-ff .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}
.navbar-ff .navbar-brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Cards */
.card-ff {
    border: none;
    border-radius: var(--ff-radius);
    box-shadow: 0 1px 3px rgba(30, 27, 58, 0.06), 0 4px 16px rgba(30, 27, 58, 0.05);
    overflow: hidden;
}
.card-ff .card-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.04));
    border-bottom: 1px solid #eceaf6;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.4em 0.7em;
    border-radius: 999px;
}
.badge-indigo {
    background: #e0e7ff;
    color: #3730a3;
}

/* Buttons */
.btn {
    border-radius: 0.65rem;
    font-weight: 500;
}
.btn-sm {
    border-radius: 0.55rem;
}
.btn-primary {
    background: var(--ff-brand);
    border-color: var(--ff-brand);
}
.btn-primary:hover {
    background: var(--ff-brand-dark);
    border-color: var(--ff-brand-dark);
}

/* Page heading */
.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.page-subtitle {
    color: var(--ff-muted);
    font-size: 0.9rem;
}

/* Post/plan text */
.post-text {
    background: #f8f8fd;
    border: 1px solid #eceaf6;
    border-radius: 0.75rem;
    padding: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Steps / onboarding */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.step-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e3f4;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--ff-text);
    box-shadow: 0 1px 2px rgba(30, 27, 58, 0.05);
}
.step-chip:hover {
    border-color: var(--ff-brand);
    color: var(--ff-brand);
}
.step-num {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ff-brand), var(--ff-accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Stat tiles */
.stat-tile {
    text-align: center;
    padding: 1rem;
}
.stat-tile .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ff-brand);
}
.stat-tile .stat-label {
    color: var(--ff-muted);
    font-size: 0.8rem;
}

/* Tables */
.table-ff {
    --bs-table-bg: transparent;
}
.table-ff th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ff-muted);
    border-bottom-width: 1px;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ff-muted);
}
.empty-state .bi {
    font-size: 2.2rem;
    opacity: 0.5;
}

/* Hints */
.hint-icon {
    color: var(--ff-muted);
    cursor: help;
}

/* Auth pages */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 60%, #a855f7 100%);
}
.auth-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(30, 27, 58, 0.25);
}
.auth-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ff-brand);
    text-align: center;
}

/* Responsive */
@media (max-width: 576px) {
    .page-title {
        font-size: 1.15rem;
    }
    .stat-tile .stat-value {
        font-size: 1.25rem;
    }
}
