/**
 * Dor Labels - Customer Portal Styles
 * Uses shared CSS system for consistency
 */

/* Import Shared CSS System */
@import url('/css/shared/variables.css');
@import url('/css/shared/base.css');
@import url('/css/shared/components/buttons.css');
@import url('/css/shared/components/forms.css');
@import url('/css/shared/components/tables.css');
@import url('/css/shared/components/modals.css');
@import url('/css/shared/components/cards.css');
@import url('/css/shared/components/alerts.css');
@import url('/css/shared/responsive.css');

/* Legacy variable aliases for backward compatibility */
:root {
    --primary-gold: var(--color-primary);
    --primary-gold-light: var(--color-primary-light);
    --bg-dark: var(--bg-body);
    --bg-input: var(--bg-input);
    --border-focus: var(--color-primary);
    --success-color: var(--color-success);
    --error-color: var(--color-danger);
    --warning-color: var(--color-warning);
    --info-color: var(--color-info);
}

/* ===================
   Auth Pages Layout
=================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px 40px;
}

@media (max-width: 480px) {
    .auth-box {
        padding: 40px 25px;
        border-radius: 16px;
    }
}

/* Logo & Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-label .required {
    color: var(--error-color);
}

.input-group {
    position: relative;
}

.input-group i.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 1;
}

.input-group input:focus + i.input-icon,
.input-group input:focus ~ i.input-icon {
    color: var(--primary-gold);
}

.form-control {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.error {
    border-color: var(--error-color);
}

/* Form control without icon */
.form-group .form-control:not(.input-group .form-control) {
    padding: 14px 16px;
}

/* Form control with icon (inside input-group) */
.input-group .form-control {
    padding: 14px 14px 14px 45px;
}

.form-control:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--primary-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 50%, var(--primary-gold) 100%);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
    padding: 10px;
}

.btn-text:hover {
    color: var(--primary-gold);
}

/* Messages */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    margin-top: 2px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info-color);
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.alert a:hover {
    opacity: 0.8;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.auth-link {
    color: var(--primary-gold);
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary-gold);
}

/* Form Options Row */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

.checkbox-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar-fill.weak { width: 25%; background: var(--error-color); }
.strength-bar-fill.fair { width: 50%; background: var(--warning-color); }
.strength-bar-fill.good { width: 75%; background: var(--info-color); }
.strength-bar-fill.strong { width: 100%; background: var(--success-color); }

.strength-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn .spinner {
    margin-right: 8px;
}

/* ===================
   Portal Dashboard Layout
=================== */
.portal-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.portal-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    padding: 0 20px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--text-white);
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-link .badge {
    margin-left: auto;
    background: var(--primary-gold);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.portal-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.portal-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Header Notification Button */
.header-notification-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.header-notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.header-notification-btn .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    border-radius: 9px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header User */
.header-user-wrapper {
    position: relative;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-user:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
}

.header-user-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.header-user-wrapper:has(.user-dropdown.show) .header-user-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.user-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-gold);
}

.user-dropdown .dropdown-item-danger {
    color: #ef4444;
}

.user-dropdown .dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.user-dropdown .dropdown-item-danger i {
    color: #ef4444;
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: #333;
    margin: 5px 0;
}

.user-dropdown .dropdown-badge {
    margin-left: auto;
    background: var(--primary-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Header Notifications Wrapper */
.header-notifications-wrapper {
    position: relative;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-height: 450px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.notifications-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notifications-dropdown .dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid #333;
}

.notifications-dropdown .dropdown-header span:first-child {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.notifications-dropdown .dropdown-header .unread-count {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.notifications-dropdown .dropdown-header .view-all-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.notifications-dropdown .dropdown-header .view-all-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.notifications-dropdown .dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(212, 175, 55, 0.05);
}

.notification-item .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
}

.notification-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notif-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e5e5;
    margin-bottom: 3px;
}

.notification-item .notif-message {
    font-size: 0.8rem;
    color: #888;
}

.notification-item .notif-time {
    font-size: 0.7rem;
    color: #666;
    margin-top: 4px;
}

.notifications-dropdown .dropdown-footer {
    padding: 12px 18px;
    border-top: 1px solid #333;
    text-align: center;
}

.notifications-dropdown .dropdown-footer a {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.loading-notifications,
.no-notifications {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.no-notifications i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
}

.loading-notifications i {
    color: var(--primary-gold);
}

/* Legacy notification-btn (keep for compatibility) */
.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.notification-btn:hover {
    color: var(--primary-gold);
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-user-name {
        display: none;
    }
    .header-user-arrow {
        display: none;
    }
    .header-user {
        padding: 8px 12px;
    }
    .header-left h1 {
        display: none;
    }
    .notifications-dropdown {
        width: calc(100vw - 30px);
        right: -60px;
    }
    .user-dropdown {
        width: calc(100vw - 30px);
        right: 0;
    }
}

.portal-content {
    flex: 1;
    padding: 30px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.card-body {
    padding: 20px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-gold);
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info-color);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: var(--text-white);
}

.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.03);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info-color);
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.status-badge.revision_pending {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-gold);
}

.status-badge.quote_sent {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-badge.quote_approved {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.status-badge.in_production {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.status-badge.quality_check {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.status-badge.ready_to_ship {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.shipped {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
}

.status-badge.delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-badge.refunded {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

/* Design Status Badges */
.status-badge.design_pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.status-badge.design_in_progress {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.status-badge.design_review {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.status-badge.design_revision {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.status-badge.design_approved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Production Status Badges */
.status-badge.production_sent {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-badge.production_check {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.status-badge.production_approved {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
}

.status-badge.production_done {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Other Status Badges */
.status-badge.rep_review,
.status-badge.price_pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .portal-sidebar {
        transform: translateX(-100%);
    }

    .portal-sidebar.active {
        transform: translateX(0);
    }

    .portal-main {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 90;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .portal-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

/* Utilities */
.text-gold { color: var(--primary-gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-error { color: var(--error-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

.hidden { display: none !important; }
