/* =====================================================
   PRINTBUDDY EXPRESS — PROVIDER/ADMIN THEME CSS
   Dark Professional — Business Management
   ===================================================== */

/* ── Provider Color Tokens ── */
:root {
    --pro-primary: #1E293B;
    --pro-primary-lt: #334155;
    --pro-accent: #6366F1;
    --pro-accent-lt: #818CF8;
    --pro-surface: #F8FAFC;
    --pro-card: #FFFFFF;
    --pro-border: #E2E8F0;
    --pro-border-dk: #CBD5E1;
    --pro-text: #0F172A;
    --pro-text-md: #334155;
    --pro-text-muted: #64748B;
    --pro-success: #10B981;
    --pro-danger: #EF4444;
    --pro-warning: #F59E0B;
    --pro-radius: 12px;
    --pro-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    --pro-shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.13);
}

body.provider-page {
    background: var(--pro-surface);
    color: var(--pro-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* ==============================================
   PROVIDER HEADER
   ============================================== */
.header-provider {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--pro-primary);
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.header-provider .pro-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-provider .pro-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--pro-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-provider .pro-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.header-provider .pro-brand-role {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 400;
}

.nav-provider {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-provider a {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #CBD5E1;
    transition: all 0.2s;
}

.nav-provider a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-provider a.nav-active {
    background: rgba(99, 102, 241, 0.25);
    color: #A5B4FC;
}

.nav-provider a.nav-logout-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    margin-left: 8px;
}

.nav-provider a.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #FEE2E2;
}

/* ==============================================
   PROVIDER FOOTER
   ============================================== */
.footer-provider {
    background: var(--pro-primary);
    border-top: 1px solid #2D3748;
    padding: 20px 40px;
    margin-top: 60px;
}

.footer-provider-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-provider p {
    font-size: 13px;
    color: #64748B;
}

/* ==============================================
   PROVIDER BUTTONS
   ============================================== */
.btn-pro {
    background: var(--pro-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.30);
}

.btn-pro:hover {
    background: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-pro-dark {
    background: var(--pro-primary);
    color: #fff;
}

.btn-pro-dark:hover {
    background: #0F172A;
}

.btn-pro-outline {
    background: transparent;
    color: var(--pro-accent);
    border: 1.5px solid var(--pro-accent);
}

.btn-pro-outline:hover {
    background: #EEF2FF;
}

.btn-pro-ghost {
    background: #F1F5F9;
    color: var(--pro-text-md);
    border: 1.5px solid var(--pro-border);
}

.btn-pro-ghost:hover {
    background: #E2E8F0;
}

/* ==============================================
   PROVIDER HERO BANNER (Dashboard/Pages)
   ============================================== */
.pro-hero {
    background: linear-gradient(135deg, #1E293B 0%, #2D1B69 100%);
    border-radius: 18px;
    padding: 32px 36px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.20);
    position: relative;
    overflow: hidden;
}

.pro-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 50%;
}

.pro-hero .hero-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 10px;
}

.pro-hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.pro-hero p {
    font-size: 14px;
    color: #CBD5E1;
    max-width: 600px;
    line-height: 1.65;
}

/* ==============================================
   PROVIDER STAT CARDS
   ============================================== */
.pro-stat-card {
    background: var(--pro-card);
    border: 1.5px solid var(--pro-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--pro-shadow);
    transition: all 0.22s;
    text-decoration: none;
    display: block;
}

.pro-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pro-shadow-lg);
    border-color: var(--pro-border-dk);
}

.pro-stat-card .stat-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #EEF2FF;
    color: var(--pro-accent);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.pro-stat-card .stat-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--pro-text);
    line-height: 1;
    margin-bottom: 8px;
}

.pro-stat-card .stat-label {
    font-size: 13px;
    color: var(--pro-text-muted);
    font-weight: 500;
}

.pro-stat-card.highlight {
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border-color: #C7D2FE;
}

.pro-stat-card.highlight .stat-num {
    color: var(--pro-accent);
}

/* ==============================================
   PROVIDER MANAGEMENT CARDS
   ============================================== */
.pro-mgmt-card {
    background: var(--pro-card);
    border: 1.5px solid var(--pro-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--pro-shadow);
    text-decoration: none;
    color: var(--pro-text);
    display: block;
    transition: all 0.22s;
}

.pro-mgmt-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pro-shadow-lg);
    border-color: var(--pro-accent);
}

.pro-mgmt-card .mgmt-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.pro-mgmt-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pro-text);
    margin-bottom: 6px;
}

.pro-mgmt-card p {
    font-size: 13px;
    color: var(--pro-text-muted);
    line-height: 1.5;
}

/* ==============================================
   PROVIDER SECTION BLOCK
   ============================================== */
.pro-section {
    background: var(--pro-card);
    border: 1.5px solid var(--pro-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--pro-shadow);
    margin-bottom: 24px;
}

.pro-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--pro-border);
    flex-wrap: wrap;
    gap: 12px;
}

.pro-section-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pro-text);
    margin: 0;
}

.pro-section-head p {
    font-size: 13px;
    color: var(--pro-text-muted);
    margin: 4px 0 0;
}

/* ==============================================
   PROVIDER TABLE WRAPPER
   ============================================== */
.pro-table-wrap {
    background: var(--pro-card);
    border: 1.5px solid var(--pro-border);
    border-radius: 18px;
    box-shadow: var(--pro-shadow);
    overflow-x: auto;
    margin-bottom: 20px;
}

