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

:root {
    --bg-base: #000000;
    --bg-card: #111111;
    --border-color: #333333;
    --text-primary: #ffffff;
    --text-muted: #888888;
    --accent: #10b981; /* High contrast green */
    --accent-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b; /* Amber */
    --error: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

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

/* ── HEADER ── */
header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    z-index: 10;
}
.brand h1 { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.brand h1 span { color: var(--accent); }
.brand p { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.main-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    padding-bottom: 100px; /* Space for FAB */
}

.pg-title { font-weight: 900; font-size: 24px; margin-bottom: 20px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.badge-count { background: var(--accent); color: #000; font-size: 14px; padding: 4px 10px; border-radius: 20px; font-weight: 900; }

/* ── TASK CARDS ── */
.task-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--warning);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.task-img { width: 70px; height: 90px; border-radius: 8px; object-fit: cover; background: #222; flex-shrink: 0; }
.task-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.task-title { font-size: 18px; font-weight: 900; line-height: 1.2; }
.task-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

.task-metrics { display: flex; gap: 12px; margin-top: auto; }
.metric { background: #222; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 800; display: flex; flex-direction: column; }
.metric span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.metric.req { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid var(--warning); }

/* ── SHARE BUTTON ── */
.btn-share {
    width: 100%;
    margin-top: 16px;
    background: #25d366; /* WhatsApp Green */
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.1s;
}
.btn-share:active { transform: scale(0.98); }

/* ── STATUS OVERLAYS ── */
.loading-view { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); font-weight: 700; font-size: 16px; gap: 12px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
#toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #000;
    padding: 16px 32px; border-radius: 30px; font-weight: 900; font-size: 16px; z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5); display: none; text-align: center;
}
#toast i { font-size: 24px; vertical-align: middle; margin-right: 8px; }
