/* Modern Design System for CoachLiNKai - CoachCLOUD Dark Theme */
/* Based on CoachCLOUD design standards with dark theme and orange accents */

/* ===== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
    /* CoachCLOUD Dark Theme Colors (Default) */
    --text-color: #FFFFFF;
    --text-secondary: #888888;
    --text-muted: #666666;
    --background-color: #0d0d0d;
    --background-secondary: #121212;
    --tint-color: #f97316;
    --icon-color: #888888;
    --tab-icon-default: #888888;
    --tab-icon-selected: #f97316;
    --form-background: #1a1a1a;
    --input-text: #FFFFFF;
    --input-background: #1a1a1a;
    --input-border: #2a2a2a;
    --input-disabled-background: #2a2a2a;
    --card-background: #1a1a1a;
    --card-border: #2a2a2a;
    --card-text: #FFFFFF;
    --card-selected-background: rgba(249, 115, 22, 0.2);
    --card-selected-text: #FFFFFF;
    --modal-background: #1a1a1a;
    --modal-overlay: rgba(0, 0, 0, 0.7);

    /* Sidebar */
    --sidebar-bg: #121212;
    --sidebar-border: #2a2a2a;
    --sidebar-item-hover: #1a1a1a;
    --sidebar-item-active-bg: rgba(249, 115, 22, 0.15);
    --sidebar-item-active-border: #f97316;

    /* Header */
    --header-bg: #0d0d0d;
    --header-border: #2a2a2a;
    --search-bg: #1a1a1a;
    --search-border: #2a2a2a;

    /* Button Colors */
    --button-primary-bg: #f97316;
    --button-primary-border: #f97316;
    --button-primary-text: #FFFFFF;
    --button-secondary-bg: #1a1a1a;
    --button-secondary-border: #2a2a2a;
    --button-secondary-text: #FFFFFF;
    --button-danger-bg: #ef4444;
    --button-danger-border: #ef4444;
    --button-danger-text: #FFFFFF;
    --button-success-bg: #22c55e;
    --button-success-border: #22c55e;
    --button-success-text: #FFFFFF;
    --button-warning-bg: #f59e0b;
    --button-warning-border: #f59e0b;
    --button-warning-text: #FFFFFF;
    --button-info-bg: #3b82f6;
    --button-info-border: #3b82f6;
    --button-info-text: #FFFFFF;
    --button-link-bg: transparent;
    --button-link-border: transparent;
    --button-link-text: #f97316;
    --button-disabled-bg: #2a2a2a;
    --button-disabled-border: #333333;
    --button-disabled-text: #666666;

    /* Table Colors */
    --table-border: #2a2a2a;
    --table-head-bg: #1a1a1a;
    --table-row-odd: #1a1a1a;
    --table-row-even: #151515;
    --table-cell-bg: transparent;
    --table-head-text: #888888;
    --table-row-text: #FFFFFF;
    --table-row-hover: #222222;
    --table-row-selected: rgba(249, 115, 22, 0.2);

    /* Checkbox Colors */
    --checkbox-bg: #1a1a1a;
    --checkbox-border: #2a2a2a;
    --checkbox-check: #f97316;
    --checkbox-disabled-bg: #2a2a2a;
    --checkbox-disabled-border: #333333;
    --checkbox-disabled-check: #666666;

    /* Status Colors */
    --status-online: #22c55e;
    --status-offline: #ef4444;
    --status-warning: #f59e0b;
    --status-info: #3b82f6;
    --status-active: #22c55e;
    --status-away: #f59e0b;

    /* Badge Colors */
    --badge-active-bg: #22c55e;
    --badge-active-text: #FFFFFF;
    --badge-inactive-bg: #666666;
    --badge-inactive-text: #FFFFFF;
    --badge-pending-bg: #f59e0b;
    --badge-pending-text: #FFFFFF;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    --space-4xl: 40px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Light Theme Override */
