/* Supplier Portal Styles - Clean Light Sidebar */

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

/* Sidebar */
.portal-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header .company-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 4px 0;
}

.sidebar-header .company-id {
    font-size: 0.75rem;
    color: #6c757d;
    font-family: monospace;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}

.nav-item {
    display: block;
    padding: 12px 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;
}

.nav-item:hover {
    background: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.nav-item.active {
    background: linear-gradient(90deg, #e3f2fd 0%, #f8f9fa 100%);
    color: #1976d2;
    border-left-color: #1976d2;
    font-weight: 600;
}

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

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

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

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

.page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

/* Company Info Bar */
.company-info-bar {
    display: flex;
    gap: 32px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-item .value {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
}

/* Page Content */
.page-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e9ecef;
}

/* Cards */
.content-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.content-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
}

/* Info Message */
.info-message {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 12px 16px;
    color: #1565c0;
    font-size: 0.9rem;
}

/* Error State */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: #f8f9fa;
}

.error-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    border: 1px solid #e9ecef;
}

.error-box h2 {
    color: #dc3545;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.error-box p {
    color: #6c757d;
    margin-bottom: 24px;
}

.error-box .btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1976d2;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin: 0 8px;
    transition: background 0.15s ease;
}

.error-box .btn:hover {
    background: #1565c0;
    text-decoration: none;
}

.error-box .btn-outline {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
}

.error-box .btn-outline:hover {
    background: #dc3545;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .supplier-portal {
        flex-direction: column;
    }

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

    .sidebar-header {
        display: none;
    }

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

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

    .nav-item.active {
        background: #e3f2fd;
        border-left-color: transparent;
        border-bottom-color: #1976d2;
    }

    .sidebar-footer {
        display: none;
    }

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

    .company-info-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
}
