/* Design tokens and component classes ported from support.marutally.com (css/theme.css) so
   this service visually matches the rest of the MaruTally platform. Only the subset this
   service currently uses is included — port more as new pages need them, rather than
   copying the full ~1300-line source file wholesale. */

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

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #52525b;
    --border-color: #e2e8f0;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Top Bar ─────────────────────────────────────────────────────────── */
.topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.topbar-mark {
    background: var(--primary-color);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.topbar-word {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.topbar-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-left: 0.6rem;
    margin-left: 0.6rem;
    border-left: 1px solid var(--border-color);
}

/* ── Page Shell ──────────────────────────────────────────────────────── */
.page-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

/* ── Card ────────────────────────────────────────────────────────────── */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 2.75rem;
    animation: fadeInSlideUp 0.4s ease forwards;
}

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

.brand-section-app {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-section-app h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 60%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-section-app p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Feature list on the home page ──────────────────────────────────── */
.feature-list {
    list-style: none;
    margin: 1.75rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.feature-item .badge-soon {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(100, 116, 139, 0.1);
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group-app {
    margin-bottom: 1.25rem;
    text-align: left;
}

.label-app {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-app {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.input-app:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.input-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.45rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
}

.btn-app:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary-app {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.25);
}

.btn-primary-app:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.35);
}

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

.btn-secondary-app:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ── Alerts ──────────────────────────────────────────────────────────── */
.app-alert-error {
    background: #fef2f2;
    color: var(--danger);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #fecaca;
    font-size: 0.875rem;
    text-align: left;
}

.app-alert-success {
    background: #ecfdf5;
    color: #047857;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #a7f3d0;
    font-size: 0.875rem;
    text-align: left;
}

/* ── Status Badges ───────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-new { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-default { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }
.status-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

/* ── Accessibility ───────────────────────────────────────────────────── */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .topbar { padding: 1rem 1.25rem; }
    .page-shell { padding: 1.5rem 1rem; align-items: flex-start; padding-top: 2.5rem; }
    .glass-card { padding: 1.75rem; border-radius: 14px; }
    .brand-section-app h1 { font-size: 1.55rem; }
    .app-footer { padding: 1.5rem 1rem; }
}
