/* ==========================================================================
   C&N Money Exchange - Mobile Manager Specific CSS (LIGHT THEME)
   Aesthetics: iOS Premium White Banking, Clean Spacing, High Contrast
   ========================================================================== */

/* Frame emulator for Desktop previewing */
.phone-emulator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #e2e8f0; /* Light desktop background */
    padding: 2rem;
}

.phone-shell {
    width: 410px;
    height: 840px;
    background: #1e293b; /* Dark sleek slate shell */
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 30px 100px -15px rgba(15, 23, 42, 0.3), 0 0 0 4px #475569;
    position: relative;
    overflow: hidden;
}

/* Phone Speaker and camera Notch simulator */
.phone-shell::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: #1e293b;
    border-radius: 20px;
    z-index: 100;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary); /* Slate 50 background */
    border-radius: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Make it responsive: disable emulator on actual mobile screens */
@media (max-width: 450px) {
    .phone-emulator-container {
        padding: 0;
        background: transparent;
    }
    .phone-shell {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    .phone-shell::before {
        display: none;
    }
    .phone-screen {
        border-radius: 0;
    }
}

/* iOS Header styling */
.manager-header {
    background: #ffffff;
    padding: 2rem 1.25rem 1.25rem 1.25rem;
    border-bottom: 2px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.user-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
}

/* Gradient Dashboard Card */
.stat-main-card {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Quick KPI slots */
.kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.kpi-box {
    background: #ffffff;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

/* Tab menu */
.tab-navbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-top: 2px solid var(--card-border);
    padding: 0.5rem;
    position: sticky;
    bottom: 0;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}

.tab-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.tab-nav-btn.active {
    color: var(--accent-cyan);
}

/* Sub page views switcher inside mobile screen */
.manager-view {
    display: none;
    flex: 1;
    padding: 1.25rem;
    flex-direction: column;
    gap: 1.25rem;
}

.manager-view.active {
    display: flex;
}

/* Stock Inventory Feed Row */
.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bg-tertiary);
    padding: 0.9rem 0;
}

.stock-item:last-child {
    border-bottom: none;
}

/* Transaction Timeline feed */
.timeline-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-card {
    background: #ffffff;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.timeline-card .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-card .body {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-main);
}

/* SVG Chart containers */
.chart-container {
    height: 160px;
    width: 100%;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}
