/* ==========================================================================
   Marketing Hub & Influencer Command Center Theme
   Inspired by Melado Design System - Enterprise UI Architecture
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --hub-primary: #4F46E5;
    --hub-primary-hover: #4338CA;
    --hub-primary-soft: #EEF2FF;
    
    --hub-secondary: #0F172A;
    --hub-dark: #0B0F19;
    --hub-slate: #1E293B;
    --hub-slate-light: #334155;

    --hub-violet: #7C3AED;
    --hub-violet-soft: #F5F3FF;

    --hub-pink: #EC4899;
    --hub-pink-soft: #FDF2F8;

    --hub-emerald: #10B981;
    --hub-emerald-soft: #ECFDF5;
    --hub-emerald-dark: #047857;

    --hub-amber: #F59E0B;
    --hub-amber-soft: #FFFBEB;

    --hub-cyan: #06B6D4;
    --hub-cyan-soft: #ECFEFF;

    --hub-bg: #F8FAFC;
    --hub-card-bg: #FFFFFF;
    --hub-text-main: #0F172A;
    --hub-text-muted: #64748B;
    --hub-border: #E2E8F0;
    --hub-border-light: #F1F5F9;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.25);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--hub-bg);
    color: var(--hub-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font, .font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar-hub {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hub-border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: var(--shadow-sm);
}

.brand-badge {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hub-secondary);
    line-height: 1.1;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--hub-primary);
    text-transform: uppercase;
}

.nav-link-hub {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--hub-text-muted) !important;
    padding: 0.55rem 0.95rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link-hub:hover {
    color: var(--hub-primary) !important;
    background-color: var(--hub-primary-soft);
}

.nav-link-hub.active {
    color: var(--hub-primary) !important;
    background-color: var(--hub-primary-soft);
    font-weight: 700;
}

/* ==========================================================================
   Company & Outlet Filter Switcher Bar
   ========================================================================== */
.filter-context-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--hub-border);
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Cards & Containers
   ========================================================================== */
.card-hub {
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card-hub:hover {
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.card-hub-interactive:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #A5B4FC;
}

/* KPI Metric Cards */
.kpi-card {
    background: white;
    border: 1px solid var(--hub-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.kpi-icon-primary { background: var(--hub-primary-soft); color: var(--hub-primary); }
.kpi-icon-emerald { background: var(--hub-emerald-soft); color: var(--hub-emerald); }
.kpi-icon-violet { background: var(--hub-violet-soft); color: var(--hub-violet); }
.kpi-icon-amber { background: var(--hub-amber-soft); color: var(--hub-amber); }
.kpi-icon-pink { background: var(--hub-pink-soft); color: var(--hub-pink); }
.kpi-icon-cyan { background: var(--hub-cyan-soft); color: var(--hub-cyan); }

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--hub-secondary);
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hub-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Platform Badges & Logos
   ========================================================================== */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

.platform-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.platform-tiktok {
    background: #000000;
    color: white;
    border: 1px solid #242424;
}
.platform-tiktok i {
    color: #25F4EE;
}

.platform-youtube {
    background: #FF0000;
    color: white;
}

.platform-snapchat {
    background: #FFFC00;
    color: #000000;
    font-weight: 800;
}

.platform-facebook {
    background: #1877F2;
    color: white;
}

/* Recommendation Badges */
.rec-badge-top {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rec-badge-good {
    background: #EEF2FF;
    color: #4338CA;
    border: 1px solid #C7D2FE;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rec-badge-avg {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rec-badge-low {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Grade Pills */
.grade-pill {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}
.grade-aplus { background: #10B981; color: white; }
.grade-a { background: #3B82F6; color: white; }
.grade-b { background: #F59E0B; color: white; }
.grade-c { background: #EF4444; color: white; }

/* Status Badges */
.status-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-active { background: #DCFCE7; color: #166534; }
.status-scheduled { background: #E0E7FF; color: #3730A3; }
.status-completed { background: #CFFAFE; color: #155E75; }
.status-paid { background: #DCFCE7; color: #166534; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-advance { background: #F3E8FF; color: #6B21A8; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-hub-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.55rem 1.15rem;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.btn-hub-primary:hover {
    background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-hub-outline {
    background: white;
    color: var(--hub-secondary);
    border: 1px solid var(--hub-border);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.55rem 1.15rem;
    transition: all 0.2s ease;
}

.btn-hub-outline:hover {
    background: var(--hub-primary-soft);
    color: var(--hub-primary);
    border-color: #C7D2FE;
}

/* ==========================================================================
   Avatar & Media
   ========================================================================== */
.avatar-wrap {
    position: relative;
    display: inline-block;
}

.avatar-img-lg {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar-img-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar-img-xl {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-hub {
    margin-bottom: 0;
}

.table-hub thead th {
    background-color: #F8FAFC;
    color: var(--hub-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--hub-border);
    padding: 0.85rem 1rem;
}

.table-hub tbody td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--hub-border-light);
    font-size: 0.88rem;
}

.table-hub tbody tr:hover td {
    background-color: #F8FAFC;
}

/* Form Controls */
.form-hub-label {
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--hub-slate);
    margin-bottom: 0.35rem;
}

.form-hub-control {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--hub-border);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-hub-control:focus {
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* Rate Card Pricing Badges */
.price-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--hub-primary);
}