[data-theme="light"] {
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --background-color: #f5f5f5;
    --background-secondary: #ffffff;
    --icon-color: #666666;
    --tab-icon-default: #666666;
    --form-background: #FFFFFF;
    --input-text: #1a1a1a;
    --input-background: #FFFFFF;
    --input-border: #e0e0e0;
    --card-background: #FFFFFF;
    --card-border: #e0e0e0;
    --card-text: #1a1a1a;
    --sidebar-bg: #FFFFFF;
    --sidebar-border: #e0e0e0;
    --sidebar-item-hover: #f5f5f5;
    --header-bg: #FFFFFF;
    --header-border: #e0e0e0;
    --search-bg: #f5f5f5;
    --search-border: #e0e0e0;
    --button-secondary-bg: #FFFFFF;
    --button-secondary-border: #e0e0e0;
    --button-secondary-text: #1a1a1a;
    --table-head-bg: #f5f5f5;
    --table-row-odd: #FFFFFF;
    --table-row-even: #fafafa;
    --table-head-text: #666666;
    --table-row-text: #1a1a1a;
    --table-row-hover: #f5f5f5;
    --checkbox-bg: #FFFFFF;
    --checkbox-border: #e0e0e0;
    --modal-background: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ===== RESET AND BASE STYLES ===== */
#root, body, html {
    min-height: 100%;
}

body {
    margin: 0;
    overflow: auto;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

#root {
    display: flex;
}

/* ===== BASE COMPONENT CLASSES ===== */
.css-view-175oi2r {
    align-items: stretch;
    background-color: transparent;
    border: 0 solid var(--text-color);
    box-sizing: border-box;
    display: flex;
    flex-basis: auto;
    flex-direction: column;
    flex-shrink: 0;
    list-style: none;
    margin: 0px;
    min-height: 0px;
    min-width: 0px;
    padding: 0px;
    position: relative;
    text-decoration: none;
    z-index: 0;
}

