/* Admin Dashboard Custom Theme Styling */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #2D3748;
}

.sidebar .nav-link {
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFC107 !important;
}

.card {
    border-radius: 12px;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
}

/* =============================================================================
   Real Funnel Diagram Styling (Trapezoid Conversion Funnel)
   ============================================================================= */
.real-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.funnel-stage {
    position: relative;
    width: var(--stage-width, 100%);
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    clip-path: polygon(0% 0%, 100% 0%, 93% 100%, 7% 100%);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.funnel-stage:hover {
    transform: scale(1.03);
    filter: brightness(1.12);
    z-index: 10;
}

.funnel-stage-1 { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); --stage-width: 100%; }
.funnel-stage-2 { background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%); --stage-width: 88%; }
.funnel-stage-3 { background: linear-gradient(135deg, #D97706 0%, #B45309 100%); --stage-width: 76%; }
.funnel-stage-4 { background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%); --stage-width: 64%; }
.funnel-stage-5 { background: linear-gradient(135deg, #059669 0%, #047857 100%); --stage-width: 52%; clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%); }

.funnel-stage .stage-title {
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.funnel-stage .stage-stats {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* =============================================================================
   Mobile Responsive Optimizations (< 992px)
   ============================================================================= */
@media (max-width: 991px) {
    .funnel-stage {
        height: 48px;
        padding: 0 16px;
        font-size: 0.82rem;
    }

    .funnel-stage .stage-stats {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .card {
        padding: 1rem !important;
        border-radius: 12px;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0.5rem;
    }

    .table th, .table td {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .btn-sm {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .funnel-stage {
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .funnel-stage .stage-stats {
        font-size: 0.7rem;
    }

    .p-4 {
        padding: 0.85rem !important;
    }
}
