/* ==========================================================================
   SHORAGES PREMIUM - CUSTOMER DASHBOARD STYLES
   Full customer portal with sidebar, topbar, charts, tables
   ========================================================================== */

/* ============ AUTH PAGE (LOGIN/REGISTER) ============ */
.dashboard-auth-section {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dashboard-auth-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(190, 18, 60, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-auth-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    margin: 0 1rem;
}

.auth-card {
    padding: 3rem;
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.auth-logo .logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #BE123C, #9F1239);
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(190, 18, 60, 0.3);
}

.auth-logo .logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #0F172A;
}

.auth-title {
    font-size: 1.875rem;
    color: #0F172A;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.auth-subtitle {
    color: #64748B;
    font-size: 0.95rem;
    margin: 0;
}

.auth-tabs {
    display: flex;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748B;
    border-radius: 8px;
    transition: all 0.25s;
}

.auth-tab.active {
    background: white;
    color: #BE123C;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: #0F172A;
    margin-bottom: 0.4rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #1E293B;
    transition: all 0.2s;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #BE123C;
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 4px;
}

.password-toggle:hover {
    color: #BE123C;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
    cursor: pointer;
}

.auth-link {
    color: #BE123C;
    font-weight: 500;
    text-decoration: none;
}

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

.auth-submit {
    margin-top: 0.5rem;
}

.auth-message {
    margin-top: 1rem;
    padding: 0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s;
    max-height: 0;
    overflow: hidden;
}

.auth-message.show {
    padding: 0.75rem 1rem;
    max-height: 200px;
    margin-top: 1rem;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-demo-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #64748B;
    text-align: center;
}

.auth-demo-notice code {
    background: #E2E8F0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #0F172A;
}

.auth-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #64748B;
    text-align: center;
}