.css-text-146c3p1 {
    background-color: transparent;
    border: 0 solid var(--text-color);
    box-sizing: border-box;
    color: var(--text-color);
    display: inline;
    font: var(--font-size-sm) var(--font-family);
    list-style: none;
    margin: 0px;
    padding: 0px;
    position: relative;
    text-align: start;
    text-decoration: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

/* ===== LAYOUT CLASSES ===== */
.r-flex-13awgt0 { flex: 1; }
.r-flexDirection-18u37iz { flex-direction: row; }
.r-flexDirection-eqz5dr { flex-direction: column; }
.r-alignItems-1awozwy { align-items: center; }
.r-alignItems-stretch { align-items: stretch; }
.r-justifyContent-1777fci { justify-content: center; }
.r-justifyContent-1wtj0ep { justify-content: space-between; }
.r-justifyContent-start { justify-content: flex-start; }
.r-justifyContent-end { justify-content: flex-end; }

/* ===== SPACING CLASSES ===== */
.r-padding-1sp51qo { padding: var(--space-md); }
.r-padding-nsbfu8 { padding: var(--space-lg); }
.r-padding-1pcd2l5 { padding: var(--space-xl); }
.r-padding-d23pfw { padding: var(--space-2xl); }
.r-margin-crgep1 { margin: 0px; }
.r-margin-jgcjvd { margin: var(--space-md); }
.r-margin-1dhrvg0 { margin: var(--space-xl); }
.r-marginBottom-d0pm55 { margin-bottom: var(--space-sm); }
.r-marginBottom-1x0uki6 { margin-bottom: var(--space-lg); }
.r-marginRight-1kb76zh { margin-right: var(--space-sm); }

/* ===== BACKGROUND COLORS ===== */
.r-backgroundColor-14lw9ot { background-color: var(--card-background); }
.r-backgroundColor-kemksi { background-color: var(--table-head-bg); }
.r-backgroundColor-1niwhzg { background-color: transparent; }
.r-backgroundColor-gbtiil { background-color: var(--form-background); }
.r-backgroundColor-n2h5ot { background-color: var(--input-background); }

/* ===== BORDER CLASSES ===== */
.r-borderRadius-z2wwpe { border-radius: var(--radius-sm); }
.r-borderRadius-1xfd6ze { border-radius: var(--radius-md); }
.r-borderRadius-1q9bdsx { border-radius: var(--radius-lg); }
.r-borderWidth-rs99b7 { border-width: 1px; }
.r-borderStyle-1phboty { border-style: solid; }

/* ===== TYPOGRAPHY CLASSES ===== */
.r-fontSize-1b43r93 { font-size: var(--font-size-sm); }
.r-fontSize-ubezar { font-size: var(--font-size-md); }
.r-fontSize-1i10wst { font-size: var(--font-size-lg); }
.r-fontSize-adyw6z { font-size: var(--font-size-xl); }
.r-fontSize-1x35g6 { font-size: var(--font-size-2xl); }
.r-fontWeight-1kfrs79 { font-weight: var(--font-weight-semibold); }
.r-fontWeight-majxgm { font-weight: var(--font-weight-medium); }
.r-fontWeight-vw2c0b { font-weight: var(--font-weight-bold); }
.r-fontFamily-1m72y5m { font-family: var(--font-family); }
.r-lineHeight-135wba7 { line-height: 1.5; }

/* ===== COLOR CLASSES ===== */
.r-color-cqee49 { color: var(--text-color); }
.r-color-djgu52 { color: var(--icon-color); }

/* ===== INTERACTION CLASSES ===== */
.r-transitionProperty-1i6wzkk { transition-property: all; }
.r-userSelect-lrvibr { user-select: none; }
.r-cursor-1loqt21 { cursor: pointer; }
.r-touchAction-1otgn73 { touch-action: manipulation; }
/* ===== MODERN COMPONENT STYLES ===== */

/* Modern Card Component */
.modern-card {
    background-color: var(--card-background);
    border: 1px solid var(--button-secondary-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: var(--space-lg);
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Modern Button Components */
.modern-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    min-height: 40px;
    min-width: auto;
    user-select: none;
    touch-action: manipulation;
    box-sizing: border-box;
    line-height: 1.2;
}

/* Ensure anchor tags match button sizing */
a.modern-button {
    height: auto;
}

.modern-button.primary {
    background-color: var(--button-primary-bg);
    border-color: var(--button-primary-border);
    color: var(--button-primary-text);
}

.modern-button.primary:hover {
    background-color: color-mix(in srgb, var(--button-primary-bg) 90%, black);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modern-button.secondary {
    background-color: var(--button-secondary-bg);
    border-color: var(--button-secondary-border);
    color: var(--button-secondary-text);
}

.modern-button.secondary:hover {
    background-color: var(--button-secondary-border);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.modern-button.danger {
    background-color: var(--button-danger-bg);
    border-color: var(--button-danger-border);
    color: var(--button-danger-text);
}

.modern-button.success {
    background-color: var(--button-success-bg);
    border-color: var(--button-success-border);
    color: var(--button-success-text);
}

.modern-button.warning {
    background-color: var(--button-warning-bg);
    border-color: var(--button-warning-border);
    color: var(--button-warning-text);
}

.modern-button.info {
    background-color: var(--button-info-bg);
    border-color: var(--button-info-border);
    color: var(--button-info-text);
}

.modern-button:disabled {
    background-color: var(--button-disabled-bg);
    border-color: var(--button-disabled-border);
    color: var(--button-disabled-text);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modern Input Components */
.modern-input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--button-secondary-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    font-family: var(--font-family);
    background-color: var(--input-background);
    color: var(--input-text);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: var(--tint-color);
    box-shadow: 0 0 0 3px rgba(241, 135, 69, 0.1);
}

.modern-input:disabled {
    background-color: var(--input-disabled-background);
    cursor: not-allowed;
}

/* Modern Checkbox */
.modern-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--checkbox-border);
    border-radius: var(--radius-sm);
    background-color: var(--checkbox-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.modern-checkbox:checked {
    background-color: var(--checkbox-check);
    border-color: var(--checkbox-check);
}

.modern-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.modern-checkbox:disabled {
    background-color: var(--checkbox-disabled-bg);
    border-color: var(--checkbox-disabled-border);
    cursor: not-allowed;
}

/* ===== ENHANCED TAB SYSTEM ===== */
.tab-container {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tab-navigation {
    display: flex;
    background-color: var(--form-background);
    border-bottom: 1px solid var(--button-secondary-border);
}

.tab-button {
    flex: 1;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--icon-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-button:hover {
    color: var(--tint-color);
    background-color: rgba(241, 135, 69, 0.05);
}

.tab-button.active {
    color: var(--tint-color);
    border-bottom-color: var(--tint-color);
    font-weight: var(--font-weight-semibold);
    background-color: rgba(241, 135, 69, 0.1);
}

.sub-tab-navigation {
    display: flex;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--button-secondary-border);
    padding: 0 var(--space-lg);
}

.sub-tab-button {
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--icon-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-right: var(--space-md);
}

.sub-tab-button:hover {
    color: var(--tint-color);
}

.sub-tab-button.active {
    color: var(--tint-color);
    border-bottom-color: var(--tint-color);
    font-weight: var(--font-weight-semibold);
}

.tab-content {
    padding: var(--space-2xl);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* ===== CARD-BASED DATA DISPLAY ===== */
.data-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.data-card {
    background-color: var(--card-background);
    border: 1px solid var(--button-secondary-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80px;
}

.data-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--tint-color);
}

.data-card.selected {
    background-color: var(--card-selected-background);
    border-color: var(--tint-color);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: var(--space-lg);
    min-width: 200px;
    flex-shrink: 0;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0;
}

.card-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background-color: var(--status-online);
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
}

.status-indicator.offline {
    background-color: var(--status-offline);
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.2);
}

.status-indicator.warning {
    background-color: var(--status-warning);
    box-shadow: 0 0 0 4px rgba(251, 140, 0, 0.2);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.card-body {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    flex: 1;
    align-items: center;
}

.info-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 120px;
    gap: var(--space-xs);
}

.info-label {
    font-size: var(--font-size-sm);
    color: var(--icon-color);
    font-weight: var(--font-weight-medium);
}

.info-value {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    font-weight: var(--font-weight-semibold);
    text-align: left;
}

.info-value.success {
    color: var(--status-online);
}

.info-value.warning {
    color: var(--status-warning);
}

.info-value.error {
    color: var(--status-offline);
}

/* ===== SUMMARY STATISTICS ===== */
.stats-container {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background-color: var(--form-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--button-secondary-border);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--icon-color);
    font-weight: var(--font-weight-medium);
}

.stat-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
}

.stat-value.success {
    color: var(--status-online);
}

.stat-value.warning {
    color: var(--status-warning);
}

.stat-value.error {
    color: var(--status-offline);
}

/* ===== EMPTY STATES ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl);
    text-align: center;
    color: var(--icon-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--space-md);
}

.empty-state-description {
    font-size: var(--font-size-md);
    color: var(--icon-color);
    max-width: 400px;
    line-height: 1.5;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--card-background);
    border: 1px solid var(--button-secondary-border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-lg);
}

.theme-toggle:hover {
    background-color: var(--button-secondary-border);
    transform: scale(1.05);
}

/* ===== LOADING STATES ===== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--button-secondary-border);
    border-top: 4px solid var(--tint-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-lg);
}

.loading-state h3 {
    color: var(--text-color);
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.loading-state p {
    color: var(--icon-color);
    margin: 0;
    font-size: var(--font-size-sm);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .data-card {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }
    
    .card-header {
        margin-right: 0;
        margin-bottom: var(--space-md);
        min-width: auto;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .card-body {
        width: 100%;
        gap: var(--space-md);
    }
    
    .info-row {
        min-width: 100px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .tab-button.active {
        border-bottom: none;
        border-right-color: var(--tint-color);
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .info-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .modern-card {
        padding: var(--space-lg);
    }
    
    .tab-content {
        padding: var(--space-lg);
    }
    
    .data-card {
        padding: var(--space-lg);
    }
    
    .empty-state {
        padding: var(--space-2xl);
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
}
.r-color-jwli3a { color: rgba(255,255,255,1.00); }
.r-color-djgu52 { color: rgba(102,102,102,1.00); }
.r-color-1srvcxg { color: rgba(170,170,170,1.00); }

/* Modern Card Component */
.modern-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    color: var(--text-color);
}

