/* ── Good Foods Internal Portal ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@400;500;600;700&family=Barlow+Semi+Condensed:wght@400;500;600;700&display=swap');

:root {
    --gf-green:       #006E33;
    --gf-green-dark:  #005228;
    --gf-green-light: #e8f5e9;
    --gf-orange:      #FF8F1C;
    --gf-orange-dark: #e07800;
    --gf-warm-white:  #F2EBE7;
    --gf-text:        #1a1a1a;
    --gf-muted:       #666;
    --gf-border:      #e0e0e0;
    --gf-bg:          #F2EBE7;
    --gf-white:       #ffffff;
    --gf-radius:      10px;
    --gf-shadow:      0 2px 20px rgba(0, 110, 51, 0.08);
    --gf-shadow-lg:   0 8px 40px rgba(0, 110, 51, 0.12);
    --gf-font:        'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gf-font-heading: 'Oswald', 'Barlow Semi Condensed', sans-serif;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */

.gf-portal-wrap *,
.gf-portal-wrap *::before,
.gf-portal-wrap *::after,
.gf-login-wrap *,
.gf-action-page * {
    box-sizing: border-box;
}

.gf-portal-wrap,
.gf-login-wrap {
    font-family: var(--gf-font);
    color: var(--gf-text);
    background: var(--gf-bg);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ── Brand mark ──────────────────────────────────────────────────────────── */

.gf-brand-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--gf-white);
    border-radius: 50%;
    margin-right: 6px;
}

.gf-brand-dot--2 { background: var(--gf-orange); margin-right: 4px; }
.gf-brand-dot--3 { background: var(--gf-white); width: 6px; height: 6px; }

/* ── Login page ──────────────────────────────────────────────────────────── */

.gf-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(145deg, var(--gf-green) 0%, #004d24 100%);
}

.gf-login-card {
    background: var(--gf-white);
    border-radius: 16px;
    box-shadow: var(--gf-shadow-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
}

.gf-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.gf-brand-mark {
    display: flex;
    align-items: center;
    gap: 3px;
}

.gf-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.gf-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gf-green);
    letter-spacing: -0.3px;
}

