:root {
    /* --- Colors --- */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --surface: #ffffff;

    /* --- Dimensions --- */
    --sidebar-width: 260px;
    --navbar-height: 60px;

    /* --- Design Tokens --- */
    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 3px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    min-height: 100vh;
    padding-top: var(--navbar-height);
    /* Offset for fixed navbar */
}

/* =========================================
   GLOBAL LAYOUT & NAVBAR
   ========================================= */

/* --- Top Fixed Navbar --- */
.global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 60;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar-brand img {
    display: block;
}

/* Navbar Right Side (Avatar + Menu Toggle) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
}

.navbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: transparent;
    color: var(--text);
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle .material-symbols-outlined {
    font-size: 1.5rem;
}

/* --- Sidebar Navigation (Dark Theme) --- */
.global-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: #011722;
    /* Dark Background */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    /* Light Text */
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--navbar-height));
    position: sticky;
    top: var(--navbar-height);
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Override Text Colors in Sidebar Header for Dark Mode */
.global-sidebar .user-mini #header-user-name {
    color: #f1f5f9 !important;
}

.global-sidebar .user-mini #header-user-email {
    color: #94a3b8 !important;
}

.sidebar-content {
    flex: 1;
    padding: 1.5rem 0;
    /* Remove horizontal padding for full-width items */
    overflow-y: auto;
}

.menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    padding: 0 1.5rem;
}

.menu-category:first-child {
    margin-top: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 1.5rem;
    /* Full width padding */
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.nav-link.active {
    background: #ffffff08;
    color: #fff;
    border-left: 3px solid var(--primary);
    padding-left: calc(1.5rem - 3px);
}

.nav-link .material-symbols-outlined {
    font-size: 1.25rem;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    width: 100%;
    justify-content: flex-start;
    color: #ef4444;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

/* Backdrop for Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 40;
    backdrop-filter: blur(2px);
}

/* --- Content Wrapper --- */
.content {
    flex-grow: 1;
    min-width: 0;
    /* Prevents overflow */
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* --- Cards --- */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.section-description {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

.card-body {
    padding: 1.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    font-family: inherit;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.back-btn:hover {
    background: #f8fafc;
    color: var(--text);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm:hover {
    background: var(--primary-hover);
}

/* --- Forms (Generic) --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    color: var(--text-muted);
}

/* --- Badges & Indicators --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.validity-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.validity-active {
    background: #dcfce7;
    color: #166534;
}

.validity-expired {
    background: #fee2e2;
    color: #991b1b;
}

.current-badge {
    font-size: 0.7rem;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Messages --- */
.message-box {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* =========================================
   SPECIFIC PAGE STYLES
   ========================================= */

/* --- Profile Info Grid --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

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

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.info-value.empty {
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}

/* --- View/Edit Toggle --- */
.edit-mode-field {
    display: none;
}

.view-mode-field {
    display: block;
}

body.editing .edit-mode-field {
    display: block;
}

body.editing .view-mode-field {
    display: none;
}

body.editing .edit-btn {
    display: none;
}

body.editing .save-actions {
    display: flex;
}

.save-actions {
    display: none;
    gap: 10px;
}

/* --- Ticket List & Chat --- */
.ticket-item {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    background: #fff;
}

.ticket-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.msg-bubble {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.msg-user {
    background: #eff6ff;
    margin-left: auto;
    color: #1e3a8a;
    border: 1px solid #dbeafe;
}

.msg-admin {
    background: #f8fafc;
    border: 1px solid var(--border);
    margin-right: auto;
}

/* --- Device List --- */
.device-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    background: #fff;
}

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

.device-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-sm-danger {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: #fff;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-sm-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* --- Analysis & Subscriptions --- */
.analysis-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background: #fff;
    transition: all 0.2s;
}

.analysis-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sample-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    display: block;
}

.sample-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.analysis-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.detail-row span:first-child {
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sub-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
    transition: all 0.2s;
}

.sub-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sub-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sub-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-id {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8em;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.sub-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.apps-container {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 10px 16px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.app-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.app-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* =========================================
   AUTHENTICATION PAGES (Standalone & Refined)
   ========================================= */
body.auth-page {
    padding-top: 0;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    /* Dark fallback */
    position: relative;
    overflow: hidden;
    /* Prevent scrollbar if image is large */
}

/* Background Image with Opacity Logic */
body.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    /* Reduces image visibility */
    z-index: -1;
}

.auth-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 2px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

.auth-card.wide {
    max-width: 450px;
}

.auth-header {
    text-align: left;
    margin-bottom: 2rem;
}

.auth-header h2 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: var(--text);
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.auth-header img {
    height: 20px !important;
    margin-bottom: 1rem !important;
}

.auth-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Group & Floating Icons */
.form-group {
    position: relative;
    margin-bottom: 0.8rem;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    /* Fixed size for alignment */
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

/* Input Styles */
.auth-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    /* Space for icon */
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Highlight icon on input focus */
.auth-input:focus+.field-icon,
.form-group:focus-within .field-icon {
    color: var(--primary);
}

.form-group span.material-symbols-outlined {
    font-size: 1.15rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    user-select: none;
    z-index: 5;
    transition: color 0.2s;
}

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

/* Add space on the right so text doesn't overlap the eye icon */
.auth-input[type="password"],
.auth-input[type="text"] {
    padding-right: 44px !important;
}

/* Dividers */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

/* Buttons */
.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-google {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Captcha - Styled to match inputs */
.captcha-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 46px;
    overflow: hidden;
    margin-top: 5px;
    background: #fff;
}

.captcha-input {
    border: none !important;
    padding-left: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    background: transparent;
    height: 100%;
}

.captcha-input:focus {
    box-shadow: none;
    border: none;
}

#refresh-c {
    background: #f8fafc;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    cursor: pointer;
    padding: 0 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

#refresh-c:hover {
    background: #e2e8f0;
    color: var(--text);
}

/* Loader */
#page-loader {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =========================================
   RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {

    /* Navbar & Sidebar Interaction */
    .global-sidebar {
        position: fixed;
        left: 0;
        top: var(--navbar-height);
        /* Below navbar */
        transform: translateX(-100%);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--navbar-height));
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .global-sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar-backdrop {
        top: var(--navbar-height);
    }

    .sidebar-backdrop.open {
        display: block;
    }

    /* Layout Adjustments */
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .content {
        padding: 20px;
    }

    /* Auth */
    .auth-card {
        padding: 1.5rem;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    body.auth-page {
        min-height: 100dvh;
        align-items: center;
        justify-content: center;
        background: #fff;
        padding: 0;
    }

    body.auth-page::before {
        display: none;
    }

    /* Remove background on mobile */
}

/* --- Orders Page Styles --- */
.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.order-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.oh-group {
    display: flex;
    flex-direction: column;
}

.oh-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.oh-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.status-processing {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

.status-shipped,
.status-completed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

.order-items-wrapper {
    overflow-x: auto;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.order-items-table th {
    text-align: left;
    background: #fff;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.order-items-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.oi-name {
    display: block;
    font-weight: 500;
}

.oi-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.oi-sku {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Empty State */
.no-orders-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-orders-icon {
    font-size: 48px;
    color: #e2e8f0;
    margin-bottom: 16px;
}

/* Custom Scrollbar for Sidebar (Webkit) */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}