.modern-card:hover {
    border-color: var(--tint-color);
    box-shadow: var(--shadow-md);
}

/* Button Components */
.modern-button {
    background: var(--button-primary-bg);
    border: 1px solid var(--button-primary-border);
    border-radius: var(--radius-md);
    color: var(--button-primary-text);
    padding: var(--space-sm) var(--space-lg);
    box-sizing: border-box;
    line-height: 1.2;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: var(--space-sm);
}

.modern-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modern-button.secondary {
    background: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border: 1px solid var(--button-secondary-border);
}

.modern-button.secondary:hover {
    background: var(--sidebar-item-hover);
    border-color: var(--tint-color);
}

.modern-button.success {
    background: var(--button-success-bg);
    border-color: var(--button-success-border);
    color: var(--button-success-text);
}

.modern-button.danger {
    background: var(--button-danger-bg);
    border-color: var(--button-danger-border);
    color: var(--button-danger-text);
}

.modern-button.warning {
    background: var(--button-warning-bg);
    border-color: var(--button-warning-border);
    color: var(--button-warning-text);
}

.modern-button:disabled {
    background: var(--button-disabled-bg);
    border-color: var(--button-disabled-border);
    color: var(--button-disabled-text);
    cursor: not-allowed;
    transform: none;
}

/* Form Components */
.modern-input {
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: var(--font-size-md);
    background: var(--input-background);
    color: var(--input-text);
    transition: all var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-family);
}