.pro-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.pro-table thead {
    background: #F8FAFC;
}

.pro-table th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748B;
    border-bottom: 1.5px solid var(--pro-border);
    white-space: nowrap;
}

.pro-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    font-size: 14px;
    color: var(--pro-text-md);
}

.pro-table tr:hover td {
    background: #FAFBFC;
}

.pro-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Table actions ── */
.pro-action-group {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

/* ==============================================
   PROVIDER STATUS BADGES
   ============================================== */
.pro-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pro-badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.pro-badge-printing {
    background: #DBEAFE;
    color: #1E40AF;
}

.pro-badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.pro-badge-paid {
    background: #D1FAE5;
    color: #065F46;
}

.pro-badge-unpaid {
    background: #FEE2E2;
    color: #991B1B;
}

.pro-badge-verify {
    background: #FEF3C7;
    color: #92400E;
}

.pro-badge-delivery {
    background: #E0F2FE;
    color: #0369A1;
}

.pro-badge-delivered {
    background: #D1FAE5;
    color: #065F46;
}

.pro-badge-gray {
    background: #F1F5F9;
    color: #475569;
}

/* ==============================================
   PROVIDER LOGIN
   ============================================== */
.pro-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pro-primary);
    padding: 40px 20px;
}

.pro-login-card {
    width: 100%;
    max-width: 400px;
    background: #1E293B;
    border: 1px solid #2D3748;
    border-radius: 20px;
    padding: 42px 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.pro-login-card .login-brand {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
}

.pro-login-card .login-sub {
    font-size: 13px;
    color: #64748B;
    text-align: center;
    margin-bottom: 30px;
}

.pro-login-card label {
    font-size: 12.5px;
    font-weight: 600;
    color: #94A3B8;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.pro-login-card input {
    width: 100%;
    padding: 12px 15px;
    background: #0F172A;
    border: 1.5px solid #334155;
    border-radius: 10px;
    color: #E2E8F0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.pro-login-card input:focus {
    border-color: var(--pro-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.pro-login-card input::placeholder {
    color: #475569;
}

.pro-login-card .error-msg {
    background: rgba(239, 68, 68, 0.12);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.pro-login-card .back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #475569;
    transition: color 0.2s;
}

.pro-login-card .back-link:hover {
    color: #94A3B8;
}

/* ==============================================
   PROVIDER TOOLBAR (Search + Filters)
   ============================================== */
.pro-toolbar {
    background: var(--pro-card);
    border: 1.5px solid var(--pro-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--pro-shadow);
}

.pro-search-input {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    border: 1.5px solid var(--pro-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--pro-text);
    background: #FAFAFA;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pro-search-input:focus {
    border-color: var(--pro-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.10);
}

/* ==============================================
   PROVIDER TAB NAVIGATION
   ============================================== */
.pro-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
}

.pro-tab-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pro-tab-btn {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--pro-card);
    color: var(--pro-text-muted);
    border: 1.5px solid var(--pro-border);
    transition: all 0.2s;
}

.pro-tab-btn:hover {
    background: #F1F5F9;
    color: var(--pro-text-md);
}

.pro-tab-btn.active {
    background: var(--pro-primary);
    color: #fff;
    border-color: var(--pro-primary);
}

/* ==============================================
   PROVIDER SUMMARY BOX
   ============================================== */
.pro-summary-box {
    background: var(--pro-card);
    border: 1.5px solid var(--pro-border);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--pro-shadow);
}

.pro-summary-box span {
    font-size: 13px;
    color: var(--pro-text-muted);
    font-weight: 600;
}

.pro-summary-box strong {
    font-size: 20px;
    color: var(--pro-text);
    font-weight: 800;
}

/* FIX: FILTER / ADD SERVICE FORM LAYOUT */
.pro-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

/* Each field */
.pro-form-group {
    display: flex;
    flex-direction: column;
}

.pro-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pro-text-muted);
    margin-bottom: 4px;
}

/* Inputs */
.pro-form-group input,
.pro-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--pro-border);
    border-radius: 10px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

/* ADD BUTTON FIX */
.pro-form-group.btn-group {
    justify-content: flex-end;
}

.pro-form-group .btn-pro {
    height: 40px;
}

/* FIX UGLY BUTTON */
.btn-pro {
    background: linear-gradient(135deg, #6366F1, #818CF8);
    color: #fff;
    border: none;
    border-radius: 12px;
    /* THIS MAKES IT SOFT */
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
    transition: all 0.2s ease;
}

/* Hover effect */
.btn-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

/* Remove ugly outline */
.btn-pro:focus {
    outline: none;
}

/* ==============================================
   RESPONSIVE — PROVIDER
   ============================================== */
@media (max-width: 768px) {
    .header-provider {
        padding: 0 18px;
    }

    .nav-provider a {
        padding: 7px 10px;
        font-size: 12.5px;
    }

    .pro-hero {
        padding: 22px;
    }

    .pro-hero h1 {
        font-size: 22px;
    }

    .pro-section {
        padding: 18px;
    }

    .footer-provider {
        padding: 18px;
    }

    .footer-provider-inner {
        flex-direction: column;
    }

    .pro-login-card {
        padding: 30px 20px;
    }

    .pro-tabs {
        flex-direction: column;
        align-items: flex-start;
    }
}