/* Side panel */
.auth-side-panel {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-side-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(190, 18, 60, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-side-content {
    position: relative;
    z-index: 1;
}

.auth-side-content h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-features .feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(190, 18, 60, 0.2);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.auth-features strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.auth-features p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

/* ============ REGISTER FORM EXTRAS ============ */
.register-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1F5F9;
}

.register-form-title {
    font-size: 1.5rem;
    color: #0F172A;
    margin: 0 0 0.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.register-form-subtitle {
    color: #64748B;
    font-size: 0.875rem;
    margin: 0;
}

.required {
    color: #BE123C;
    font-weight: 700;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: #EF4444;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.strength-fill.weak {
    width: 25%;
    background: #EF4444;
}

.strength-fill.fair {
    width: 50%;
    background: #F59E0B;
}

.strength-fill.good {
    width: 75%;
    background: #3B82F6;
}

.strength-fill.strong {
    width: 100%;
    background: #10B981;
}

.strength-text {
    font-size: 0.7rem;
    color: #94A3B8;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}

.strength-text.weak { color: #EF4444; }
.strength-text.fair { color: #F59E0B; }
.strength-text.good { color: #3B82F6; }
.strength-text.strong { color: #10B981; }

/* Auth form when no register tab */
.auth-tabs:not(.has-register) {
    display: none;
}

.auth-container.no-side-panel {
    grid-template-columns: 1fr;
    max-width: 480px;
}

/* ============ DASHBOARD LAYOUT ============ */
.dashboard-main {
    padding: 0 !important;
    background: #F8FAFC;
    min-height: 100vh;
}

.dashboard-layout {
    position: relative;
    min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.dashboard-sidebar {
    background: #0F172A;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-logo .logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #BE123C, #9F1239);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(190, 18, 60, 0.3);
}

.sidebar-logo .logo-name {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
}

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

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-link.active {
    background: rgba(190, 18, 60, 0.15);
    color: white;
    border-left-color: #BE123C;
}

.sidebar-link.active .sidebar-icon {
    color: #FDA4AF;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.sidebar-footer .sidebar-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.sidebar-logout:hover {
    color: #FDA4AF !important;
}

/* Sidebar overlay (mobile) */
.dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}

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

/* ============ DASHBOARD CONTENT ============ */
.dashboard-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: 260px;
    width: calc(100% - 260px);
}

.dashboard-footer {
    margin-top: auto;
    padding: 1rem 1.5rem 1.25rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #64748B;
    font-size: 0.875rem;
}

.dashboard-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-footer-brand strong {
    color: #0F172A;
    font-family: var(--font-heading);
}

.dashboard-footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-footer-links a {
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-footer-links a:hover {
    color: #BE123C;
}

/* Topbar */
.dashboard-topbar {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #0F172A;
}

.dashboard-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.dashboard-breadcrumb a {
    color: #64748B;
    text-decoration: none;
}

.dashboard-breadcrumb a:hover {
    color: #BE123C;
}

.dashboard-breadcrumb .separator {
    color: #CBD5E1;
}

.dashboard-breadcrumb .current {
    color: #0F172A;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #64748B;
    border-radius: 8px;
    transition: all 0.2s;
}

.topbar-icon-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #BE123C;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Notifications dropdown */
.notifications-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 360px;
    max-height: 480px;
    overflow: hidden;
    flex-direction: column;
    z-index: 100;
}

.notifications-dropdown.show {
    display: flex;
}

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

.notifications-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #0F172A;
}

.mark-all-read {
    background: transparent;
    border: none;
    color: #BE123C;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.notifications-list {
    overflow-y: auto;
    max-height: 380px;
}

.notification-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #F8FAFC;
}

.notification-item.unread {
    background: rgba(190, 18, 60, 0.03);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #F1F5F9;
}

.notification-icon.type-order { background: rgba(59, 130, 246, 0.1); }
.notification-icon.type-shipment { background: rgba(6, 182, 212, 0.1); }
.notification-icon.type-inventory { background: rgba(245, 158, 11, 0.1); }
.notification-icon.type-payment { background: rgba(16, 185, 129, 0.1); }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.notification-message {
    color: #64748B;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: #94A3B8;
    font-size: 0.7rem;
}

.no-notifications {
    padding: 2rem;
    text-align: center;
    color: #64748B;
    font-size: 0.875rem;
}

/* User menu */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}

.topbar-user:hover {
    background: #F1F5F9;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #BE123C, #9F1239);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.user-info {
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.875rem;
}

.user-company {
    color: #64748B;
    font-size: 0.75rem;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 220px;
    padding: 0.5rem;
    z-index: 100;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: #1E293B;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #F1F5F9;
    color: #BE123C;
}

.dropdown-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 0.5rem 0;
}

.dropdown-logout {
    color: #EF4444;
}

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

/* ============ DASHBOARD PAGE ============ */
.dashboard-page {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.75rem;
    color: #0F172A;
    margin: 0 0 0.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.page-subtitle {
    color: #64748B;
    font-size: 0.875rem;
    margin: 0;
}

/* Date filter */
.date-filter {
    background: white;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

.date-filter-label {
    font-size: 0.7rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.date-filter-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-filter-inputs .form-control {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    width: 130px;
}

.date-separator {
    color: #94A3B8;
}

/* ============ STATS CARDS ============ */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #BE123C;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.stat-icon-amber { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.stat-icon-teal { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.stat-icon-red { background: rgba(190, 18, 60, 0.1); color: #BE123C; }

.stat-card-info {
    flex: 1;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F172A;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    color: #64748B;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ============ CHARTS ============ */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.chart-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #F1F5F9;
}

.chart-card-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #0F172A;
    font-family: var(--font-heading);
}

.chart-card-header p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748B;
}

.chart-card-body {
    padding: 1.25rem;
    height: 280px;
    position: relative;
}

/* Transit time display */
.transit-time-display {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.transit-time-value {
    font-size: 4rem;
    font-weight: 700;
    color: #BE123C;
    font-family: var(--font-heading);
    line-height: 1;
}

.transit-time-unit {
    color: #64748B;
    font-size: 1rem;
    margin: 0.5rem 0 1rem;
}

.transit-time-label {
    color: #64748B;
    font-size: 0.875rem;
}

/* ============ BOTTOM ROW ============ */
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.dashboard-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #0F172A;
    font-family: var(--font-heading);
}

.card-link {
    color: #BE123C;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.dashboard-card-body {
    padding: 1.25rem;
}

/* Inventory summary */
.inventory-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.inv-stat {
    background: #F8FAFC;
    padding: 0.875rem;
    border-radius: 8px;
    text-align: center;
}

.inv-stat-warning {
    background: rgba(245, 158, 11, 0.1);
}

.inv-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    font-family: var(--font-heading);
    line-height: 1;
}

.inv-stat-warning .inv-stat-value {
    color: #F59E0B;
}

.inv-stat-label {
    color: #64748B;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.inv-total-value {
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #64748B;
}

.inv-total-value strong {
    color: #0F172A;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.activity-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F1F5F9;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.type-order { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.activity-icon.type-shipment { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.activity-icon.type-delivery { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.activity-icon.type-inventory { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.activity-icon.type-payment { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.activity-icon.type-auth { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.activity-icon.type-profile { background: rgba(190, 18, 60, 0.1); color: #BE123C; }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.activity-desc {
    color: #64748B;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.activity-time {
    color: #94A3B8;
    font-size: 0.7rem;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #64748B;
    font-size: 0.875rem;
}

/* ============ HELP BUTTON ============ */
.help-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #0F172A;
    color: white;
    padding: 1rem 0.75rem;
    border-radius: 12px 0 0 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 40;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
}

.help-button:hover {
    background: #BE123C;
    color: white;
    padding-right: 1rem;
}

.help-button span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* ============ ORDERS VIEW ============ */
.status-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.status-tab {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #64748B;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-tab:hover {
    border-color: #BE123C;
    color: #BE123C;
}

.status-tab.active {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-tab:not(.active) .tab-count {
    background: #F1F5F9;
    color: #64748B;
}

.orders-toolbar,
.inventory-toolbar {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    margin-bottom: 1.5rem;
}

.orders-search-form,
.inventory-search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}

.search-input-wrapper .form-control {
    padding-left: 36px;
    width: 100%;
}

.orders-toolbar .form-control,
.inventory-toolbar .form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Orders table */
.orders-table-wrapper,
.inventory-table-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    overflow-x: auto;
}

