/* Portal (customer) pages */

.portal-page {
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}

.portal-header {
    background: #1e3a5f;
    color: white;
    padding: 0.875rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.portal-brand {
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

.portal-nav nav {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    flex-wrap: wrap;
}

.portal-nav nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.portal-nav nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.portal-nav nav a.active {
    color: white;
    background: rgba(96, 165, 250, 0.2);
}

.portal-logout {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border: 1px solid #475569;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.portal-logout:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.portal-main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .portal-header { padding: 0.75rem 1rem; }
    .portal-nav { gap: 0.75rem; }
    .portal-brand { font-size: 1rem; }
    .portal-nav nav { gap: 0.75rem; }
    .portal-nav nav a { font-size: 0.85rem; padding: 0.3rem 0.4rem; }
    .portal-logout { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
    .portal-main { padding: 1rem; }
}