.modern-input::placeholder {
    color: var(--text-muted);
}

.modern-input:focus {
    outline: none;
    border-color: var(--tint-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

/* Navigation */
.modern-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.modern-nav-item {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.modern-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--tint-color);
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .modern-card {
        background: rgba(41,45,62,1.00);
        border-color: rgba(86,94,103,1.00);
        color: rgba(255,255,255,1.00);
    }
    
    .modern-nav-item {
        background: rgba(41,45,62,1.00);
        border-color: rgba(86,94,103,1.00);
        color: rgba(255,255,255,1.00);
    }
    
    .modern-input {
        background: rgba(41,45,62,1.00);
        border-color: rgba(86,94,103,1.00);
        color: rgba(255,255,255,1.00);
    }
}

/* Additional Utility Classes */
.r-marginBottom-1x0uki6 { margin-bottom: 20px; }
.r-marginBottom-d0pm55 { margin-bottom: 5px; }
.r-fontSize-adyw6z { font-size: 20px; }
.r-fontWeight-1kfrs79 { font-weight: 600; }
.r-fontWeight-majxgm { font-weight: 500; }
.r-justifyContent-1wtj0ep { justify-content: space-between; }

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-active { background: rgba(0,128,0,1.00); }
.status-warning { background: rgba(255,165,0,1.00); }
.status-error { background: rgba(255,0,0,1.00); }

/* Modern Checkbox */
.modern-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(204,204,204,1.00);
    border-radius: 4px;
    background: rgba(255,255,255,1.00);
}

.modern-checkbox:checked {
    background: rgba(33,150,243,1.00);
    border-color: rgba(33,150,243,1.00);
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Feature Tags */
.feature-tag {
    background: rgba(249, 115, 22, 0.15);
    color: var(--tint-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    margin-right: var(--space-sm);
    margin-bottom: var(--space-xs);
    display: inline-block;
    font-weight: var(--font-weight-medium);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--background-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
}

.stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--tint-color);
}

.stat-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--tint-color);
    transition: width var(--transition-normal);
    border-radius: var(--radius-sm);
}

.progress-fill.success {
    background: var(--status-online);
}

.progress-fill.warning {
    background: var(--status-warning);
}

.progress-fill.danger {
    background: var(--status-offline);
}

/* ===== SIDEBAR COMPONENT ===== */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: all var(--transition-normal);
}

.sidebar-collapsed {
    width: 72px;
    min-width: 72px;
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img {
    max-width: 100%;
    max-height: 100%;
}

.sidebar-brand {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.sidebar-brand span {
    font-weight: var(--font-weight-bold);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) 0;
}

.sidebar-section {
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-sm);
}

.sidebar-section-title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.sidebar-item:hover {
    background: var(--sidebar-item-hover);
    color: var(--text-color);
}

.sidebar-item.active {
    background: var(--sidebar-item-active-bg);
    color: var(--tint-color);
    border-left-color: var(--sidebar-item-active-border);
}

.sidebar-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: inherit;
}

.sidebar-item-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.sidebar-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: var(--space-md) var(--space-lg);
}

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

/* ===== HEADER COMPONENT ===== */
.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
    min-width: 280px;
    transition: all var(--transition-fast);
}

