/* ══════════════════════════════════════════════════
   ABCA SERVICES — Partner Portal CSS
   Mobile-First, App-Like Experience
   ══════════════════════════════════════════════════ */

:root {
    --primary:        #0366ff;
    --primary-dark:   #0252d1;
    --secondary:      #1e293b;
    --success:        #10b981;
    --warning:        #f9d90a;
    --danger:         #ef4444;
    --bg:             #f1f5f9;
    --text:           #334155;
    --text-muted:     #64748b;
    --border:         #e2e8f0;
    --font:           'Inter', sans-serif;
    --radius:         12px;
    --header-height:  60px;
    --nav-height:     65px;
}

body.partner-body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    padding-top: var(--header-height);
    padding-bottom: calc(var(--nav-height) + 16px);
}

@media (min-width: 992px) {
    body.partner-body { padding-bottom: 0; }
}

a { color: var(--primary); text-decoration: none; }

/* ── HEADER ────────────────────────────────────── */
.partner-header {
    background: var(--secondary);
    color: #fff;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.partner-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.brand-icon-sm {
    color: var(--warning);
    font-size: 1.2rem;
}

/* Availability Toggle */
.avail-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(255,255,255,.2);
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.avail-toggle.offline .avail-dot { background: var(--text-muted); box-shadow: none; }
.avail-toggle.offline #availText { color: #cbd5e1; }

.btn-icon { background: transparent; border: none; padding: 4px 8px; }
.btn-user-sm {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: .9rem;
    display: flex;
    align-items: center;
}

/* ── BOTTOM NAV (App Feel) ─────────────────────── */
.partner-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}

.partner-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 500;
    width: 100%;
    height: 100%;
    transition: color 0.2s;
}

.partner-bottom-nav-item i { font-size: 1.2rem; margin-bottom: 2px; }

.partner-bottom-nav-item.active { color: var(--primary); }

/* ── CARDS & UI ────────────────────────────────── */
.partner-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid var(--border);
}

.job-card {
    border-left: 4px solid var(--warning);
}
.job-card.active { border-left-color: var(--success); }
.job-card.completed { border-left-color: var(--primary); }

.stat-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}
.stat-val { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.stat-lbl { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; }

/* ── AUTH PAGES (Partner) ──────────────────────── */
.partner-auth-page {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.partner-auth-header {
    background: var(--secondary);
    padding: 40px 20px 60px;
    text-align: center;
    color: #fff;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.partner-auth-header i { font-size: 3rem; color: var(--warning); margin-bottom: 16px; }
.partner-auth-logo { height: 54px; width: auto; border-radius: 999px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); display: inline-block; }
.partner-auth-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }

.partner-auth-form {
    margin: -40px 20px 20px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid var(--border);
}

/* ── LOGO ── */
.partner-logo { height: 34px; width: auto; border-radius: 999px; display: block; }
