/* Manager Portal Styles - Clean Green Theme */

.manager-portal {
    display: flex;
    min-height: calc(100vh - 60px);
    background: #fff;
}

/* Sidebar */
.manager-portal .portal-sidebar {
    width: 260px;
    background: #f8faf8;
    border-right: 1px solid #e0e8e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.manager-portal .sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e0e8e0;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}

.manager-portal .sidebar-header .portal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.manager-portal .sidebar-header .portal-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.manager-portal .sidebar-nav {
    padding: 16px 0;
    flex: 1;
}

.manager-portal .nav-item {
    display: block;
    padding: 14px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.manager-portal .nav-item:hover {
    background: #e8f5e9;
    color: #2e7d32;
    text-decoration: none;
}

.manager-portal .nav-item.active {
    background: linear-gradient(90deg, #e8f5e9 0%, #f8faf8 100%);
    color: #2e7d32;
    border-left-color: #2e7d32;
    font-weight: 600;
}

.manager-portal .sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #e0e8e0;
}

.manager-portal .logout-btn {
    display: block;
    padding: 10px 16px;
    background: #fff;
    color: #d32f2f;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ffcdd2;
    transition: all 0.15s ease;
}

.manager-portal .logout-btn:hover {
    background: #d32f2f;
    color: #fff;
    text-decoration: none;
    border-color: #d32f2f;
}

/* Main Content */
.manager-portal .portal-main {
    flex: 1;
    padding: 32px 40px;
    background: #fafafa;
    overflow-y: auto;
}

.manager-portal .page-header {
    margin-bottom: 28px;
}

.manager-portal .page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 8px 0;
}

.manager-portal .page-header .subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e8e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.kpi-card .kpi-icon.green { background: #e8f5e9; color: #2e7d32; }
.kpi-card .kpi-icon.blue { background: #e3f2fd; color: #1976d2; }
.kpi-card .kpi-icon.orange { background: #fff3e0; color: #f57c00; }
.kpi-card .kpi-icon.purple { background: #f3e5f5; color: #7b1fa2; }

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
    line-height: 1.2;
}

.kpi-card .kpi-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.kpi-card .kpi-change {
    font-size: 0.8rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-card .kpi-change.positive { color: #2e7d32; }
.kpi-card .kpi-change.negative { color: #d32f2f; }

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e8e0;
    margin-bottom: 24px;
    overflow: hidden;
}

.content-card .card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e8e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.content-card .card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.content-card .card-body {
    padding: 24px;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e8e0;
}

.price-table th {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8faf8;
}

.price-table td {
    font-size: 0.9rem;
    color: #212529;
}

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

.price-table tbody tr:hover td {
    background: #f8faf8;
}

.price-value {
    font-weight: 600;
    color: #2e7d32;
}

.price-change {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.price-change.up {
    background: #e8f5e9;
    color: #2e7d32;
}

.price-change.down {
    background: #ffebee;
    color: #d32f2f;
}

.price-change.neutral {
    background: #f5f5f5;
    color: #757575;
}

/* Tier Badge */
.tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-badge.standard { background: #e0e0e0; color: #424242; }
.tier-badge.vip { background: #fff3e0; color: #e65100; }
.tier-badge.premium { background: #fce4ec; color: #c2185b; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: #2e7d32;
    color: #fff;
}

.btn-primary:hover {
    background: #1b5e20;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e0e8e0;
    color: #495057;
}

.btn-outline:hover {
    background: #f8faf8;
    border-color: #2e7d32;
    color: #2e7d32;
    text-decoration: none;
}

/* World Price Widget */
.world-price-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8faf8;
    border-radius: 8px;
    margin-bottom: 12px;
}

.world-price-card:last-child {
    margin-bottom: 0;
}

.world-price-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.2rem;
}

.world-price-info {
    flex: 1;
}

.world-price-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}

.world-price-market {
    font-size: 0.75rem;
    color: #6c757d;
}

.world-price-value {
    text-align: right;
}

.world-price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.world-price-unit {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Info Message */
.info-message {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 14px 18px;
    color: #2e7d32;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .manager-portal {
        flex-direction: column;
    }

    .manager-portal .portal-sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
        border-right: none;
        border-top: 1px solid #e0e8e0;
        background: #fff;
    }

    .manager-portal .sidebar-header {
        display: none;
    }

    .manager-portal .sidebar-nav {
        display: flex;
        padding: 8px;
        overflow-x: auto;
        gap: 4px;
    }

    .manager-portal .nav-item {
        padding: 10px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        border-radius: 6px;
    }

    .manager-portal .nav-item.active {
        background: #e8f5e9;
        border-left-color: transparent;
        border-bottom-color: #2e7d32;
    }

    .manager-portal .sidebar-footer {
        display: none;
    }

    .manager-portal .portal-main {
        padding: 20px 16px 100px 16px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .manager-portal .page-header h1 {
        font-size: 1.5rem;
    }
}