.search-bar:focus-within {
    border-color: var(--tint-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar-icon {
    color: var(--text-muted);
}

.search-bar-shortcut {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: var(--card-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.user-info {
    text-align: right;
}

.user-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.user-role {
    font-size: var(--font-size-xs);
    color: var(--tint-color);
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
}

/* Notification Bell */
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notification-bell:hover {
    background: var(--sidebar-item-hover);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--status-offline);
    border-radius: var(--radius-full);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.active {
    background: var(--badge-active-bg);
    color: var(--badge-active-text);
}

.status-badge.inactive {
    background: var(--badge-inactive-bg);
    color: var(--badge-inactive-text);
}

.status-badge.pending {
    background: var(--badge-pending-bg);
    color: var(--badge-pending-text);
}

.status-badge.away {
    background: var(--status-away);
    color: white;
}

/* Status Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.status-dot.status-active,
.status-dot.online {
    background: var(--status-online);
}

.status-dot.status-warning,
.status-dot.warning {
    background: var(--status-warning);
}

.status-dot.status-error,
.status-dot.offline {
    background: var(--status-offline);
}

.status-dot.status-inactive {
    background: var(--badge-inactive-bg);
}

/* ===== TABLE STYLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table thead {
    background: var(--table-head-bg);
}

.data-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--table-head-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--table-border);
}

.data-table td {
    padding: var(--space-md) var(--space-lg);
    color: var(--table-row-text);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--table-border);
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--table-row-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Checkbox */
.table-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--checkbox-border);
    border-radius: var(--radius-sm);
    background: var(--checkbox-bg);
    cursor: pointer;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-checkbox:checked {
    background: var(--tint-color);
    border-color: var(--tint-color);
}

.table-checkbox:checked::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Table Actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.table-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.table-action-btn:hover {
    background: var(--sidebar-item-hover);
    color: var(--text-color);
}

.table-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-offline);
}

/* Table Footer */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--table-border);
    background: var(--table-head-bg);
}

.table-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pagination-btn {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--sidebar-item-hover);
    color: var(--text-color);
}

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

.pagination-btn.active {
    background: var(--tint-color);
    color: white;
    border-color: var(--tint-color);
}

/* ===== PAGE LAYOUT ===== */
.page-container {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--background-color);
}

.page-content {
    padding: var(--space-xl);
    max-width: 1400px;
}

.page-header {
    margin-bottom: var(--space-2xl);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.page-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: var(--tint-color);
}

.page-breadcrumb-divider {
    color: var(--text-muted);
}

.page-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin: 0 0 var(--space-sm) 0;
}

.page-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin: 0;
}

/* Dashboard Cards Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.dashboard-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.dashboard-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin: 0;
}

.dashboard-card-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

.dashboard-card-stats {
    display: flex;
    gap: var(--space-lg);
    text-align: right;
}

.dashboard-stat {
    display: flex;
    flex-direction: column;
}

.dashboard-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-stat-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
}

/* Card Actions */
.card-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: var(--button-secondary-bg);
    border: 1px solid var(--button-secondary-border);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-lg);
}

.card-action-btn:hover {
    background: var(--sidebar-item-hover);
    border-color: var(--tint-color);
}

/* Card Footer Link */
.card-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--card-border);
    margin-top: var(--space-lg);
}

.card-footer-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.card-footer-action {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--tint-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
}

.card-footer-action:hover {
    text-decoration: underline;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.form-section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    margin-bottom: var(--space-sm);
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    background: var(--card-border);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
}

.toggle-option.active {
    background: var(--card-background);
    color: var(--tint-color);
    box-shadow: var(--shadow-sm);
}

.toggle-option:hover:not(.active) {
    color: var(--text-color);
}

/* Select Dropdown */
.modern-select {
    position: relative;
    width: 100%;
}

.modern-select select {
    width: 100%;
    padding: var(--space-md);
    background: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--input-text);
    font-size: var(--font-size-md);
    appearance: none;
    cursor: pointer;
}

.modern-select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

/* ===== CHECKBOX DARK THEME ===== */
.modern-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--checkbox-border);
    border-radius: var(--radius-sm);
    background: var(--checkbox-bg);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.modern-checkbox:checked {
    background: var(--checkbox-check);
    border-color: var(--checkbox-check);
}

.modern-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-nav {
        grid-template-columns: 1fr;
    }
    
    .modern-card {
        padding: 16px;
    }
    
    .modern-nav-item {
        padding: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