.orders-table,
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.orders-table th,
.inventory-table th {
    background: #F8FAFC;
    padding: 0.875rem 1rem;
    text-align: left;
    color: #64748B;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.orders-table td,
.inventory-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #F1F5F9;
    color: #1E293B;
    vertical-align: middle;
}

.orders-table tr:hover,
.inventory-table tr:hover {
    background: #F8FAFC;
}

.customer-cell,
.product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-avatar,
.product-image-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #BE123C, #9F1239);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.product-image-placeholder {
    background: #F1F5F9;
    color: #64748B;
    border-radius: 8px;
}

.customer-name,
.product-name {
    font-weight: 600;
    color: #0F172A;
}

.customer-location,
.product-meta {
    color: #64748B;
    font-size: 0.75rem;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #F1F5F9;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    text-transform: capitalize;
}

.channel-badge.channel-shopify { background: rgba(16, 142, 191, 0.1); color: #108EBF; }
.channel-badge.channel-amazon { background: rgba(255, 153, 0, 0.1); color: #FF9900; }
.channel-badge.channel-noon { background: rgba(243, 156, 18, 0.1); color: #F39C12; }
.channel-badge.channel-instagram { background: rgba(228, 64, 95, 0.1); color: #E4405F; }
.channel-badge.channel-whatsapp { background: rgba(37, 211, 102, 0.1); color: #25D366; }

.payment-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-cod { background: rgba(245, 158, 11, 0.15); color: #92400E; }
.payment-paid { background: rgba(16, 185, 129, 0.15); color: #065F46; }

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tracking-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #475569;
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
}

.text-muted { color: #94A3B8; }
.text-warning { color: #F59E0B; font-weight: 600; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748B;
}

.empty-state svg {
    color: #CBD5E1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #475569;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* Pagination */
.dashboard-pagination {
    margin-top: 1.5rem;
    text-align: center;
}

/* ============ INVENTORY VIEW ============ */
.inv-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inv-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.inv-stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inv-stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    font-family: var(--font-heading);
    line-height: 1;
}

.inv-stat-card-label {
    color: #64748B;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.sku-code {
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #475569;
    font-family: 'Courier New', monospace;
}

.category-badge {
    display: inline-block;
    background: #F1F5F9;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
}

/* ============ SHIPMENTS VIEW ============ */
.shipments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.shipment-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    transition: all 0.3s;
}

.shipment-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

.shipment-number {
    font-weight: 700;
    color: #0F172A;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.shipment-customer {
    color: #64748B;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.shipment-progress {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E2E8F0;
    border: 3px solid white;
    box-shadow: 0 0 0 1px #E2E8F0;
    transition: all 0.3s;
}

.progress-step.completed .step-dot {
    background: #10B981;
    box-shadow: 0 0 0 1px #10B981, 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.step-label {
    font-size: 0.7rem;
    color: #64748B;
    margin-top: 0.4rem;
    text-transform: uppercase;
    font-weight: 500;
}

.progress-step.completed .step-label {
    color: #10B981;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #E2E8F0;
    margin: 0 -12px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.progress-line.completed {
    background: #10B981;
}

.shipment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
}

.shipment-detail {
    font-size: 0.8rem;
}

.shipment-detail .detail-label {
    color: #64748B;
    display: block;
    margin-bottom: 0.15rem;
}

/* ============ ACTIVITIES VIEW ============ */
.activity-timeline {
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F1F5F9;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.timeline-icon.type-order { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.timeline-icon.type-shipment { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.timeline-icon.type-delivery { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.timeline-icon.type-inventory { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.timeline-icon.type-payment { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.timeline-icon.type-auth { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.timeline-icon.type-profile { background: rgba(190, 18, 60, 0.1); color: #BE123C; }

.timeline-line {
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: #E2E8F0;
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-title {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.timeline-desc {
    color: #64748B;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.timeline-time {
    color: #94A3B8;
    font-size: 0.75rem;
}

/* ============ PROFILE VIEW ============ */
.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #E2E8F0;
    text-align: center;
    height: fit-content;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #BE123C, #9F1239);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(190, 18, 60, 0.3);
}

.profile-name {
    font-size: 1.5rem;
    color: #0F172A;
    margin: 0 0 0.25rem;
    font-family: var(--font-heading);
}

.profile-email {
    color: #64748B;
    font-size: 0.875rem;
    margin: 0 0 0.25rem;
}

.profile-company {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.profile-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    padding: 0.4rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    padding: 1rem 0;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 1rem;
}

.profile-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    font-family: var(--font-heading);
}

.profile-stat .stat-label {
    color: #64748B;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.profile-meta {
    text-align: left;
    font-size: 0.8rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #F8FAFC;
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    color: #64748B;
}

.profile-form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #E2E8F0;
}

.profile-form-card h3 {
    margin: 0 0 1.5rem;
    color: #0F172A;
    font-family: var(--font-heading);
}

.profile-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-form-card .form-group {
    margin-bottom: 1rem;
}

.profile-form-card label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: #0F172A;
    margin-bottom: 0.4rem;
}

.profile-form-card .form-control {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.profile-form-card .form-control:focus {
    outline: none;
    border-color: #BE123C;
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
}

.profile-form-card .form-control:disabled {
    background: #F8FAFC;
    color: #94A3B8;
}

.profile-divider {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 2rem 0;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.875rem;
    padding: 0;
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.form-message.show {
    padding: 0.75rem 1rem;
    max-height: 200px;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============ SETTINGS VIEW ============ */
.settings-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
}

.settings-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.settings-card-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.settings-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #F1F5F9;
    background: #F8FAFC;
}

.settings-card-danger .settings-card-header {
    background: rgba(239, 68, 68, 0.05);
}

.settings-card-header h3 {
    margin: 0 0 0.25rem;
    color: #0F172A;
    font-family: var(--font-heading);
}

.settings-card-header p {
    margin: 0;
    color: #64748B;
    font-size: 0.8rem;
}

.settings-card-body {
    padding: 1.25rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info strong {
    display: block;
    color: #0F172A;
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.setting-info p {
    margin: 0;
    color: #64748B;
    font-size: 0.8rem;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #CBD5E1;
    border-radius: 12px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #BE123C;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.btn-danger {
    background: #EF4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #DC2626;
    color: white;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .stats-cards,
    .inv-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row,
    .dashboard-bottom-row {
        grid-template-columns: 1fr;
    }

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

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        transform: translateX(-100%);
    }

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

    .sidebar-close {
        display: flex;
    }

    .dashboard-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-toggle {
        display: flex;
    }

    .dashboard-page {
        padding: 1rem;
    }

    .dashboard-footer {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-footer-links {
        gap: 0.75rem;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-side-panel {
        display: none;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .stats-cards,
    .inv-stats-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-filter {
        width: 100%;
    }

    .date-filter-inputs {
        flex-wrap: wrap;
    }

    .user-info {
        display: none;
    }

    .help-button {
        display: none;
    }

    .profile-form-card .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============ INTEGRATIONS ============ */
.dashboard-integrations .page-header {
    align-items: center;
}

.integration-notice {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
}

.integration-notice--success {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.integration-notice--error {
    border-color: rgba(239, 68, 68, 0.32);
    background: rgba(239, 68, 68, 0.08);
    color: #B91C1C;
}

.integrations-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}

.integration-form-panel,
.integration-list-panel {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem;
}

.panel-header {
    margin-bottom: 1rem;
}

.panel-header h2 {
    margin: 0 0 0.25rem;
    color: #0F172A;
    font-size: 1.125rem;
    font-weight: 700;
}

.panel-header p {
    margin: 0;
    color: #64748B;
    font-size: 0.875rem;
}

.integration-form .form-row,
.integration-secret-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.integration-form .form-group {
    margin-bottom: 1rem;
}

.integration-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
}

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

.integration-form-actions,
.connection-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.integration-connection-list {
    display: grid;
    gap: 0.875rem;
}

.connection-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 1rem;
    background: #F8FAFC;
}

.connection-main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.connection-main h3 {
    margin: 0 0 0.2rem;
    color: #0F172A;
    font-size: 1rem;
}

.connection-main p,
.connection-message {
    margin: 0;
    color: #64748B;
    font-size: 0.825rem;
    line-height: 1.5;
}

.connection-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--integration-color);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.75rem;
    overflow: hidden;
}

.connection-logo.has-image {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 0.3rem;
}

.connection-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.connection-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.85rem 0;
}

.connection-meta span,
.connection-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    background: #E2E8F0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
}

.connection-status--active {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.connection-status--paused {
    background: rgba(245, 158, 11, 0.13);
    color: #B45309;
}

.btn-danger-outline {
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #DC2626 !important;
}

.integrations-empty-state {
    border: 1px dashed #CBD5E1;
    border-radius: 10px;
    padding: 2rem 1rem;
    text-align: center;
    color: #64748B;
}

.integrations-empty-state h3 {
    margin: 0 0 0.35rem;
    color: #0F172A;
    font-size: 1rem;
}
/* ============ INTEGRATIONS RESPONSIVE ============ */
@media (max-width: 1024px) {
    .integrations-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .integration-form .form-row,
    .integration-secret-grid {
        grid-template-columns: 1fr;
    }

    .integration-form-panel,
    .integration-list-panel {
        padding: 1rem;
    }

    .connection-main {
        align-items: flex-start;
    }
}
.connection-webhook {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.4rem;
}
.connection-webhook span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}
.connection-webhook input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #F8FAFC;
    color: #334155;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
}
