/* ========================================
   SYNCFUSION-BASED APPLICATION STYLING
   Complete replacement for app.css
   ======================================== */

/* ========== CSS VARIABLES ========== */
/* Dark Industrial Theme with Teal Accent - Unified Color System */
:root {
    /* Primary/Accent Color - Teal */
    --color-primary: #00bcd4;
    --color-primary-dark: #00acc1;
    --color-primary-light: #4dd0e1;
    --color-primary-rgb: 0, 188, 212;

    /* Status Colors - Material Design */
    --color-success: #4caf50;
    --color-success-rgb: 76, 175, 80;
    --color-danger: #f44336;
    --color-danger-rgb: 244, 67, 54;
    --color-warning: #ff9800;
    --color-warning-rgb: 255, 152, 0;
    --color-info: #2196f3;
    --color-info-rgb: 33, 150, 243;

    /* Background Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-card: #2a2a2a;
    --bg-card-subtle: rgba(255, 255, 255, 0.02);
    --bg-hover: rgba(0, 188, 212, 0.08);
    --bg-active: rgba(0, 188, 212, 0.15);

    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-disabled: rgba(255, 255, 255, 0.3);

    /* Border Colors */
    --border-color: rgba(0, 188, 212, 0.1);
    --border-color-hover: rgba(0, 188, 212, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.05);

    /* Layout */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);

    --sidebar-width: 250px;
    --header-height: 60px;
    --spacing: 1rem;
    --content-gutter-desktop: 1.25rem;
    --content-gutter-mobile: 0.9rem;
    --dialog-mobile-edge-gap: 0.35rem;
    --dialog-mobile-shell-width: calc(100vw - (var(--dialog-mobile-edge-gap) * 2));
    --dialog-mobile-shell-height: calc(100dvh - (var(--dialog-mobile-edge-gap) * 2));
    --dialog-mobile-header-padding: 0.55rem 0.7rem;
    --dialog-mobile-body-padding: 0.55rem 0.7rem;
    --section-spacing: 1.25rem;
    --form-field-spacing: 0.95rem;
    --form-label-gap: 0.45rem;
    --form-label-size: 0.78rem;
    --form-label-tracking: 0.04em;

    /* Legacy aliases for backwards compatibility */
    --lbsa-primary: var(--color-primary);
    --lbsa-primary-dark: var(--color-primary-dark);
    --lbsa-primary-light: var(--color-primary-light);
    --lbsa-success: var(--color-success);
    --lbsa-danger: var(--color-danger);
    --lbsa-warning: var(--color-warning);
    --lbsa-info: var(--color-info);
    --lbsa-bg-primary: var(--bg-primary);
    --lbsa-bg-secondary: var(--bg-secondary);
    --lbsa-bg-card: var(--bg-card);
    --lbsa-bg-hover: var(--bg-hover);
    --lbsa-text-primary: var(--text-primary);
    --lbsa-text-secondary: var(--text-secondary);
    --lbsa-text-muted: var(--text-muted);
    --lbsa-border-color: var(--border-color);
    --lbsa-border-radius: var(--border-radius);
    --lbsa-shadow: var(--shadow);
    --lbsa-sidebar-width: var(--sidebar-width);
    --lbsa-header-height: var(--header-height);
    --lbsa-spacing: var(--spacing);
}

/* ========== GLOBAL RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 
html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: var(--lbsa-text-primary);
}

body.theme-body {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    background-color: #000;
}

body.theme-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.62)),
        url("../images/site-background.webp") center center / cover no-repeat;
}

.app-container {
    min-height: 100vh;
}

/* ========== APPLICATION LAYOUT ========== */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* Main content area that adjusts when sidebar opens/closes */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    transition: margin-left 0.3s ease;
}

/* Header bar */
.app-header {
    height: var(--lbsa-header-height);
    background: var(--lbsa-bg-secondary);
    border-bottom: 1px solid var(--lbsa-border-color);
    display: flex;
    align-items: center;
    padding: 0 var(--lbsa-spacing);
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--lbsa-text-primary);
    margin: 0;
}

