@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --navy: #001F3F;
    --royal: #0074D9;
    --light: #7FDBFF;
    --white: #FFFFFF;
}

.flow-portal-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
}

.flow-sidebar {
    width: 240px;
    background: var(--navy);
    color: var(--white);
    padding: 2rem 0;
}

.flow-main {
    flex: 1;
    padding: 2rem;
    background: #F5F7FA;
}

h1,
h2 {
    font-family: 'League Spartan', sans-serif;
    color: var(--navy);
}

.flow-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.flow-kpi-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kpi-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.flow-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.flow-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.flow-product-card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.flow-product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.product-sku {
    font-weight: 600;
    margin-bottom: 4px;
}

.product-stock {
    color: #0074D9;
    font-size: 0.9em;
}

.flow-table {
    width: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border-collapse: collapse;
}

.flow-table th {
    background: var(--navy);
    color: var(--white);
    padding: 1rem;
    text-align: left;
}

.flow-table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-delivered {
    background: #D1FAE5;
    color: #065F46;
}

.status-dispatched {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-returned {
    background: #FEE2E2;
    color: #991B1B;
}

.status-canceled {
    background: #E5E7EB;
    color: #374151;
}

.status-confirmed {
    background: #E0E7FF;
    color: #3730A3;
}

.status-new {
    background: #F3F4F6;
    color: #1F2937;
}

@media (max-width: 768px) {
    .flow-portal-wrapper {
        flex-direction: column;
    }

    .flow-sidebar {
        width: 100%;
    }
}

/* Modal Styles */
.flow-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.flow-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.flow-input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.flow-btn-edit {
    background: var(--royal);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.flow-btn-save {
    background: var(--navy);
    color: white;
    width: 100%;
    margin-top: 10px;
}