.gf-brand-sub {
    font-size: 11px;
    color: var(--gf-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gf-login-title {
    font-family: var(--gf-font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--gf-green);
    margin: 0 0 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gf-login-desc {
    font-size: 14px;
    color: var(--gf-muted);
    margin: 0 0 28px;
    line-height: 1.5;
}

.gf-login-footer {
    text-align: center;
    font-size: 13px;
    color: var(--gf-muted);
    margin: 20px 0 0;
}

.gf-login-footer a {
    color: var(--gf-green);
    text-decoration: none;
}

/* ── Portal header ───────────────────────────────────────────────────────── */

.gf-portal-header {
    background: var(--gf-green);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 60, 20, 0.2);
}

.gf-portal-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gf-portal-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 60px;
}

.gf-portal-brand-small {
    font-family: var(--gf-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--gf-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.gf-portal-nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
}

.gf-nav-link {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.gf-nav-link--active {
    background: rgba(255,255,255,0.18);
    color: var(--gf-white);
}

.gf-nav-coming {
    padding: 6px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gf-badge {
    font-size: 10px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Portal content layout ───────────────────────────────────────────────── */

.gf-portal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.gf-portal-content--centered {
    grid-template-columns: 1fr;
    justify-items: center;
}

/* ── Form card ───────────────────────────────────────────────────────────── */

.gf-form-card {
    background: var(--gf-white);
    border-radius: var(--gf-radius);
    box-shadow: var(--gf-shadow);
    overflow: hidden;
    border: 1px solid var(--gf-border);
}

.gf-form-card__header {
    padding: 28px 32px;
    border-bottom: 3px solid var(--gf-orange);
    background: var(--gf-white);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.gf-section-icon {
    font-size: 28px;
    line-height: 1;
    margin-top: 2px;
}

.gf-form-title {
    font-family: var(--gf-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--gf-green);
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gf-form-subtitle {
    font-size: 14px;
    color: var(--gf-muted);
    margin: 0;
    line-height: 1.5;
}

.gf-submit-form {
    padding: 32px;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */

.gf-field {
    margin-bottom: 28px;
}

.gf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gf-text);
    margin-bottom: 8px;
}

.gf-required {
    color: #c0392b;
    margin-left: 2px;
}

.gf-optional {
    font-weight: 400;
    color: var(--gf-muted);
    font-size: 13px;
}

.gf-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gf-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--gf-font);
    color: var(--gf-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--gf-white);
    outline: none;
}

.gf-input:focus {
    border-color: var(--gf-green);
    box-shadow: 0 0 0 3px rgba(0, 110, 51, 0.1);
}

/* ── Upload zones ────────────────────────────────────────────────────────── */

.gf-upload-zone {
    border: 2px dashed var(--gf-border);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    background: #fafafa;
}

.gf-upload-zone:hover,
.gf-upload-zone.gf-drag-over {
    border-color: var(--gf-green);
    background: var(--gf-green-light);
}

.gf-upload-zone--optional {
    border-color: #e8e8e8;
    background: #fdfdf5;
}

.gf-upload-zone.gf-has-file {
    border-color: var(--gf-green);
    border-style: solid;
    background: var(--gf-green-light);
}

.gf-upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1;
}

.gf-upload-label {
    font-size: 14px;
    color: var(--gf-text);
    margin: 0 0 4px;
    font-weight: 500;
}

.gf-upload-browse {
    color: var(--gf-green);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.gf-upload-hint {
    font-size: 12px;
    color: var(--gf-muted);
    margin: 0;
}

.gf-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.gf-file-preview {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--gf-green-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gf-green-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.gf-file-preview::before {
    content: '✓';
    font-weight: 700;
    color: var(--gf-green);
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.gf-submit-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--gf-border);
    margin-top: 8px;
}

.gf-submit-hint {
    font-size: 13px;
    color: var(--gf-muted);
    margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.gf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--gf-font);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    letter-spacing: 0.2px;
}

.gf-btn--primary {
    background: var(--gf-green);
    color: var(--gf-white);
    box-shadow: 0 2px 8px rgba(0, 110, 51, 0.25);
}

.gf-btn--primary:hover:not(:disabled) {
    background: var(--gf-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 110, 51, 0.3);
}

.gf-btn--primary:disabled {
    background: #b0c8b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.gf-btn--submit {
    padding: 14px 36px;
    font-size: 16px;
}

.gf-btn--full {
    width: 100%;
}

.gf-btn-reject {
    background: #c0392b;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: var(--gf-font);
    transition: background 0.15s;
}

.gf-btn-reject:hover { background: #a93226; }

.gf-link-approve {
    font-size: 14px;
    color: var(--gf-green);
    text-decoration: none;
    font-weight: 600;
}

.gf-link-approve:hover { text-decoration: underline; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */

.gf-alert {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 32px 24px;
}

.gf-alert--error {
    background: #fff3f3;
    border-left: 4px solid #c0392b;
    color: #7b241c;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.gf-portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gf-info-card {
    background: var(--gf-white);
    border-radius: var(--gf-radius);
    padding: 20px 20px 20px 16px;
    box-shadow: var(--gf-shadow);
    border: 1px solid var(--gf-border);
    border-left: 4px solid var(--gf-orange);
}

.gf-info-title {
    font-family: var(--gf-font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gf-green);
    margin: 0 0 12px;
}

.gf-info-card p {
    font-size: 13px;
    color: var(--gf-muted);
    margin: 0;
    line-height: 1.6;
}

.gf-steps-list {
    padding-left: 18px;
    margin: 0;
}

.gf-steps-list li {
    font-size: 13px;
    color: var(--gf-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ── Success card ────────────────────────────────────────────────────────── */

.gf-success-card {
    background: var(--gf-white);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--gf-shadow-lg);
    border: 1px solid var(--gf-border);
    max-width: 500px;
    width: 100%;
}

.gf-success-icon {
    width: 64px;
    height: 64px;
    background: var(--gf-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gf-green);
    margin: 0 auto 20px;
    font-weight: 700;
}

.gf-success-title {
    font-family: var(--gf-font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--gf-green);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gf-success-body {
    font-size: 15px;
    color: var(--gf-text);
    line-height: 1.6;
    margin: 0 0 12px;
}

.gf-success-note {
    font-size: 13px;
    color: var(--gf-muted);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ── Action pages (approve/reject) ───────────────────────────────────────── */

.gf-action-page {
    background: linear-gradient(145deg, var(--gf-green) 0%, #004d24 100%);
    min-height: 100vh;
    font-family: var(--gf-font);
    color: var(--gf-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gf-action-wrap {
    max-width: 540px;
    width: 100%;
}

.gf-portal-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--gf-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf-action-card {
    background: var(--gf-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--gf-shadow-lg);
    border: 1px solid var(--gf-border);
}

.gf-action-icon {
    width: 56px;
    height: 56px;
    background: var(--gf-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--gf-green);
    margin-bottom: 20px;
}

.gf-action-icon.gf-icon-reject {
    background: #fff3f3;
    color: #c0392b;
}

.gf-action-card h1 {
    font-family: var(--gf-font-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--gf-green);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gf-meta {
    font-size: 14px;
    color: var(--gf-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Rejection form */
.gf-reject-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gf-text);
}

.gf-reject-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gf-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--gf-font);
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.6;
}

.gf-reject-form textarea:focus {
    border-color: var(--gf-green);
    box-shadow: 0 0 0 3px rgba(0,110,51,0.1);
}

.gf-reject-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media ( max-width: 900px ) {
    .gf-portal-content {
        grid-template-columns: 1fr;
    }
    .gf-portal-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .gf-info-card { flex: 1 1 240px; }
}

@media ( max-width: 600px ) {
    .gf-form-card__header { flex-direction: column; gap: 8px; }
    .gf-submit-form,
    .gf-alert { padding: 20px; }
    .gf-login-card { padding: 32px 24px; }
    .gf-portal-nav { flex-direction: column; height: auto; padding: 12px 0; align-items: flex-start; }
    .gf-portal-nav-links { width: 100%; }
    .gf-action-card { padding: 28px 20px; }
}
