/* 
 * File: public/assets/css/site.css
 * Purpose: Defines the NimbusFlow ERP global design language (spacing, typography, colors, components).
 * Why: Ensures consistent premium look akin to Shopify/Apple while keeping overrides centralized.
 * Author(s): Umar Riaz, Mohsin Mushtaq
 */

:root {
    --nf-font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nf-color-bg: radial-gradient(circle at 20% 20%, rgba(15, 138, 101, 0.08), transparent 55%), #f4f6fb;
    --nf-color-surface: rgba(255, 255, 255, 0.85);
    --nf-color-muted: #6c757d;
    --nf-color-accent: #13a06f;
    --nf-color-accent-soft: rgba(19, 160, 111, 0.2);
    --nf-color-border: rgba(255, 255, 255, 0.4);
    --nf-radius-card: 1.25rem;
    --nf-shadow-card: 0 25px 60px rgba(15, 138, 101, 0.12);
    --nf-blur-card: blur(18px);
}

html,
body {
    font-family: var(--nf-font-sans);
    background: var(--nf-color-bg);
    min-height: 100%;
    color: #111827;
}

a {
    color: var(--nf-color-accent);
    text-decoration: none;
}

a:hover {
    color: #0c6e50;
}

.nf-app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.nf-sidebar {
    width: 280px;
    background: linear-gradient(195deg, rgba(9, 27, 24, 0.9), rgba(12, 76, 70, 0.85));
    backdrop-filter: blur(24px);
    color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nf-brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nf-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.nf-nav a.active,
.nf-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nf-sidebar .nf-muted-text,
.nf-sidebar .nf-brand,
.nf-sidebar small {
    color: rgba(255, 255, 255, 0.9);
}

.nf-content {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.nf-card {
    background: var(--nf-color-surface);
    border: 1px solid var(--nf-color-border);
    box-shadow: var(--nf-shadow-card);
    backdrop-filter: var(--nf-blur-card);
    border-radius: var(--nf-radius-card);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.surface-subtle {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nf-stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nf-stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--nf-color-muted);
}

.nf-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.nf-muted-text {
    color: var(--nf-color-muted);
}

.nf-portal-hero {
    background: #ffffff;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--nf-shadow-card);
    text-align: center;
}

.nf-portal-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.nf-portal-hero p {
    font-size: 1.1rem;
    color: var(--nf-color-muted);
}

.nf-btn-primary {
    background-image: linear-gradient(120deg, #0f8a65, #29c58c);
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    border: none;
    font-weight: 600;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 138, 101, 0.2);
}

.nf-form-card {
    max-width: 480px;
    margin: 0 auto;
}

.status-card {
    border: none;
    color: #0f172a;
}

.status-card.status-ok {
    background: linear-gradient(135deg, rgba(19, 160, 111, 0.18), rgba(255, 255, 255, 0.8));
}

.status-card.status-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.28), rgba(255, 255, 255, 0.85));
}

@media (max-width: 992px) {
    .nf-app-shell {
        flex-direction: column;
    }

    .nf-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.portal-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