/* Content area */
.app-content {
    flex: 1;
    padding: var(--lbsa-spacing);
    overflow-y: auto;
    background: transparent;
}

/* ========== SYNCFUSION SIDEBAR CUSTOMIZATION ========== */
.e-sidebar {
    background: var(--lbsa-bg-secondary) !important;
    border-right: 1px solid var(--lbsa-border-color) !important;
}

.e-sidebar .e-close {
    color: var(--lbsa-text-primary) !important;
}

/* ========== NAVIGATION MENU STYLING ========== */
.nav-menu {
    background: var(--lbsa-bg-secondary);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--lbsa-border-color);
    text-align: center;
}

.nav-header h3 {
    font-size: 1.25rem;
    color: var(--lbsa-primary);
    margin: 0;
    font-weight: 600;
}

.nav-items {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--lbsa-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--lbsa-bg-hover);
    color: var(--lbsa-text-primary);
    border-left-color: var(--lbsa-primary);
}

.nav-item.active {
    background: var(--lbsa-bg-hover);
    color: var(--lbsa-primary);
    border-left-color: var(--lbsa-primary);
}

.nav-item i {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
}

.nav-footer {
    padding: 1rem;
    border-top: 1px solid var(--lbsa-border-color);
}

/* ========== CONTAINER SYSTEM ========== */
.lbsa-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--lbsa-spacing);
}

.lbsa-container-fluid {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 var(--content-gutter-desktop);
}

/* ========== GRID SYSTEM ========== */
.lbsa-row {
    display: flex;
    flex-wrap: wrap;
    margin: calc(var(--lbsa-spacing) * -0.5);
}

.lbsa-col {
    flex: 1;
    padding: calc(var(--lbsa-spacing) * 0.5);
    min-width: 0;
}

/* Column sizes */
.lbsa-col-12 { flex: 0 0 100%; max-width: 100%; }
.lbsa-col-11 { flex: 0 0 91.66667%; max-width: 91.66667%; }
.lbsa-col-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
.lbsa-col-9 { flex: 0 0 75%; max-width: 75%; }
.lbsa-col-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
.lbsa-col-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
.lbsa-col-6 { flex: 0 0 50%; max-width: 50%; }
.lbsa-col-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
.lbsa-col-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
.lbsa-col-3 { flex: 0 0 25%; max-width: 25%; }
.lbsa-col-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
.lbsa-col-1 { flex: 0 0 8.33333%; max-width: 8.33333%; }

/* ========== PAGE HEADERS ========== */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.page-header h1 i {
    color: var(--color-primary);
    margin-right: 0.75rem;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== SYNCFUSION CARD CUSTOMIZATION ========== */
.e-card {
    background: var(--lbsa-bg-card) !important;
    border: 1px solid var(--lbsa-border-color) !important;
    border-radius: var(--lbsa-border-radius) !important;
    box-shadow: var(--lbsa-shadow) !important;
    margin-bottom: var(--lbsa-spacing);
}

.e-card .e-card-header {
    background: var(--lbsa-bg-secondary) !important;
    border-bottom: 1px solid var(--lbsa-border-color) !important;
    padding: 1rem !important;
}

.e-card .e-card-header .e-card-header-title {
    color: var(--lbsa-text-primary) !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
}

.e-card .e-card-content {
    padding: 1.25rem !important;
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--lbsa-spacing);
    margin-bottom: 2rem;
}

/* Stat cards now use LbsaCard component with custom content */

