/**
 * Yuvion Private Limited - Luxury Partner & Internship Dashboard Theme
 * Exact match for internship.yuvion.in/partner_dashboard.php
 * Palette: Forest Green Sidebar (#063a2a), Emerald Accent (#00a86b),
 * Light Canvas (#f4f7f5), Clean White Luxury Cards (#ffffff).
 */

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

:root {
    --sidebar-bg: #063a2a;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --primary-green: #00a86b;
    --primary-green-hover: #00915c;
    --green-light-bg: #ecfdf5;
    --green-border: #a7f3d0;
    --notice-bg: #042e21;
    
    --canvas-bg: #eef2f6;
    --card-bg: #ffffff;
    --border-subtle: #cbd5e1;
    --border-card: #cbd5e1;
    
    --text-dark: #0f172a;
    --text-body: #1e293b;
    --text-muted: #475569;
    --text-light: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-card: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-float: 0 12px 28px -4px rgba(6, 58, 42, 0.16);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--canvas-bg) !important;
    color: var(--text-body) !important;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

ul, ol, li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--primary-green-hover);
}

/* ==========================================================================
   APP DESKTOP & MOBILE SHELL (Matches Screenshot 1 & 2)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 16px;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0 8px 24px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    background: rgba(0, 168, 107, 0.3);
    border: 1px solid var(--primary-green);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.sidebar-link.active {
    background: var(--primary-green) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.35);
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}

.sidebar-footer-card h5 {
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 4px;
}

.sidebar-footer-card p {
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 12px;
}

/* Main Area */
.app-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Green Notice Banner (Exact match to Screenshot 1 & 2) */
.notice-top-bar {
    background: var(--notice-bg);
    color: #e2e8f0;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notice-pill {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.notice-text {
    flex: 1;
    color: #d1fae5;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
}

.notice-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

/* Page Main Container */
.page-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 80px;
}

/* ==========================================================================
   STAT CARDS (Exact match to 4 Cards in Screenshot 1 & 2)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-luxury-card {
    background: #ffffff !important;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-luxury-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-card-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Color Themes for Stat Cards */
.theme-blue .stat-card-title { color: #0284c7; }
.theme-blue .stat-badge-icon { background: #e0f2fe; color: #0284c7; }
.theme-blue .stat-card-number { color: #0369a1; }

.theme-orange .stat-card-title { color: #ea580c; }
.theme-orange .stat-badge-icon { background: #ffedd5; color: #ea580c; }
.theme-orange .stat-card-number { color: #c2410c; }

.theme-green .stat-card-title { color: #059669; }
.theme-green .stat-badge-icon { background: #d1fae5; color: #059669; }
.theme-green .stat-card-number { color: #047857; }

.theme-purple .stat-card-title { color: #7c3aed; }
.theme-purple .stat-badge-icon { background: #ede9fe; color: #7c3aed; }
.theme-purple .stat-card-number { color: #6d28d9; }

.stat-card-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   LUXURY ACTION CARDS (Matches "Ready-to-Share Pitches" in Screenshot 1)
   ========================================================================== */
.luxury-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
    padding: 24px;
    margin-bottom: 24px;
}

.luxury-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.head-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.head-title-wrap h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.head-icon {
    color: var(--primary-green);
    font-size: 18px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.pill-badge-green {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.pill-badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pill-badge-orange {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.pill-badge-red {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Buttons */
.btn-yuvion {
    background: linear-gradient(135deg, #00a86b 0%, #064e3b 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
    transition: all 0.2s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.btn-yuvion:hover {
    background: linear-gradient(135deg, #00bd78 0%, #065a44 100%);
    box-shadow: 0 6px 18px rgba(0, 168, 107, 0.45);
    transform: translateY(-1px);
}

.btn-yuvion:active {
    transform: translateY(0);
}

.btn-yuvion-outline {
    background: #ffffff;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-yuvion-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.luxury-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.luxury-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-card);
}

.luxury-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.luxury-table tr:hover {
    background: #fbfdfc;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control:focus {
    background: #ffffff;
    border-color: #00a86b;
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* ==========================================================================
   MOBILE VIEW (Exact match to Screenshot 2 DevTools 323px)
   ========================================================================== */
.mobile-top-bar {
    display: none;
    background: var(--sidebar-bg);
    color: #ffffff;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
}

.mobile-bottom-app-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-card);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: 6px 12px;
    justify-content: space-around;
    align-items: center;
}

.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s;
}

.bottom-tab.active {
    color: var(--primary-green) !important;
}

.bottom-tab svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 920px) {
    .app-sidebar {
        display: none; /* Sidebar hidden on mobile */
    }
    .mobile-top-bar {
        display: flex;
    }
    .mobile-bottom-app-bar {
        display: flex;
    }
    .notice-top-bar {
        padding: 8px 14px;
    }
    .notice-user {
        display: none;
    }
    .page-container {
        padding: 14px 12px 88px; /* Room for bottom bar */
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid matching Screenshot 2 */
        gap: 10px;
    }
    .stat-luxury-card {
        padding: 14px;
    }
    .stat-card-number {
        font-size: 24px;
    }
}

/* ==========================================================================
   UNIVERSAL CARDS, FORMS & BUTTONS SYSTEM
   ========================================================================== */
.card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.15);
}

textarea.form-control {
    height: auto;
    padding: 12px 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    line-height: 1.2;
    box-sizing: border-box;
}

.btn-green, .btn-primary {
    background: linear-gradient(135deg, #00a86b 0%, #065f46 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 168, 107, 0.3);
}

.btn-green:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #02b876 0%, #044e39 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 168, 107, 0.4);
    color: #ffffff !important;
}

.btn-green:active, .btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-body);
    border: 1.5px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0fdf4;
}

.btn-lg {
    height: 48px;
    font-size: 15px;
    font-weight: 700;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* ==========================================================================
   COHORT FILTER PILLS (High-Contrast, Crisp & Vibrant Emerald Active)
   ========================================================================== */
.cohort-pill-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.cohort-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    background: #ffffff;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
    min-height: 36px;
}

.cohort-pill-btn:hover {
    background: #f0fdf4;
    border-color: #00a86b;
    color: #00a86b !important;
    transform: translateY(-1px);
}

.cohort-pill-btn.active {
    background: linear-gradient(135deg, #00a86b 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: #00a86b !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 168, 107, 0.35) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   PHONE / MOBILE OPTIMIZATIONS (Smooth Touch, Fluid Layouts)
   ========================================================================== */
@media (max-width: 768px) {
    .luxury-card-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    .luxury-card-head > div:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 8px !important;
        width: 100%;
    }

    .luxury-card-head > div:last-child .btn,
    .luxury-card-head > div:last-child .btn-yuvion,
    .luxury-card-head > div:last-child .btn-yuvion-outline {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        min-height: 40px;
    }

    .luxury-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .luxury-table {
        min-width: 640px;
    }

    .luxury-table th, 
    .luxury-table td {
        padding: 10px 10px !important;
        font-size: 13px !important;
    }

    .modal-backdrop {
        padding: 12px !important;
    }

    .modal-box {
        width: 100% !important;
        max-width: 95vw !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        padding: 18px 16px !important;
        border-radius: 14px !important;
    }

    #bulkActionToolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }

    #bulkActionToolbar > div {
        width: 100%;
        justify-content: space-between;
    }

    .cohort-pill-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }
}