.stat-content {
    display: flex;
    align-items: center; 
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ========== LOGIN PAGE STYLING ========== */
.login-container {
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
}

.login-container .e-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.logo-centered {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 100%;
    max-width: 200px;
    max-height: 25vh;
    height: auto;
    object-fit: contain;
}

.login-header h2 {
    margin: 0 0 8px 0;
    color: #00bcd4 !important;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-align: center;
}

.login-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-button {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile responsive for login */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .login-container .e-card {
        max-width: 100%;
        padding: 20px;
    }

    .logo {
        max-width: 150px;
        max-height: 20vh;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }
}

/* ========== SYNCFUSION TOAST STYLING ========== */
.e-toast-container {
    z-index: 100000 !important;
}

.e-toast {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.e-toast .e-toast-title {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.e-toast .e-toast-content {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* ========== LBSA SIDEBAR COMPATIBILITY ========== */
.lbsa-sidebar-host {
    position: fixed;
    inset: 0;
    z-index: 1300;
    pointer-events: none;
    visibility: hidden;
}

.lbsa-sidebar-host.open {
    visibility: visible;
}

.lbsa-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.lbsa-sidebar-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(var(--lbsa-sidebar-panel-width, 320px), calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    height: 100dvh;
    overflow: hidden;
    pointer-events: auto;
    background: var(--lbsa-bg-primary, #1c1c1f);
    color: var(--lbsa-text-primary, #f5f5f5);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    transition: transform 0.24s ease;
    will-change: transform;
}

.lbsa-sidebar-panel.left {
    left: 0;
}

.lbsa-sidebar-panel.right {
    right: 0;
}

.lbsa-sidebar-panel.left.closed {
    transform: translateX(-100%);
}

.lbsa-sidebar-panel.right.closed {
    transform: translateX(100%);
}

.lbsa-sidebar-panel.left.open,
.lbsa-sidebar-panel.right.open,
.lbsa-sidebar-panel.open {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .lbsa-sidebar-panel {
        transition: none;
    }
}

/* Success Toast */
.e-toast.e-toast-success {
    background: linear-gradient(135deg, #4caf50, #45a049) !important;
    color: white !important;
    border-left: 4px solid #2e7d32 !important;
}

.e-toast.e-toast-success .e-toast-close {
    color: white !important;
}

/* Error/Danger Toast */
.e-toast.e-toast-danger {
    background: linear-gradient(135deg, #f44336, #e53935) !important;
    color: white !important;
    border-left: 4px solid #c62828 !important;
}

.e-toast.e-toast-danger .e-toast-close {
    color: white !important;
}

/* Warning Toast */
.e-toast.e-toast-warning {
    background: linear-gradient(135deg, #ff9800, #fb8c00) !important;
    color: white !important;
    border-left: 4px solid #ef6c00 !important;
}

.e-toast.e-toast-warning .e-toast-close {
    color: white !important;
}

/* Info Toast */
.e-toast.e-toast-info {
    background: linear-gradient(135deg, #2196f3, #1e88e5) !important;
    color: white !important;
    border-left: 4px solid #1565c0 !important;
}

.e-toast.e-toast-info .e-toast-close {
    color: white !important;
}

/* Toast Icons */
.e-toast .e-toast-icon {
    font-size: 1.2rem !important;
    margin-right: 10px !important;
}

.e-toast .e-toast-icon.toast-success::before {
    content: "✓";
    font-weight: bold;
}

.e-toast .e-toast-icon.toast-error::before {
    content: "✕";
    font-weight: bold;
}

.e-toast .e-toast-icon.toast-warning::before {
    content: "⚠";
    font-weight: bold;
}

.e-toast .e-toast-icon.toast-info::before {
    content: "ℹ";
    font-weight: bold;
}

/* Progress Bar */
.e-toast .e-toast-progress {
    background: rgba(255, 255, 255, 0.3) !important;
    height: 3px !important;
}

/* Close Button - Fix icon display */
.e-toast .e-toast-close-icon {
    opacity: 0.8 !important;
    transition: opacity 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
}

.e-toast .e-toast-close-icon::before {
    content: "\00d7" !important; /* Unicode multiplication sign × */
    font-family: 'Segoe UI', Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: -2px !important;
}

.e-toast .e-toast-close-icon:hover {
    opacity: 1 !important;
}

/* ========== MODERN MODAL STYLING ========== */
/* Modal Dialog Enhancements */
.modern-modal .e-dialog {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #1e1e1e !important;
}

/* Modern Modal Header */
.modern-modal-header {
    background: linear-gradient(135deg, #2a2d3a 0%, #1e1e2e 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.modern-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0078d4, #40a9ff, #0078d4);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.modern-modal-header h5 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-modal-header h5 i {
    font-size: 1.5rem;
    color: #40a9ff;
}

/* Modern Modal Content */
.modern-modal-content {
    padding: 2rem;
    background: #1e1e1e;
}

/* Info Card */
.modern-info-card {
    background: linear-gradient(135deg, rgba(64, 169, 255, 0.1) 0%, rgba(0, 120, 212, 0.05) 100%);
    border: 1px solid rgba(64, 169, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.modern-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #40a9ff, #0078d4);
}

.modern-info-card h6 {
    color: #40a9ff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-info-card .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modern-info-card .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modern-info-card .info-label {
    color: #808080;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-info-card .info-value {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Form Section */
.modern-form-section {
    margin-bottom: 1.5rem;
}

.modern-form-label {
    color: #b3b3b3;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-form-label i {
    color: #40a9ff;
    font-size: 1rem;
}

/* Enhanced Dropdown */
.modern-dropdown-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.modern-dropdown-wrapper .e-dropdownlist {
    background: #2a2d3a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.modern-dropdown-wrapper .e-dropdownlist:hover {
    border-color: rgba(64, 169, 255, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.1) !important;
}

.modern-dropdown-wrapper .e-dropdownlist.e-input-focus {
    border-color: #40a9ff !important;
    box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.2) !important;
}

.lbsa-native-select-wrap {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-width: 0;
    align-items: center;
}

.lbsa-native-select-input {
    width: 100%;
    min-height: 40px;
    padding: 0 2.35rem 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.2;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.lbsa-native-select-input:hover:not(:disabled) {
    border-color: rgba(0, 188, 212, 0.55);
    background: #202728;
}

.lbsa-native-select-input:focus {
    border-color: rgba(0, 188, 212, 0.9);
    box-shadow: 0 0 0 1px rgba(0, 188, 212, 0.45);
}

.lbsa-native-select-input:disabled {
    color: rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
}

.lbsa-native-select-input option {
    background: #202020;
    color: rgba(255, 255, 255, 0.92);
}

.lbsa-native-select-arrow {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    display: inline-flex;
    transform: translateY(-50%);
    pointer-events: none;
    color: #5ee8f3;
    font-size: 0.76rem;
}

.lbsa-native-select-input:disabled + .lbsa-native-select-arrow {
    color: rgba(255, 255, 255, 0.28);
}

/* Enhanced TextBox */
.modern-textarea .e-textbox,
.modern-textarea .e-float-input textarea {
    background: #2a2d3a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 0.75rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
    min-height: 100px;
    resize: vertical;
}

.modern-textarea .e-textbox:hover,
.modern-textarea .e-float-input textarea:hover {
    border-color: rgba(64, 169, 255, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.1) !important;
}

.modern-textarea .e-textbox:focus,
.modern-textarea .e-float-input textarea:focus {
    border-color: #40a9ff !important;
    box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.2) !important;
    outline: none !important;
}

/* Action Buttons Footer */
.modern-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern Buttons */
.modern-btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #0078d4, #005a9e) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3) !important;
}

.modern-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #40a9ff, #0078d4) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 169, 255, 0.4) !important;
}

.modern-btn-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.modern-btn-secondary {
    background: transparent !important;
    color: #b3b3b3 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.modern-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.modern-btn-success {
    background: linear-gradient(135deg, #48c774, #36a85f) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(72, 199, 116, 0.3) !important;
}

.modern-btn-success:hover {
    background: linear-gradient(135deg, #5dd885, #48c774) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 216, 133, 0.4) !important;
}

/* Loading State */
.modern-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-loading .e-spinner-pane {
    margin: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Maintain consistent gutters on mobile for readability */
    .lbsa-container,
    .lbsa-container-fluid,
    .page-container,
    .content-container,
    .main-container {
        padding-left: var(--content-gutter-mobile) !important;
        padding-right: var(--content-gutter-mobile) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .app-content {
        padding: 0 !important;
    }

    /* Header adjustments */
    .app-header {
        padding: 0 0.75rem !important;
    }

    /* Keep compact but readable mobile grid spacing */
    .lbsa-col,
    [class*="lbsa-col-"],
    .lbsa-row > * {
        padding: 0.4rem !important;
    }

    .e-card {
        border-radius: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .filter-section {
        margin: 0 0 0.85rem 0 !important;
        border-radius: 10px !important;
        padding: 0.9rem !important;
    }

    /* Specific modal adjustments */
    .modern-info-card .info-grid {
        grid-template-columns: 1fr;
    }

    .e-card .e-card-content {
        padding: 14px !important;
    }

    .battery-metrics {
        gap: 0.5rem !important;
    }

    .e-dialog .e-dlg-content {
        padding: 0.85rem !important;
    }

    .lbsa-mobile-dialog.e-dialog {
        width: var(--dialog-mobile-shell-width) !important;
        max-width: var(--dialog-mobile-shell-width) !important;
        max-height: var(--dialog-mobile-shell-height) !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }

    .lbsa-mobile-dialog.e-dialog .e-dlg-header-content {
        padding: var(--dialog-mobile-header-padding) !important;
        min-height: auto !important;
    }

    .lbsa-mobile-dialog.e-dialog .e-dlg-header {
        font-size: 0.92rem !important;
        line-height: 1.2 !important;
    }

    .lbsa-mobile-dialog.e-dialog .e-dlg-content {
        padding: var(--dialog-mobile-body-padding) !important;
    }

    .lbsa-mobile-dialog.e-dialog .e-footer-content {
        padding: var(--dialog-mobile-body-padding) !important;
        gap: 0.5rem !important;
    }

    .lbsa-mobile-dialog.e-dialog .e-dlg-closeicon-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        margin: 0 !important;
    }

    .battery-card {
        margin-bottom: 0.5rem !important;
    }

    .e-dialog .e-footer-content {
        padding: 0.85rem !important;
    }

    .modern-modal-content {
        padding: 1.2rem;
    }

    .battery-grid {
        gap: 0.5rem !important;
    }

    .modern-dropdown-wrapper {
        flex-direction: column;
    }
    
    .modern-modal-footer {
        flex-direction: column-reverse;
    }
    
    .modern-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for modal entrance */
.modern-modal .e-dialog {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close button enhancement */
.modern-modal .e-dlg-closeicon-btn {
    color: #808080 !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modern-modal .e-dlg-closeicon-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: rotate(90deg);
}

/* ========================================
   STANDARDIZED UI COMPONENTS
   Dark Industrial Theme - Teal Accent
   ======================================== */

/* ========== PAGE CONTAINERS ========== */
.page-container {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-container-full {
    padding: 1rem;
    width: 100%;
}

.page-container-narrow {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== PAGE HEADERS ========== */
.page-header {
    margin-bottom: 1.65rem;
    padding: 0.25rem 0.15rem 0.85rem;
    border-bottom: 1px solid rgba(0, 188, 212, 0.14);
}

.page-header h1 {
    color: #00bcd4;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.page-header h1 i {
    margin-right: 0;
    width: 1.2em;
    text-align: center;
    flex-shrink: 0;
}

.page-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.45;
    max-width: 70ch;
}

/* Header with card background (gradient style) */
.page-header-card {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.page-header-card h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.page-header-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0 0 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ========== SECTION TITLES ========== */
.section-title {
    color: #00bcd4;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.section-title i {
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}

.section-title-sm {
    color: #00bcd4;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== INFO CARDS ========== */
.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(0, 188, 212, 0.3);
    background: rgba(0, 188, 212, 0.05);
}

.info-card-lg {
    padding: 2rem;
}

.info-card-sm {
    padding: 1rem;
}

/* ========== INFO GRIDS ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* ========== INFO ITEMS ========== */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.info-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
}

.info-value-lg {
    font-size: 1.25rem;
    font-weight: 500;
}

.info-value-highlight {
    color: #00bcd4;
    font-weight: 500;
}

/* ========== FORM ELEMENTS ========== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--form-label-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--form-label-tracking);
    margin-bottom: var(--form-label-gap);
    display: block;
    line-height: 1.2;
}

.form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--form-label-gap);
    display: block;
    line-height: 1.2;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.field-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.validation-error {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ========== BUTTONS - STANDARDIZED ========== */
.btn-teal {
    background: transparent;
    color: #00bcd4;
    border: 1px solid #00bcd4;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: #00bcd4;
}

.btn-teal-solid {
    background: #00bcd4;
    color: #000;
    border: 1px solid #00bcd4;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-teal-solid:hover {
    background: #00acc1;
    border-color: #00acc1;
}

.btn-danger {
    background: transparent;
    color: #f44336;
    border: 1px solid #f44336;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
}

.btn-danger-solid {
    background: #f44336;
    color: white;
    border: 1px solid #f44336;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger-solid:hover {
    background: #e53935;
    border-color: #e53935;
}

.btn-success {
    background: transparent;
    color: #4caf50;
    border: 1px solid #4caf50;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: rgba(76, 175, 80, 0.1);
}

.btn-success-solid {
    background: #4caf50;
    color: white;
    border: 1px solid #4caf50;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success-solid:hover {
    background: #43a047;
    border-color: #43a047;
}

.btn-warning {
    background: transparent;
    color: #ff9800;
    border: 1px solid #ff9800;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: rgba(255, 152, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active, .status-online, .status-success {
    color: #4caf50;
}

.status-inactive, .status-offline, .status-error {
    color: #f44336;
}

.status-warning, .status-pending {
    color: #ff9800;
}

.status-info {
    color: #00bcd4;
}

.status-owner {
    color: #ffc107;
}

/* ========== LOADING STATES ========== */
.lbsa-flex {
    display: flex !important;
}

.lbsa-align-center {
    align-items: center !important;
}

.lbsa-justify-center {
    justify-content: center !important;
}

.lbsa-justify-between {
    justify-content: space-between !important;
}

.lbsa-justify-end {
    justify-content: flex-end !important;
}

.lbsa-gap-2 {
    gap: 0.5rem !important;
}

.lbsa-gap-3 {
    gap: 1rem !important;
}

.lbsa-text-center {
    text-align: center !important;
}

.lbsa-mt-3 {
    margin-top: 1rem !important;
}

.lbsa-p-3 {
    padding: 1rem !important;
}

.lbsa-p-4 {
    padding: 1.5rem !important;
}

.lbsa-me-2,
.lbsa-lbsa-me-2 {
    margin-right: 0.5rem !important;
}

.lbsa-lbsa-mb-3 {
    margin-bottom: 1rem !important;
}

.lbsa-lbsa-mb-4 {
    margin-bottom: 1.5rem !important;
}

.lbsa-lbsa-fw-bold {
    font-weight: 700 !important;
}

.lbsa-spinner {
    --lbsa-spinner-size: 36px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--lbsa-primary);
    text-align: center;
    line-height: 1.2;
    vertical-align: middle;
}

.lbsa-spinner-progress,
.lbsa-spinner .mud-progress-circular {
    width: var(--lbsa-spinner-size) !important;
    height: var(--lbsa-spinner-size) !important;
    min-width: var(--lbsa-spinner-size) !important;
}

.lbsa-spinner .mud-progress-circular svg {
    width: 100% !important;
    height: 100% !important;
}

.lbsa-spinner-label {
    display: block;
    max-width: min(34rem, 100%);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0;
}

.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 200px;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.loading-container > .spinner-border {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    border-width: 0.2rem;
    color: var(--lbsa-primary) !important;
}

.loading-container > :is(span, p) {
    max-width: min(34rem, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
}

.loading-container-sm {
    min-height: 100px;
    padding: 1.25rem 1rem;
}

.loading-container-lg {
    min-height: 400px;
}

.loading-card {
    min-height: 220px;
}

.loading-card > .lbsa-card-content,
.loading-card > .e-card-content {
    min-height: 220px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-card .lbsa-card-content > .text-center,
.loading-card .e-card-content > .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    padding: 2rem 1rem !important;
}

.auth-guard-loading {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.auth-guard-loading .spinner-small {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(0, 188, 212, 0.16);
    border-top-color: var(--lbsa-info);
    border-right-color: var(--lbsa-primary);
    border-radius: 50%;
    animation: lbsa-loader-spin 0.85s linear infinite;
}

.auth-guard-loading span {
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0;
}

@keyframes lbsa-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== MODAL STYLES ========== */
.modal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00bcd4;
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-header i {
    font-size: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-content-padded {
    padding: 1.5rem;
}

/* ========== STATS OVERVIEW ========== */
.stats-overview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 12px;
    color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 188, 212, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.stat-item:hover {
    background: rgba(0, 188, 212, 0.08);
    border-color: rgba(0, 188, 212, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    color: #00bcd4;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.7;
    margin-top: 0.2rem;
}

/* Stat color variants */
.stat-value.text-success, .stat-online { color: #4caf50; }
.stat-value.text-danger, .stat-offline { color: #f44336; }
.stat-value.text-warning { color: #ff9800; }
.stat-value.text-info { color: #00bcd4; }

/* ========== FILTER SECTIONS ========== */
.filter-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 12px;
    color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 1.15rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--form-label-gap);
}

.filter-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0;
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.responsive-dialog .lbsa-grid-container > [class^="lbsa-grid-"],
.responsive-dialog .lbsa-grid-container > [class*=" lbsa-grid-"] {
    margin-bottom: var(--form-field-spacing) !important;
}

.responsive-dialog .lbsa-grid-container > [class^="lbsa-grid-"]:last-child,
.responsive-dialog .lbsa-grid-container > [class*=" lbsa-grid-"]:last-child {
    margin-bottom: 0 !important;
}

.responsive-dialog .lbsa-form-label {
    display: block;
    margin: 0 0 var(--form-label-gap) 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--form-label-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--form-label-tracking);
    line-height: 1.2;
}

/* ========== CARD GRID LAYOUTS ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.card-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* ========== ITEM CARDS (Generic) ========== */
.item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.item-card:hover {
    border-color: rgba(0, 188, 212, 0.3);
    background: rgba(0, 188, 212, 0.03);
}

.item-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-card-body {
    padding: 1rem;
}

.item-card-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 3rem;
    color: rgba(0, 188, 212, 0.3);
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* ========== MESSAGE BOXES ========== */
.message-box {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-box i {
    font-size: 1.25rem;
}

.message-box-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.message-box-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.message-box-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
}

.message-box-info {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    color: #00bcd4;
}

/* ========== SECURITY SECTIONS ========== */
.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 188, 212, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 6px;
}

.security-icon {
    font-size: 2rem;
    color: #00bcd4;
    min-width: 60px;
    text-align: center;
}

.security-content {
    flex: 1;
}

.security-content h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.security-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* ========== AVATAR ========== */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 1.25rem;
    color: #00bcd4;
}

.avatar-sm {
    width: 36px;
    height: 36px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

.avatar-circle {
    border-radius: 50%;
}

/* ========== UTILITY CLASSES ========== */
.text-teal { color: #00bcd4 !important; }
.text-success { color: #4caf50 !important; }
.text-danger { color: #f44336 !important; }
.text-warning { color: #ff9800 !important; }
.text-muted { color: rgba(255, 255, 255, 0.5) !important; }
.text-light { color: rgba(255, 255, 255, 0.9) !important; }

.bg-teal-subtle { background: rgba(0, 188, 212, 0.05) !important; }
.bg-success-subtle { background: rgba(76, 175, 80, 0.1) !important; }
.bg-danger-subtle { background: rgba(244, 67, 54, 0.1) !important; }
.bg-warning-subtle { background: rgba(255, 152, 0, 0.1) !important; }

.border-teal { border-color: rgba(0, 188, 212, 0.3) !important; }
.border-success { border-color: rgba(76, 175, 80, 0.3) !important; }
.border-danger { border-color: rgba(244, 67, 54, 0.3) !important; }
.border-warning { border-color: rgba(255, 152, 0, 0.3) !important; }

/* ========== STATUS CHIPS ========== */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-chip i {
    font-size: 0.6rem;
}

.status-chip.online {
    background: rgba(var(--color-success-rgb), 0.2);
    color: var(--color-success);
}

.status-chip.off {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.status-chip.offline {
    background: rgba(var(--color-danger-rgb), 0.2);
    color: var(--color-danger);
}

.status-chip.starting, .status-chip.warning {
    background: rgba(var(--color-warning-rgb), 0.2);
    color: var(--color-warning);
}

.status-chip.total, .status-chip.info {
    background: rgba(var(--color-primary-rgb), 0.2);
    color: var(--color-primary);
}

/* ========== HEADER CARDS (Gradient Style) ========== */
.header-card-gradient {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.header-card-gradient h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.header-card-gradient p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    color: white;
}

/* ========== DARK THEME CARDS ========== */
.dark-card {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: white;
}

.dark-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-hover);
}

/* ========== SECTION DIVIDERS ========== */
.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* ========== ICON CONTAINERS ========== */
.icon-container {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.icon-container-success {
    background: rgba(var(--color-success-rgb), 0.1);
    border-color: rgba(var(--color-success-rgb), 0.2);
}

.icon-container-success i {
    color: var(--color-success);
}

.icon-container-danger {
    background: rgba(var(--color-danger-rgb), 0.1);
    border-color: rgba(var(--color-danger-rgb), 0.2);
}

.icon-container-danger i {
    color: var(--color-danger);
}

.icon-container-warning {
    background: rgba(var(--color-warning-rgb), 0.1);
    border-color: rgba(var(--color-warning-rgb), 0.2);
}

.icon-container-warning i {
    color: var(--color-warning);
}

/* ========== DETAIL GRIDS ========== */
.detail-grid {
    display: grid;
    gap: 1rem;
}

.detail-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.detail-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.detail-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.detail-item {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.detail-item-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-item-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

/* ========== SOC COLOR CLASSES ========== */
.soc-high { color: var(--color-success); }
.soc-medium { color: var(--color-warning); }
.soc-low { color: #ed8936; }
.soc-critical { color: var(--color-danger); }

/* ========== SEARCH INPUTS ========== */
.search-input {
    width: 250px;
}

@media (max-width: 768px) {
    .search-input {
        width: 100%;
    }
}

/* ========== RESPONSIVE OVERRIDES ========== */
@media (max-width: 768px) {
    .page-container,
    .page-container-full,
    .page-container-narrow {
        padding: var(--content-gutter-mobile);
    }

    .page-header h1 {
        font-size: 1.45rem;
        gap: 0.45rem;
    }

    .page-header {
        margin-bottom: 1.2rem;
        padding-bottom: 0.65rem;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.95rem;
    }

    .info-grid,
    .info-grid-3,
    .info-grid-4,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .card-grid,
    .card-grid-sm,
    .card-grid-lg {
        grid-template-columns: 1fr;
    }

    .modal-actions,
    .form-actions {
        flex-direction: column;
    }

    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
    }

    .detail-grid-2,
    .detail-grid-3,
    .detail-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

.lbsa-progress-bar {
    position: relative;
    width: 100%;
    min-height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.lbsa-progress-bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 180ms ease, background-color 180ms ease;
}

.lbsa-progress-bar-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1114;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

