/* MEXC Trading Bot - Main CSS File */
/* Evidențiere sursă date LIVE/BD */
.data-source-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
    font-weight: 500;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    transition: background 0.2s;
}
.data-source-live {
    background: var(--success-color);
    color: #fff;
    box-shadow: 0 1px 4px 0 rgba(16,185,129,0.12);
}
.data-source-live::before {
    content: '\25CF'; /* Cerc verde */
    color: #fff;
    font-size: 1em;
    margin-right: 5px;
}
.data-source-bd {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 1px 4px 0 rgba(37,99,235,0.12);
}
.data-source-bd::before {
    content: '\25CF'; /* Cerc albastru ca la LIVE */
    color: #fff;
    font-size: 1em;
    margin-right: 5px;
}
/* Reset și variabile CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    
    /* Culori pentru notificări și stări - TEXT ONLY (fundalul rămâne nemodificat) */
    --success-color: #10b981;           /* Culoare text pentru succes */
    --success-bg: rgba(16, 185, 129, 0.1);  /* Fundal fix pentru succes - nu se modifică */
    
    --danger-color: #ef4444;            /* Culoare text pentru eroare */
    --danger-bg: rgba(239, 68, 68, 0.1);    /* Fundal fix pentru eroare - nu se modifică */
    
    --warning-color: #f59e0b;           /* Culoare text pentru atenție */
    --warning-dark: #d97706;
    --warning-bg: rgba(245, 158, 11, 0.1);  /* Fundal fix pentru atenție - nu se modifică */
    
    --info-color: #3b82f6;              /* Culoare text pentru info */
    --info-bg: rgba(59, 130, 246, 0.1);     /* Fundal fix pentru info - nu se modifică */
    
    --highlight-color: #8b5cf6;         /* Culoare text pentru highlight */
    --highlight-bg: rgba(139, 92, 246, 0.1); /* Fundal fix pentru highlight - nu se modifică */
    
    /* Dashboard Cards - Culori de fundal personalizabile */
    --dashboard-card-bg: #22577a;           /* Fundal Stats Summary Card */
    --monitoring-card-bg: #22577a;          /* Fundal Monitoring Card */
    --activity-card-bg: #22577a;            /* Fundal Activity Card */
    --bot-card-bg: #22577a;                 /* Fundal Dashboard Bot Card */
    
    --background-color: #22577a;
    --background-secondary: #f1f5f9;
    --surface-color: #ffffff;
    --surface-hover: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.15s cubic-bezier(0.G, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout principal */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 0.35rem 2rem 0.1rem 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.header-robot-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1rem;
}

.header-title-container {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 0.5rem;
}

.header-title-container h1 {
    margin: 0;
}

.version-info {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 8px;
    text-align: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.version-info:hover {
    opacity: 1;
}

/* Ascunde version-info când sidebar-ul este collapsed */
.sidebar.collapsed .version-info {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    text-shadow:
        0 6px 14px rgba(5, 40, 85, 0.35),
        0 0 10px rgba(64, 224, 255, 0.3);
}

.header .header-bot-icon {
    /* Mărit cu 20%: 42px → 50px, 60px → 72px */
    width: 50px;
    height: 72px;
    min-width: 50px;
    min-height: 72px;
    display: block;
    flex-shrink: 0;
    /* Disable color overlay - păstrăm culorile originale gradient */
    --bot-color: transparent !important;
    --bot-opacity: 0;
    --bot-shadow: none;
    /* Enhanced filters - CORP ALBASTRU PUR (hue-rotate agresiv pentru transformare gri → albastru) */
    filter: 
        contrast(1.3)
        saturate(2.5)
        brightness(1.12)
        hue-rotate(-60deg)
        drop-shadow(0 6px 14px rgba(59, 130, 246, 0.5))
        drop-shadow(0 2px 8px rgba(37, 99, 235, 0.4))
        drop-shadow(0 0 16px rgba(59, 130, 246, 0.3));
    background-image: url("/images/Graident Ai Robot.svg");
    background-size: 100% 92%;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.header .header-bot-icon:hover {
    filter: 
        contrast(1.35)
        saturate(2.7)
        brightness(1.18)
        hue-rotate(-60deg)
        drop-shadow(0 8px 18px rgba(59, 130, 246, 0.6))
        drop-shadow(0 4px 10px rgba(37, 99, 235, 0.5))
        drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    transform: scale(1.04);
}

.header .header-bot-icon::after {
    /* Disable color overlay pentru header - păstrăm culorile originale gradient SVG */
    display: none;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: auto;
    flex-shrink: 0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--danger-color);
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background-color: var(--success-color);
}

.status-indicator.offline {
    background-color: var(--danger-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex: 1;
    max-width: 100vw;
    margin: 0;
    position: relative;
}

/* Animații pentru sidebar îmbunătățit */
@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

/* Sidebar Modern și Redimensionabil - Protejat de schimbările de temă */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px; /* Înălțimea header-ului */
    height: calc(100vh - 80px);
    width: 200px; /* Lățime optimă pentru textele din navigare */
    min-width: 83px;
    max-width: 220px; /* Limitat la textul cel mai lung + spațiu pentru confort */
    background: #ffffff !important; /* Fundal fix alb - doar butonul Culoare îl poate schimba */
    border-right: 1px solid #e2e8f0 !important; /* Border fix - doar butonul Culoare îl poate schimba */
    box-shadow: var(--shadow-lg);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    display: flex;
    flex-direction: column;
    /* ✅ FIX (25 Mai 2026): scroll pe tot sidebar-ul pentru ecrane mici (laptop)
       INAINTE: overflow: hidden — butoanele de jos (Logout) erau inaccesibile
       ACUM: overflow-y: auto cu scrollbar discret pe stanga */
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scrollbar discret pentru sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* Firefox */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Culori personalizabile pentru sidebar - DOAR prin butonul Culoare */
.sidebar.custom-sidebar-colors {
    background: var(--sidebar-bg-color, #ffffff) !important;
    border-right: 1px solid var(--sidebar-border-color, #e2e8f0) !important;
}

.sidebar.custom-sidebar-colors .nav-link {
    color: var(--sidebar-text-color, #64748b) !important;
}

.sidebar.custom-sidebar-colors .nav-link:hover {
    background-color: var(--sidebar-hover-bg-color, #f1f5f9) !important;
    color: var(--sidebar-hover-text-color, #1e293b) !important;
}

.sidebar.custom-sidebar-colors .nav-link.active {
    color: var(--sidebar-active-color, #7665B3) !important;
    background: var(--sidebar-active-bg, linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.15))) !important;
}

.sidebar.custom-sidebar-colors .nav-link.active::before {
    background: var(--sidebar-active-color, #7665B3) !important;
}

.sidebar.collapsed {
    width: 83px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* overflow: hidden eliminat — parintele .sidebar are acum overflow-y: auto */
}

/* Toggle Button îmbunătățit */
.sidebar-toggle {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0 !important; /* Border fix - nu se schimbă cu tema */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
    background: none !important; /* Fundal transparent ca butonul Culori - nu se schimbă cu tema */
    position: relative;
    color: #64748b !important; /* Culoare text fixă ca butonul Culori */
    border-radius: 0.5rem; /* Border radius ca butonul Culori */
    font-weight: 500; /* Font weight ca butonul Culori */
    overflow: hidden; /* Overflow ca butonul Culori */
}

.sidebar-toggle:hover {
    background-color: #f1f5f9 !important; /* Fundal hover fix - nu se schimbă cu tema */
    color: #1e293b !important; /* Culoare text hover fixă - identic cu butonul Culori */
    transform: translateX(2px); /* Animație hover ca butonul Culori */
}

.sidebar-toggle:hover i {
    color: #7665B3 !important; /* Culoare hover fixă - păstrează albastru original */
    transform: scale(1.05); /* Animație iconiță hover ca butonul Culori */
}

/* ===== Sidebar Toggle - Iconițe gestionate de SVGIconMapper.js ===== */
.sidebar-toggle i {
    font-size: 1.125rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
    transition: all var(--transition-normal);
}

.sidebar.collapsed .sidebar-toggle i,
.sidebar.collapsed .sidebar-toggle svg {
    color: #7665B3 !important;
}

.sidebar:not(.collapsed) .sidebar-toggle i,
.sidebar:not(.collapsed) .sidebar-toggle svg {
    color: #64748b !important;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0.25rem 0;
    padding: 0 0.5rem;
    position: relative;
    width: 100%;
}

/* ✅ NOU (26 Mai 2026): Badge ⚠️ pe butonul Settings — API key lipsa sau expirat */
.nav-btn {
    position: relative; /* necesar pentru badge absolut */
}

.nav-api-warning-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    z-index: 10;
    /* animatie subtila de pulsare */
    animation: nav-badge-pulse 2s ease-in-out infinite;
}

@keyframes nav-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.9); }
}

/* Cand sidebar-ul e collapsed, badge-ul se muta putin */
.sidebar.collapsed .nav-api-warning-badge {
    top: 2px;
    right: 2px;
    font-size: 11px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0 0.5rem;
    text-decoration: none;
    color: #64748b !important; /* Culoare text fixă - doar butonul Culoare o poate schimba */
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Butoane de navigare - abordare nouă similară cu color-picker-btn */
.nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0;
    background: none !important;
    border: none;
    color: #64748b !important;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link:hover,
.nav-btn:hover {
    background-color: #f1f5f9 !important; /* Fundal hover fix - doar butonul Culoare îl poate schimba */
    color: #1e293b !important; /* Culoare text hover fixă - doar butonul Culoare o poate schimba */
    transform: translateX(2px);
}

.nav-link:hover .nav-icon,
.nav-btn:hover .svg-icon {
    color: var(--primary-color);
    transform: scale(1.05);
}

.nav-link:hover .nav-text,
.nav-btn:hover .nav-text {
    color: var(--text-primary);
}

.nav-link.active,
.nav-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.15)) !important;
    color: #7665B3 !important; /* Culoare active fixă - doar butonul Culoare o poate schimba */
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
    font-weight: 600;
}

.nav-link.active:hover,
.nav-btn.active:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.2)) !important;
    color: #5a4fcf !important; /* Culoare active hover fixă - doar butonul Culoare o poate schimba */
    transform: translateX(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

.nav-link.active::before,
.nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #7665B3 !important; /* Indicator active fix - doar butonul Culoare îl poate schimba */
    border-radius: 0 2px 2px 0;
}

/* Stiluri pentru iconițele SVG din navigație - curățate de FontAwesome */
.nav-icon {
    min-width: 20px;
    font-size: 1.125rem;
    margin-right: 0.75rem;
    transition: all var(--transition-fast);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Stilurile SVG sunt gestionate în svg-icons.css - nu mai avem nevoie de reguli FontAwesome */

.nav-link.active .nav-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav-text {
    opacity: 1;
    transition: opacity var(--transition-normal);
    font-size: 0.9rem;
}

.nav-link.active .nav-text {
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    margin: 0.5rem 0.75rem;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
}

/* Regula pentru .nav-icon este gestionată de svg-icons.css */

/* Centrare optimizată pentru iconițele SVG în sidebar collapsed */
.sidebar.collapsed .svg-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Forțează centrarea elementului ::before din SVG icons */
.sidebar.collapsed .svg-icon::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Menține centrarea ::before și la hover */
.sidebar.collapsed .nav-btn:hover .svg-icon::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Centrarea completă pentru link-urile din sidebar collapsed + tooltip */
.sidebar.collapsed .nav-item {
    padding: 0 !important;
    margin: 0.25rem 0 !important;
}

.sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80% !important;
    padding: 1rem 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
    border-radius: 8px !important;
    border-right: 3px solid transparent;
}

/* Text hidden în modul collapsed */
.sidebar.collapsed .nav-link .nav-text,
.sidebar.collapsed .nav-btn .nav-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

/* Tooltip după hover pentru modul collapsed */
.sidebar.collapsed .nav-link::after,
.sidebar.collapsed .nav-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), #5a4fcf);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    margin-left: 0.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(118, 101, 179, 0.2);
    backdrop-filter: blur(10px);
}

.sidebar.collapsed .nav-link::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: var(--primary-color);
    margin-left: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1001;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-link:hover::before,
.sidebar.collapsed .nav-btn:hover::after,
.sidebar.collapsed .nav-btn:hover::before {
    opacity: 1;
}

/* Îmbunătățire 3: Indicatori de Stare Activă pentru sidebar collapsed */
.sidebar.collapsed .nav-link.active,
.sidebar.collapsed .nav-btn.active {
    background: linear-gradient(90deg, rgba(118, 101, 179, 0.18) 0%, rgba(118, 101, 179, 0.22) 50%, rgba(118, 101, 179, 0.18) 100%) !important;
    border-right: 3px solid var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 80%;
    margin: 0 auto;
    border-radius: 8px;
}

/* Ascunde bara violet de indicator activ (::before) in modul collapsed */
/* In collapsed, indicatorul activ e deja border-right — bara stanga e redundanta si apare ca "icon" extra */
.sidebar.collapsed .nav-btn.active::before {
    display: none !important;
    content: none !important;
}

/* Indicator vizual suplimentar pentru elementul activ în sidebar collapsed */
.sidebar.collapsed .nav-link.active .nav-icon,
.sidebar.collapsed .nav-btn.active .svg-icon {
    color: var(--primary-color);
    transform: scale(1.05);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Menține centrarea ::before pentru starea active */
.sidebar.collapsed .nav-btn.active .svg-icon::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Stilizări pentru butoanele active în modul collapsed - backup FontAwesome */
.sidebar.collapsed .color-picker-btn.active,
.sidebar.collapsed button.active,
.sidebar.collapsed .btn-sm.active,
.sidebar.collapsed .button-small.active,
.sidebar.collapsed .theme-selector-btn.active,
.sidebar.collapsed .btn.btn-secondary.active,
.sidebar.collapsed .toggle-password.active {
    background: linear-gradient(90deg, rgba(118, 101, 179, 0.18) 0%, rgba(118, 101, 179, 0.22) 50%, rgba(118, 101, 179, 0.18) 100%);
    border-right: 3px solid var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 80%;
    margin: 0 auto;
    border-radius: 8px;
    max-width: none;
    flex-shrink: 0;
    color: var(--primary-color);
}

/* Iconițele din butoanele active în modul collapsed - backup FontAwesome */
.sidebar.collapsed .color-picker-btn.active .nav-icon,
.sidebar.collapsed button.active .nav-icon,
.sidebar.collapsed .btn-sm.active .nav-icon,
.sidebar.collapsed .button-small.active .nav-icon,
.sidebar.collapsed .theme-selector-btn.active .nav-icon,
.sidebar.collapsed .btn.btn-secondary.active .nav-icon,
.sidebar.collapsed .toggle-password.active .nav-icon {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Îmbunătățire 4: Micro-Interacțiuni pentru sidebar collapsed */
.sidebar.collapsed .nav-link:hover .nav-icon,
.sidebar.collapsed .nav-btn:hover .svg-icon {
    animation: pulse 0.6s ease-in-out;
}

/* Menține centrarea iconițelor la hover în modul collapsed */
.sidebar.collapsed .nav-btn:hover .svg-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.sidebar.collapsed .nav-link:hover,
.sidebar.collapsed .nav-btn:hover {
    background: linear-gradient(90deg, rgba(118, 101, 179, 0.18) 0%, rgba(118, 101, 179, 0.22) 50%, rgba(118, 101, 179, 0.18) 100%) !important;
    width: 80% !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    border-right: 3px solid var(--primary-color) !important;
    transform: none;
}

/* Hover pentru butoanele active în modul collapsed - 80% lățime cu gradient intens */
.sidebar.collapsed .nav-link.active:hover,
.sidebar.collapsed .nav-btn.active:hover {
    background: linear-gradient(90deg, rgba(118, 101, 179, 0.18) 0%, rgba(118, 101, 179, 0.22) 50%, rgba(118, 101, 179, 0.18) 100%) !important;
    border-right: 3px solid var(--primary-color);
    width: 80% !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    transform: none;
}

/* Menține centrarea iconițelor active la hover */
.sidebar.collapsed .nav-btn.active:hover .svg-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    color: var(--primary-color);
}

.sidebar.collapsed .nav-btn.active:hover .svg-icon::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.sidebar.collapsed .color-picker-btn:hover .nav-icon {
    animation: pulse 0.6s ease-in-out;
    color: #7665B3 !important; /* Culoare iconiță hover fixă collapsed */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.sidebar.collapsed .color-picker-btn:hover {
    background: linear-gradient(90deg, rgba(118, 101, 179, 0.18) 0%, rgba(118, 101, 179, 0.22) 50%, rgba(118, 101, 179, 0.18) 100%) !important;
    width: 80% !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    border-right: 3px solid var(--primary-color) !important;
    transform: none;
}

/* Tooltip îmbunătățit pentru butonul de culori collapsed - la fel ca nav-link */
.sidebar.collapsed .color-picker-btn::after {
    background: linear-gradient(135deg, var(--primary-color), #5a4fcf);
    border: 1px solid rgba(118, 101, 179, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar.collapsed .color-picker-btn::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: var(--primary-color);
    margin-left: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1001;
}

.sidebar.collapsed .color-picker-btn:hover::after,
.sidebar.collapsed .color-picker-btn:hover::before {
    opacity: 1;
}

/* Sidebar Footer cu Buton Culori */
.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
    margin-top: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 0.5rem 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 60px !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.color-picker-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0;
    background: none !important;
    border: none;
    color: #64748b !important; /* Culoare fixă - nu se schimbă cu tema */
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.color-picker-btn:hover {
    background-color: #f1f5f9 !important; /* Fundal fix hover - nu se schimbă cu tema */
    color: #1e293b !important; /* Culoare text hover fixă */
    transform: translateX(2px);
}

/* ✅ NOU (16 Mai 2026): Buton Logout + info user curent in sidebar */

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 1px;
    padding: 0 10px;
    border-right: 1px solid var(--border-color);
    margin-right: 6px;
}

.sidebar-user-email {
    font-size: 11px;
    color: var(--text-secondary, #8b949e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.sidebar-user-role {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--accent-color, #388bfd);
}

/* In sidebar colapsat ascunde informatiile text ale userului */
.sidebar.collapsed .sidebar-user-info {
    display: none !important;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: none;
    border: none;
    border-radius: 0.5rem;
    color: var(--text-secondary, #8b949e);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.logout-btn:hover {
    background-color: rgba(248, 81, 73, 0.1);
    color: #f85149;
}

.logout-icon {
    flex-shrink: 0;
    transition: transform 0.15s;
}

.logout-btn:hover .logout-icon {
    transform: translateX(2px);
}

/* In sidebar colapsat — centreaza icona, ascunde textul */
.sidebar.collapsed .logout-btn {
    justify-content: center;
    padding: 0.85rem 0;
    width: 80%;
    margin: 0 auto;
}

.sidebar.collapsed .logout-btn .nav-text {
    display: none;
}

.color-picker-btn:hover .nav-icon {
    color: #7665B3 !important; /* Culoare iconiță hover fixă - păstrează albastru original */
    transform: scale(1.05);
}

.sidebar.collapsed .color-picker-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80% !important;
    padding: 1rem 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
    border-radius: 8px !important;
    border-right: 3px solid transparent;
    opacity: 1 !important;
    visibility: visible !important;
    background: none !important;
    border: none !important;
    color: #64748b !important; /* Culoare fixă collapsed - nu se schimbă cu tema */
}

/* Copiez exact stilizarea de la nav-icon pentru textul butonului de culori */
.sidebar.collapsed .color-picker-btn .nav-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

/* Copiez exact stilizarea de la nav-icon pentru iconița butonului de culori */
.sidebar.collapsed .color-picker-btn .nav-icon {
    margin-right: 0;
    margin-left: 0;
    font-size: 1.4rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 20px;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    /* Font family eliminat - folosim SVG */
    animation: fadeInScale 0.4s ease-out 0.1s both;
}

/* Tooltip pentru butonul de culori în modul collapsed */
.sidebar.collapsed .color-picker-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    margin-left: 0.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.sidebar.collapsed .color-picker-btn:hover::after {
    opacity: 1;
}

/* Centrarea butoanelor generale în modul collapsed - backup FontAwesome */
.sidebar.collapsed button {
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    margin: 0.5rem 0.5rem;
    width: auto;
    display: flex !important;
    border-radius: 12px;
    text-align: center;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.sidebar.collapsed .btn-sm,
.sidebar.collapsed .button-small {
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
    margin: 0.25rem 0.375rem;
    width: auto;
    display: flex !important;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.sidebar.collapsed .theme-selector-btn,
.sidebar.collapsed .btn.btn-secondary,
.sidebar.collapsed .toggle-password {
    justify-content: center;
    align-items: center;
    padding: 0.875rem 0;
    margin: 0.375rem 0.4375rem;
    width: auto;
    display: flex !important;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

/* Color Picker Modal */
.color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.color-picker-modal.active {
    opacity: 1;
    visibility: visible;
}

.color-picker-content {
    background: var(--surface-color);
    border-radius: 1rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.color-picker-modal.active .color-picker-content {
    transform: scale(1);
}

.color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.color-picker-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.color-picker-body {
    padding: 1.5rem;
}

.color-option {
    margin-bottom: 1.5rem;
}

.color-option label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    background: none;
    transition: border-color var(--transition-fast);
}

.color-input-group input[type="color"]:hover {
    border-color: var(--primary-color);
}

.color-input-group input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.color-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.reset-color-btn {
    padding: 0.75rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reset-color-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.color-picker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
    border-radius: 0 0 1rem 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.875rem;
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Linia de redimensionare */
.sidebar-resizer {
    position: absolute;
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    border-right: 2px solid transparent;
    transition: border-color 0.2s ease;
    z-index: 91;
}

.sidebar-resizer:hover,
.sidebar-resizer.dragging {
    border-right-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

/* Content Area Adaptation */
.content-area {
    margin-left: calc(165px + 0.8rem); /* ✅ Sidebar expanded + gap consistent */
    transition: margin-left var(--transition-normal);
    flex: 1;
    min-height: calc(100vh - 60px);
    background-color: var(--background-color);
}

.sidebar.collapsed + .content-area {
    margin-left: calc(60px + 0.8rem); /* ✅ Sidebar collapsed + gap consistent */
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0;
    }
    
    .sidebar.collapsed + .content-area {
        margin-left: 0;
    }
}

/* Animații pentru text scaling */
@media (min-width: 769px) {
    .sidebar {
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-text {
        transform-origin: left center;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* Scaling text optimizat pentru lățimi mai mici */
    .sidebar[data-width="small"] .nav-text {
        font-size: 0.8rem;
        transform: scale(0.9);
    }
    
    .sidebar[data-width="medium"] .nav-text {
        font-size: 0.875rem; /* Reducerea implicită pentru a se potrivi mai bine */
        transform: scale(1);
    }
    
    .sidebar[data-width="large"] .nav-text {
        font-size: 0.9rem; /* Limitat pentru a nu depăși spațiul disponibil */
        transform: scale(1);
    }
}

/* Dashboard și Module Styles */
.module-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.module-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Dashboard Module Styles */
.dashboard-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title i {
    color: var(--accent-color);
}

.dashboard-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.dashboard-controls {
    display: flex;
    gap: 8px; /* Redus pentru compactare */
}

/* === COLLAPSE/EXPAND FUNCTIONALITY === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.move-card-btn {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 9px;
}

.move-card-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.5);
    color: #86efac;
    transform: scale(1.1);
}

.move-card-btn:active {
    transform: scale(0.95);
}

.move-card-btn.move-up {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.move-card-btn.move-up:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.move-card-btn.move-down {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: #f97316;
}

.move-card-btn.move-down:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.5);
    color: #fb923c;
}

.move-card-btn:disabled {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
}

.move-card-btn:disabled:hover {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #64748b;
    transform: none;
}

/* Header actions positioning for dashboard cards */
.stats-summary-header,
.monitoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-summary-header h3,
.monitoring-header h3 {
    margin: 0;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.collapse-btn,
.collapse-toggle {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 9px;
}

.collapse-btn:hover,
.collapse-toggle:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.5);
    color: #86efac;
    transform: scale(1.1);
}

.collapse-btn:active,
.collapse-toggle:active {
    transform: scale(0.95);
}

.collapse-btn:disabled,
.collapse-toggle:disabled {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
}

.collapse-btn:disabled:hover,
.collapse-toggle:disabled:hover {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #64748b;
    transform: none;
}

.collapse-btn i,
.collapse-toggle i {
    transition: transform 0.3s ease;
    font-weight: normal;
}

/* ===== Collapse Toggle - Iconițe gestionate de SVGIconMapper.js ===== */
.collapse-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Animație pentru rotirea iconului collapse */
.collapse-btn.collapsed i,
.collapse-toggle.collapsed i,
.collapse-btn.collapsed svg,
.collapse-toggle.collapsed svg {
    transform: rotate(180deg);
}

/* Stilizare pentru animațiile de collapse cu scroll */
.stats-content,
.monitoring-content,
.monitoring-bot-content,
.activity-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; /* Scroll vertical când conținutul depășește */
    overflow-x: hidden; /* Fără scroll orizontal */
    max-height: 280px; /* Înălțime maximă pentru scroll */
}

/* Scrollbar custom pentru carduri */
.stats-content::-webkit-scrollbar,
.monitoring-content::-webkit-scrollbar,
.monitoring-bot-content::-webkit-scrollbar,
.activity-content::-webkit-scrollbar {
    width: 6px;
}

.stats-content::-webkit-scrollbar-track,
.monitoring-content::-webkit-scrollbar-track,
.monitoring-bot-content::-webkit-scrollbar-track,
.activity-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.stats-content::-webkit-scrollbar-thumb,
.monitoring-content::-webkit-scrollbar-thumb,
.monitoring-bot-content::-webkit-scrollbar-thumb,
.activity-content::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.stats-content::-webkit-scrollbar-thumb:hover,
.monitoring-content::-webkit-scrollbar-thumb:hover,
.monitoring-bot-content::-webkit-scrollbar-thumb:hover,
.activity-content::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.6);
}

.collapsible-section.collapsed .stats-content,
.collapsible-section.collapsed .monitoring-content,
.collapsible-section.collapsed .monitoring-bot-content,
.collapsible-section.collapsed .activity-content {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden; /* Ascunde overflow-ul când este collapsed */
}

/* Dashboard Cards Styles */
.dashboard-card {
    background: #22577a !important;
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    background: rgba(20, 20, 30, 0.5);
    border-radius: 12px 12px 0 0;
}

.dashboard-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

.dashboard-card .card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dashboard-card .card-content {
    padding: 20px;
    color: #e2e8f0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.dashboard-card .card-content.collapsed {
    display: none;
}

.dashboard-card .card-content h3 {
    color: #f8fafc;
    margin-top: 0;
    margin-bottom: 12px;
}

.dashboard-card .card-content p {
    margin-bottom: 12px;
}

.dashboard-card .card-content .btn {
    margin-top: 16px;
}

.collapsible-section {
    transition: all 0.4s ease;
}

.collapsible-section.collapsed {
    min-height: auto;
}

.section-content {
    transition: all 0.4s ease;
    overflow: hidden;
}

.collapsible-section.collapsed .section-content {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0;
    min-height: 0 !important;
}

/* Specifice pentru grids când sunt collapsed */
.collapsible-section.collapsed .stats-grid,
.collapsible-section.collapsed .monitoring-grid,
.collapsible-section.collapsed .activity-list {
    display: none !important;
}

/* Forțează secțiunea collapsată să aibă înălțime minimă */
.collapsible-section.collapsed {
    min-height: auto !important;
    height: auto !important;
}

/* Pentru stats-summary-card specifc */
.stats-summary-card.collapsible-section.collapsed {
    padding-bottom: 18px !important;
}

/* Animații smooth pentru collapse */
@keyframes collapseDown {
    from {
        max-height: 1000px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

@keyframes expandUp {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 1000px;
        opacity: 1;
    }
}

.btn-dashboard-refresh {
    background: #2E3C4F;
    color: #60a5fa;
    border: 1px solid #4A5568;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-dashboard-refresh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    z-index: 0;
}

.btn-dashboard-refresh:hover::before {
    width: 100%;
}

.btn-dashboard-refresh:hover {
    color: #2E3C4F;
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(96, 165, 250, 0.2);
}

.btn-dashboard-refresh:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.4);
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 2;
}

/* Stare loading/clicked - rămâne activ după click */
.btn-dashboard-refresh.loading {
    background: white;
    color: #60a5fa;
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(96, 165, 250, 0.3);
    font-weight: 700;
}

.btn-dashboard-refresh.loading span {
    color: #60a5fa;
    font-weight: 700;
}

.btn-dashboard-refresh.loading::before {
    width: 100%;
    background: white;
}

.btn-dashboard-refresh.loading i {
    animation: rotate-loading 1s linear infinite;
}

@keyframes rotate-loading {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Efect pulsant pentru loading */
.btn-dashboard-refresh.loading::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    animation: pulse-border 1.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-border {
    0%, 100% { 
        border-color: rgba(96, 165, 250, 0.3);
        transform: scale(1);
    }
    50% { 
        border-color: rgba(96, 165, 250, 0.7);
        transform: scale(1.02);
    }
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.btn-dashboard-refresh i {
    font-size: 0.8rem;
    z-index: 1;
    position: relative;
}

.btn-dashboard-refresh span {
    z-index: 1;
    position: relative;
    font-weight: 600;
}

.dashboard-section {
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-color);
}

/* Container pentru carduri cu layout vertical - Comportament natural */
.dashboard-cards-container {
    display: flex;
    flex-direction: column; /* Întotdeauna vertical */
    gap: 10px; /* Redus de la 30px la 10px */
    align-items: stretch; /* Cardurile ocupă toată lățimea */
    width: 100%; /* Ocupă toată lățimea disponibilă */
    position: relative; /* Forțează stacking context corect */
    /* height eliminat pentru comportament natural - cardurile își determină singure înălțimea */
}

/* Dashboard Stats și Activity - Layout VERTICAL pentru 3 carduri - Comportament identic */
.dashboard-stats {
    position: relative; /* Forțează stacking context propriu */
    z-index: 1; /* Asigură că stats este sub activity */
    margin-bottom: 30px; /* Restaurat margin ca activity */
    min-width: 300px; /* Lățime minimă pentru lizibilitate */
    max-width: none; /* Fără restricție de lățime maximă */
    min-height: 400px; /* ⭐ ADĂUGAT - Același min-height ca dashboard-activity */
    /* max-height ELIMINAT - permite containerului să crească cu cele 3 carduri expanded */
    display: flex; /* Schimbat de la grid la flex */
    flex-direction: column; /* Layout vertical */
    gap: 10px; /* Spațiu între carduri */
}

/* Container pentru cele două carduri - același layout ca activity-card */
.dashboard-stats .stats-summary-card {
    flex: 1; /* Fiecare card ocupă o treime din înălțimea ecranului */
    min-height: 300px; /* Aceeași înălțime minimă ca activity-card */
    max-height: 350px; /* Același max-height ca activity-card */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ascunde overflow - exact ca activity-card */
}

.dashboard-activity .activity-card {
    height: 100%; /* Ocupă toată înălțimea containerului părinte */
    min-height: 400px; /* Aceeași înălțime minimă ca containerul */
    max-height: 800px; /* Aceeași max-height ca containerul */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Controlat prin activity-list */
}

/* Card Principal pentru toate statisticile - Comportament identic cu activity-card */
.stats-summary-card {
    background: #22577a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden; /* Ascunde overflow - exact ca activity-card */
    margin-bottom: 15px; /* Același margin ca activity-card */
    height: 350px; /* FORȚĂM înălțime fixă în loc de auto */
    min-height: 300px; /* Aceeași înălțime minimă ca activity-card */
    max-height: 350px; /* Același max-height ca activity-card */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-summary-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
    transform: translateY(-2px);
}

.stats-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.stats-summary-header {
    margin-bottom: 12px; /* Redus pentru compactare */
    padding-bottom: 10px; /* Redus pentru compactare */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-summary-header h3 {
    color: #fbbf24;
    font-size: 0.85rem; /* Redus cu ~50% de la 1.1rem */
    font-weight: 700; /* Mărit pentru contrast mai bun */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px; /* Redus pentru compactare */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Adăugat pentru contrast */
}

.stats-summary-header i {
    color: #fbbf24;
    font-size: 0.8rem; /* Redus proporțional */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); /* Contrast pentru icon */
}

/* Card Monitorizare Conexiuni - Comportament identic cu activity-card */
.monitoring-card {
    background: #22577a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden; /* Ascunde overflow - exact ca activity-card */
    margin-bottom: 15px; /* Același margin ca activity-card */
    height: auto;
    min-height: 300px; /* Aceeași înălțime minimă ca activity-card */
    max-height: 350px; /* Același max-height ca activity-card */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.monitoring-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.monitoring-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669); /* Verde pentru monitoring */
}

.monitoring-header {
    margin-bottom: 12px; /* Redus pentru compactare */
    padding-bottom: 10px; /* Redus pentru compactare */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitoring-header h3 {
    color: #10b981; /* Verde pentru diferențiere */
    font-size: 0.85rem; /* Redus cu ~50% pentru consistență */
    font-weight: 700; /* Mărit pentru contrast mai bun */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px; /* Redus pentru compactare */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Adăugat pentru contrast */
}

.monitoring-header i {
    color: #10b981;
    font-size: 0.8rem; /* Redus proporțional */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); /* Contrast pentru icon */
}

/* Grid pentru statistici în interiorul cardului - Adaptabil la lățime cu scroll */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Mai flexibil pentru ecrane mari */
    gap: 14px; /* Redus de la 20px la 14px (-30%) */
    width: 100%; /* Ocupă toată lățimea cardului */
    padding: 2px 8px 2px 2px; /* Padding pentru scroll - mai mult spațiu la dreapta */
    overflow-y: auto; /* Permite scroll vertical dacă conținutul depășește */
    flex: 1; /* Ocupă spațiul rămas în card */
}

/* Asigură că noile clase redenumite au același comportament în grid */
.stats-grid .stat-item-balance,
.stats-grid .stat-item-assets,
.stats-grid .stat-item-positions,
.stats-grid .stat-item-winrate {
    min-width: 200px; /* Asigură dimensiunea minimă pentru grid */
}

/* Grid pentru monitoring în interiorul cardului - Adaptabil la lățime cu scroll */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Mai flexibil pentru ecrane mari */
    gap: 14px; /* Același gap ca stats-grid */
    width: 100%; /* Ocupă toată lățimea cardului */
    padding: 2px 8px 2px 2px; /* Padding pentru scroll - mai mult spațiu la dreapta */
    overflow-y: auto; /* Permite scroll vertical dacă conținutul depășește */
    flex: 1; /* Ocupă spațiul rămas în card */
}

/* Asigură că noile clase redenumite au același comportament în grid */
.monitoring-grid .monitoring-item-api,
.monitoring-grid .monitoring-item-websocket,
.monitoring-grid .monitoring-item-uptime,
.monitoring-grid .monitoring-item-ratelimit,
.monitoring-grid .monitoring-item-heartbeat {
    min-width: 200px; /* Asigură dimensiunea minimă pentru grid */
}

.monitoring-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Același gap ca stat-item */
    padding: 12px; /* Același padding ca stat-item */
    background: rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.monitoring-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.monitoring-item .monitoring-icon {
    background: rgba(16, 185, 129, 0.15); /* Verde pentru monitoring */
    border-radius: 8px;
    padding: 6px; /* Același padding ca stat-icon */
    color: #10b981; /* Verde pentru monitoring */
    font-size: 0.9rem; /* Același font-size ca stat-icon */
    flex-shrink: 0;
    width: 30px; /* Aceeași lățime ca stat-icon */
    height: 30px; /* Aceeași înălțime ca stat-icon */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative; /* Necesar pentru pseudo-element absolute positioning */
}

.monitoring-icon.robot-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    padding: 8px;
    margin: 0;
    border-radius: 18px;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.monitoring-icon.robot-icon-container .bot-icon {
    width: 100% !important;
    height: 100% !important;
}

.monitoring-icon.robot-icon-container:hover {
    transform: translateY(-1px);
}

/* Stări de conexiune pentru iconuri */
.monitoring-icon.connected {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.monitoring-icon.connected i {
    animation: spin 2s linear infinite; /* Rotire continuă când este conectat */
}

.monitoring-icon.disconnected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: blink 1s ease-in-out infinite; /* Blink roșu când este deconectat */
}

.monitoring-icon.disconnected::after {
    content: '';
    position: absolute;
    width: 130%; /* 30% mai mare decât iconul */
    height: 130%; /* 30% mai mare decât iconul */
    top: -15%; /* Centrat: -(130-100)/2 = -15% */
    left: -15%; /* Centrat: -(130-100)/2 = -15% */
    border-radius: 50%;
    animation: pulse 2s infinite; /* Pulse effect pentru deconectat */
}

.monitoring-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    animation: blink 1.5s ease-in-out infinite; /* Blink galben pentru warning */
}

.monitoring-item .monitoring-content {
    flex: 1;
    min-width: 0; /* Pentru text truncation dacă e necesar */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Redus de la 12px la 10px */
    padding: 12px; /* Redus de la 15px la 12px (-20%) */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stat-item.primary {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.stat-item .stat-icon {
    background: rgba(34, 197, 94, 0.15);
    border-radius: 8px;
    padding: 6px; /* Redus de la 8px la 6px */
    color: var(--accent-color);
    font-size: 0.9rem; /* Redus de la 1rem la 0.9rem */
    flex-shrink: 0;
    width: 30px; /* Redus de la 35px la 30px */
    height: 30px; /* Redus de la 35px la 30px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item.primary .stat-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.stat-item .stat-content {
    flex: 1;
    min-width: 0; /* Pentru text truncation dacă e necesar */
}

/* Text mai lizibil și mai compact - Redus cu ~50% */
.stat-item .stat-label {
    color: #e2e8f0; /* Îmbunătățit pentru mai mult contrast cu background-ul */
    font-size: 0.55rem; /* Redus cu ~50% de la 0.8rem */
    font-weight: 700; /* Mărit pentru contrast maxim */
    text-transform: uppercase;
    letter-spacing: 0.4px; /* Mărit pentru lizibilitate */
    margin-bottom: 2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); /* Shadow pentru contrast */
}

.stat-item .stat-value {
    color: #fef3c7; 
    font-size: 0.9rem; 
    font-weight: 800; /* Mărit la maximum pentru contrast */
    margin-bottom: 2px;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); /* Shadow puternic pentru contrast */
}

.stat-item.primary .stat-value {
    color: #fef3c7; /* Galben foarte deschis pentru contrast cu background auriu */
    font-size: 0.9rem; /* Redus cu ~50% de la 1.4rem */
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9); /* Shadow foarte puternic */
}

.stat-item .stat-change {
    font-size: 0.5rem; /* Redus cu ~50% de la 0.75rem */
    font-weight: 700; /* Mărit pentru contrast */
    padding: 2px 6px; /* Redus pentru compactare */
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Shadow pentru contrast */
}

.stat-item .stat-change.positive {
    color: #dcfce7; /* Verde foarte deschis pentru contrast */
    background: rgba(34, 197, 94, 0.25); /* Background mai intens */
    border: 1px solid rgba(34, 197, 94, 0.4); /* Border pentru contrast */
}

.stat-item .stat-change.negative {
    color: #fef2f2; /* Roșu foarte deschis pentru contrast */
    background: rgba(239, 68, 68, 0.25); /* Background mai intens */
    border: 1px solid rgba(239, 68, 68, 0.4); /* Border pentru contrast */
}

.stat-item .stat-description {
    color: #cbd5e1; /* Îmbunătățit contrastul cu background-ul */
    font-size: 0.45rem; /* Redus cu ~50% de la 0.7rem */
    margin-top: 1px;
    line-height: 1.2;
    font-weight: 600; /* Mărit pentru mai mult contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Shadow pentru contrast */
}

/* Animatie loading pe stat-item — reutilizeaza heartbeatPulse + pulseRing din sectiunea Heartbeat */
.stat-item.loading .stat-value {
    animation: statValuePulse 1.2s ease-in-out infinite;
}

@keyframes statValuePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Text pentru Monitoring - Aceleași stilizări ca Stats */
.monitoring-item .monitoring-label {
    color: #e2e8f0; /* Îmbunătățit pentru mai mult contrast cu background-ul */
    font-size: 0.55rem; /* Redus cu ~50% pentru consistență */
    font-weight: 700; /* Mărit pentru contrast maxim */
    text-transform: uppercase;
    letter-spacing: 0.4px; /* Mărit pentru lizibilitate */
    margin-bottom: 2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); /* Shadow pentru contrast */
}

.monitoring-item .monitoring-value {
    color: #ffffff; /* Alb pur pentru contrast maxim */
    font-size: 0.75rem; /* Redus cu ~50% pentru consistență */
    font-weight: 800; /* Mărit la maximum pentru contrast */
    margin-bottom: 2px;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); /* Shadow puternic pentru contrast */
    transition: color 0.3s ease;
}

/* Stări de status pentru valori */
.monitoring-value.connected {
    color: #10b981; /* Verde pentru conectat */
}

.monitoring-value.disconnected {
    color: #ef4444; /* Roșu pentru deconectat */
    animation: blink 1s ease-in-out infinite;
}

.monitoring-value.warning {
    color: #f59e0b; /* Galben pentru warning */
}

.monitoring-item .monitoring-change {
    font-size: 0.5rem; /* Redus cu ~50% pentru consistență */
    font-weight: 700; /* Mărit pentru contrast */
    padding: 2px 6px; /* Redus pentru compactare */
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Shadow pentru contrast */
}

.monitoring-item .monitoring-change.positive {
    color: #dcfce7; /* Verde foarte deschis pentru contrast */
    background: rgba(34, 197, 94, 0.25); /* Background mai intens */
    border: 1px solid rgba(34, 197, 94, 0.4); /* Border pentru contrast */
}

.monitoring-item .monitoring-change.negative {
    color: #fef2f2; /* Roșu foarte deschis pentru contrast */
    background: rgba(239, 68, 68, 0.25); /* Background mai intens */
    border: 1px solid rgba(239, 68, 68, 0.4); /* Border pentru contrast */
}

.monitoring-item .monitoring-description {
    color: #ffffff; /* Alb pentru contrast maxim și vizibilitate cu emoji-uri */
    font-size: 0.45rem; /* Redus cu ~50% pentru consistență */
    margin-top: 1px;
    line-height: 1.2;
    font-weight: 600; /* Mărit pentru mai mult contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Shadow pentru contrast */
}

/* API Toggle Switch Styles */
.monitoring-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
}

.api-toggle-wrapper {
    position: relative;
    margin-left: auto;
    padding-left: 10px;
}

.api-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 20px;
    cursor: pointer;
}

.api-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.api-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: var(--transition-normal);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 8px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #e2e8f0;
    transition: var(--transition-normal);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.api-toggle-slider:after {
    content: "OFF";
    position: absolute;
    right: 6px;
    color: #cbd5e1;
    font-size: 7px;
    font-weight: 800;
    z-index: 1;
}

.api-toggle-input:checked + .api-toggle-slider {
    background-color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 6px rgba(16, 185, 129, 0.4);
}

.api-toggle-input:checked + .api-toggle-slider:after {
    content: "ON";
    left: 6px;
    right: auto;
    color: #ffffff;
}

.api-toggle-input:focus + .api-toggle-slider {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.api-toggle-input:checked + .api-toggle-slider:before {
    transform: translateX(26px);
    background-color: #ffffff;
}

.api-toggle-switch:hover .api-toggle-slider {
    background-color: #64748b;
    border-color: rgba(255, 255, 255, 0.2);
}

.api-toggle-input:checked + .api-toggle-slider:hover {
    background-color: #059669;
}

/* Toggle animation pentru status changes */
.api-toggle-slider {
    animation: none;
}

.api-toggle-input:checked + .api-toggle-slider {
    animation: pulse-success 0.6s ease-out;
}

@keyframes pulse-success {
    0% {
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 6px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 12px rgba(16, 185, 129, 0.8);
    }
    100% {
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 6px rgba(16, 185, 129, 0.4);
    }
}

/* Pulse animation pentru status updates */
.pulse-animation {
    animation: pulse-status 1s ease-in-out;
}

@keyframes pulse-status {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* WebSocket Toggle Switch Styles - identice cu API Toggle */
.websocket-toggle-wrapper {
    position: relative;
    margin-left: auto;
    padding-left: 10px;
}

.websocket-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 20px;
    cursor: pointer;
}

.websocket-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.websocket-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: var(--transition-normal);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 8px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.websocket-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #e2e8f0;
    transition: var(--transition-normal);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.websocket-toggle-slider:after {
    content: "OFF";
    position: absolute;
    right: 6px;
    color: #cbd5e1;
    font-size: 7px;
    font-weight: 800;
    z-index: 1;
}

.websocket-toggle-input:checked + .websocket-toggle-slider {
    background-color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 6px rgba(16, 185, 129, 0.4);
}

.websocket-toggle-input:checked + .websocket-toggle-slider:after {
    content: "ON";
    left: 6px;
    right: auto;
    color: #ffffff;
}

.websocket-toggle-input:focus + .websocket-toggle-slider {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.websocket-toggle-input:checked + .websocket-toggle-slider:before {
    transform: translateX(26px);
    background-color: #ffffff;
}

.websocket-toggle-switch:hover .websocket-toggle-slider {
    background-color: #64748b;
    border-color: rgba(255, 255, 255, 0.2);
}

.websocket-toggle-input:checked + .websocket-toggle-slider:hover {
    background-color: #059669;
}

/* WebSocket Toggle animation pentru status changes */
.websocket-toggle-slider {
    animation: none;
}

.websocket-toggle-input:checked + .websocket-toggle-slider {
    animation: pulse-success 0.6s ease-out;
}

/* ============================================================================ */
/* BOT MONITORING CARD STYLES */
/* ============================================================================ */

/* Card Monitorizare Bot - Comportament identic cu activity-card */
.dashboard-bot {
    background: #22577a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden; /* Ascunde overflow - exact ca activity-card */
    margin-bottom: 15px; /* Același margin ca activity-card */
    height: auto;
    min-height: 300px; /* Aceeași înălțime minimă ca activity-card */
    max-height: 350px; /* Același max-height ca activity-card */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-bot:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.dashboard-bot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #dc2626); /* Gradient roșu aprins */
}

.monitoring-bot-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitoring-bot-header h3 {
    color: #ef4444; /* Roșu aprins */
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.monitoring-bot-header i {
    color: #ef4444; /* Roșu aprins - același ca textul */
    font-size: 0.8rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Header actions pentru bot card - identic cu monitoring */
.monitoring-bot-header .header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Grid pentru bot items cu scroll */
.monitoring-bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
    padding: 2px 8px 2px 2px; /* Padding pentru scroll - mai mult spațiu la dreapta */
    overflow-y: auto; /* Permite scroll vertical dacă conținutul depășește */
    flex: 1; /* Ocupă spațiul rămas în card */
}

.monitoring-bot-grid .monitoring-item-bot1,
.monitoring-bot-grid .monitoring-item-bot2,
.monitoring-bot-grid .monitoring-item-bot3,
.monitoring-bot-grid .monitoring-item-bot4 {
    min-width: 200px;
}

/* Bot Toggle Switch Styles */
.bot-toggle-wrapper {
    position: relative;
    margin-left: auto;
    padding-left: 10px;
}

.bot-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 20px;
    cursor: pointer;
}

.bot-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bot-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: var(--transition-normal);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.bot-toggle-slider:before {
    content: "OFF";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 2px;
    background-color: #f1f5f9;
    transition: var(--transition-normal);
    border-radius: 50%;
    font-size: 6px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bot-toggle-slider:after {
    content: "OFF";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6px;
    font-weight: 700;
    color: #94a3b8;
}

.bot-toggle-input:checked + .bot-toggle-slider {
    background-color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.bot-toggle-input:checked + .bot-toggle-slider:after {
    content: "ON";
    left: 6px;
    color: #e2e8f0;
}

.bot-toggle-input:focus + .bot-toggle-slider {
    box-shadow: 0 0 1px #10b981;
}

.bot-toggle-input:checked + .bot-toggle-slider:before {
    transform: translateX(26px);
    background-color: #ffffff;
    content: "ON";
    color: #10b981;
}

.bot-toggle-switch:hover .bot-toggle-slider {
    background-color: #64748b;
}

.bot-toggle-input:checked + .bot-toggle-slider:hover {
    background-color: #059669;
}

.bot-toggle-slider {
    animation: none;
}

.bot-toggle-input:checked + .bot-toggle-slider {
    animation: pulse-success 0.6s ease-out;
}

/* ✅ READ-ONLY Toggle - Dashboard nu mai controlează, doar afișează */
.bot-toggle-readonly {
    cursor: not-allowed;
    opacity: 0.7;
}

.bot-toggle-readonly .bot-toggle-slider {
    cursor: not-allowed;
}

.bot-toggle-readonly:hover .bot-toggle-slider {
    background-color: #475569 !important; /* Nu schimbă culoarea la hover */
}

.bot-toggle-readonly .bot-toggle-input:checked + .bot-toggle-slider:hover {
    background-color: #10b981 !important; /* Păstrează culoarea verde */
}

/* Move bot buttons - Aceleași setări ca monitoring */
.move-bot-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
}

/* Săgeată verde pentru sus */
.move-bot-btn.move-up {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.move-bot-btn.move-up:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Săgeată portocalie pentru jos */
.move-bot-btn.move-down {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.move-bot-btn.move-down:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    color: #ea580c;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

/* Stare disabled pentru butoane bot */
.move-bot-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.move-bot-btn:disabled:hover {
    background: transparent !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: inherit !important;
}

/* Bot items actions positioning - identic cu monitoring */
.monitoring-bot-grid .monitoring-item-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 8px;
    right: 8px;
    flex-shrink: 0;
    z-index: 2;
}

.monitoring-bot-grid .monitoring-item:hover .monitoring-item-actions {
    opacity: 1;
}

/* Hover effect pentru bot items */
.monitoring-bot-grid .monitoring-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Tonuri și filtre dedicate pentru fiecare bot */
.monitoring-item-bot1 .bot-icon {
    --bot-color: rgba(59, 130, 246, 0.88);
    --bot-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
    --bot-opacity: 0.92;
    filter: saturate(1.15) brightness(1.06);
}

.monitoring-item-bot2 .bot-icon {
    --bot-color: rgba(251, 146, 60, 0.9);
    --bot-shadow: 0 0 14px rgba(251, 146, 60, 0.32);
    --bot-opacity: 0.9;
    filter: saturate(1.13) brightness(1.05);
}

.monitoring-item-bot3 .bot-icon {
    --bot-color: rgba(192, 2, 2, 0.93);
    --bot-shadow: 0 0 18px rgba(192, 2, 2, 0.48);
    --bot-opacity: 0.97;
    filter: saturate(1.28) brightness(1.04) contrast(1.05);
}

.monitoring-item-bot4 .bot-icon {
    --bot-color: rgba(134, 239, 172, 0.88);
    --bot-shadow: 0 0 14px rgba(134, 239, 172, 0.32);
    --bot-opacity: 0.9;
    filter: saturate(1.12) brightness(1.07);
}

/* ========================================
   ANIMAȚII PENTRU ROBOȚI ACTIVI/INACTIVI
   ======================================== */

/* ANIMAȚIE UNIVERSALĂ: Efect de undă pe border pentru toți roboții activi */
@keyframes bot-wave-pulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 0 0 var(--bot-color),
            inset 0 0 0 0 var(--bot-color);
    }
    25% {
        border-color: var(--bot-color);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 15px var(--bot-color),
            inset 0 0 10px rgba(var(--bot-color-rgb), 0.15);
    }
    50% {
        border-color: rgba(var(--bot-color-rgb), 0.6);
        box-shadow: 
            0 2px 12px rgba(0, 0, 0, 0.4),
            0 0 25px var(--bot-color),
            0 0 15px var(--bot-color),
            inset 0 0 20px rgba(var(--bot-color-rgb), 0.2);
    }
    75% {
        border-color: var(--bot-color);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 15px var(--bot-color),
            inset 0 0 10px rgba(var(--bot-color-rgb), 0.15);
    }
}

/* Bot 1 (Albastru) - Setare variabile CSS pentru culoare */
.monitoring-item-bot1 {
    --bot-color: rgba(59, 130, 246, 0.88);
    --bot-color-rgb: 59, 130, 246;
}

.monitoring-item-bot1.active {
    animation: bot-wave-pulse 3.5s ease-in-out infinite;
}

/* Bot 2 (Orange) - Setare variabile CSS pentru culoare */
.monitoring-item-bot2 {
    --bot-color: rgba(251, 146, 60, 0.9);
    --bot-color-rgb: 251, 146, 60;
}

.monitoring-item-bot2.active {
    animation: bot-wave-pulse 3.5s ease-in-out infinite 0.3s; /* delay ușor pentru varietate */
}

/* Bot 3 (Roșu) - Setare variabile CSS pentru culoare */
.monitoring-item-bot3 {
    --bot-color: rgba(192, 2, 2, 0.93);
    --bot-color-rgb: 192, 2, 2;
}

.monitoring-item-bot3.active {
    animation: bot-wave-pulse 3.5s ease-in-out infinite 0.6s; /* delay ușor pentru varietate */
}

/* Bot 4 (Verde) - Setare variabile CSS pentru culoare */
.monitoring-item-bot4 {
    --bot-color: rgba(134, 239, 172, 0.88);
    --bot-color-rgb: 134, 239, 172;
}

.monitoring-item-bot4.active {
    animation: bot-wave-pulse 3.5s ease-in-out infinite 0.9s; /* delay ușor pentru varietate */
}

/* ========================================
   STĂRI INACTIVE PENTRU TOȚI ROBOȚII
   ======================================== */

.monitoring-item-bot1.inactive .bot-icon,
.monitoring-item-bot2.inactive .bot-icon,
.monitoring-item-bot3.inactive .bot-icon,
.monitoring-item-bot4.inactive .bot-icon {
    filter: grayscale(0.8) brightness(0.6) opacity(0.5) !important;
    box-shadow: 0 0 4px rgba(100, 100, 100, 0.2) !important;
    transition: all 0.5s ease-out;
}

.monitoring-item-bot1.inactive .bot-icon::after,
.monitoring-item-bot2.inactive .bot-icon::after,
.monitoring-item-bot3.inactive .bot-icon::after,
.monitoring-item-bot4.inactive .bot-icon::after {
    opacity: 0.3 !important;
}

/* Animațiile se opresc pentru starea inactive */
.monitoring-item-bot1.inactive,
.monitoring-item-bot2.inactive,
.monitoring-item-bot3.inactive,
.monitoring-item-bot4.inactive {
    animation: none !important;
}

/* ========================================
   ANIMAȚIE PENTRU UPTIME BOT ICON - CLEPSIDRĂ
   ======================================== */

/* Stil pentru a asigura că SVG-ul se afișează corect */
.monitoring-item-uptime .monitoring-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    overflow: visible;
}

/* Responsive pentru bot items pe ecrane mici */
@media (max-width: 768px) {
    .monitoring-bot-grid .monitoring-item-actions {
        opacity: 1; /* Întotdeauna vizibile pe mobile */
        top: 6px; /* Poziție mai compactă pe mobile */
        right: 6px;
    }
    
    .monitoring-bot-grid .move-bot-btn {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .monitoring-bot-grid .monitoring-item-header {
        margin-bottom: 6px;
    }
}

/* Legacy styles pentru compatibilitate și alte carduri */
.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
}

.stat-card.primary-card::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.stat-icon {
    background: rgba(34, 197, 94, 0.15);
    border-radius: 12px;
    padding: 12px;
    color: var(--accent-color);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card.primary-card .stat-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    color: #f1f5f9;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card.primary-card .stat-value {
    font-size: 2rem;
    color: #fbbf24;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.stat-change.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.stat-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.stat-description {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Charts Section */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-header h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.chart-header i {
    color: var(--accent-color);
}

.chart-controls {
    display: flex;
    gap: 10px;
}

.time-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.chart-body {
    position: relative;
}

.chart-body canvas {
    width: 100% !important;
    height: 250px !important;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Activity Section - Uniformizat cu Stats Card */
.dashboard-activity {
    position: relative; /* Forțează stacking context propriu */
    z-index: 2; /* Asigură că activity este deasupra stats (dar fără suprapunere) */
    margin-top: 0; /* FORȚEAZĂ margin-top la 0 - elimină orice margin negativ */
    margin-bottom: 30px;
    clear: both; /* Forțează clear float */
    min-width: 300px; /* Lățime minimă pentru lizibilitate */
    max-width: none; /* Fără restricție de lățime maximă */
    min-height: 400px; /* Înălțime minimă pentru conținut */
    max-height: 800px; /* Înălțime maximă pentru scroll */
}

.activity-card {
    background: #22577a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* Eliminat margin - cardul trebuie să ocupe tot spațiul */
    height: 100%; /* Ocupă toată înălțimea containerului */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activity-card:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
    transform: translateY(-2px);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px; /* Redus pentru a se potrivi cu stats */
    padding-bottom: 10px; /* Redus pentru uniformitate */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.activity-header h3 {
    color: #60a5fa; /* Culoare diferită pentru diferențiere */
    font-size: 0.85rem; /* Redus cu ~50% pentru consistență */
    font-weight: 700; /* Mărit pentru contrast */
    display: flex;
    align-items: center;
    gap: 6px; /* Redus pentru compactare */
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Contrast îmbunătățit */
}

.activity-controls {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.activity-filter-btn,
.activity-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 11px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-filter-btn:hover,
.activity-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.activity-filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-light);
}

.activity-clear-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.activity-clear-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

.activity-header i {
    color: #60a5fa;
    font-size: 0.8rem; /* Redus proporțional */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.view-all-link {
    color: #60a5fa; /* Schimbat pentru consistență cu header-ul */
    text-decoration: none;
    font-size: 0.5rem; /* Redus cu ~50% de la 0.85rem */
    font-weight: 700; /* Mărit pentru contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Contrast îmbunătățit */
}

.view-all-link:hover {
    text-decoration: underline;
    color: #93c5fd; /* Schimbat culoarea hover pentru contrast */
}

.activity-list {
    max-height: 600px; /* Înălțime mărită pentru mai multe mesaje */
    overflow-y: auto; /* Scroll vertical când depășește */
    flex-grow: 1; /* Ocupă spațiul rămas în card */
    padding-right: 6px; /* Spațiu redus pentru scrollbar */
}

/* Stilizare pentru scrollbar în activity-list */
.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

.activity-item {
    display: grid;
    grid-template-columns: 120px 28px 1fr;
    gap: 6px;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: slideInActivity 0.5s ease-out;
}

@keyframes slideInActivity {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: transparent;  /* Fundal 100% transparent - se vede doar culoarea textului */
    margin: 0 -12px;
    padding: 4px 12px;
    border-radius: 8px;
    transform: translateX(3px);
}

.activity-item:hover .activity-message {
    font-weight: 600;
}

.activity-item:hover .activity-timestamp {
    color: #94a3b8;
}

/* Hover effects specifice pentru fiecare tip - DOAR BORDER, FUNDAL 100% TRANSPARENT */
.activity-item.success:hover {
    background: transparent;  /* Fundal 100% transparent */
    border-left: 3px solid #4ade80;
}

.activity-item.error:hover {
    background: transparent;  /* Fundal 100% transparent */
    border-left: 3px solid #f87171;
}

.activity-item.warning:hover {
    background: transparent;  /* Fundal 100% transparent */
    border-left: 3px solid #fbbf24;
}

.activity-item.info:hover {
    background: transparent;  /* Fundal 100% transparent */
    border-left: 3px solid #60a5fa;
}

.activity-item.connecting:hover {
    background: transparent;  /* Fundal 100% transparent */
    border-left: 3px solid #c084fc;
}

.activity-timestamp {
    color: #64748b;
    font-size: 0.55rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: left;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.activity-timestamp div:first-child {
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.3s ease;
}

.activity-timestamp div:last-child {
    color: #64748b;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Timestamp hover effects */
.activity-item:hover .activity-timestamp div:first-child {
    color: #cbd5e1;
}

.activity-item:hover .activity-timestamp div:last-child {
    color: #94a3b8;
}

.activity-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.activity-icon:hover {
    transform: scale(1.1);
}

.activity-message {
    color: #e2e8f0;
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Culori specifice pentru mesaje după tip - Specificitate maximă */
.activity-list .activity-item.activity-success .activity-message {
    color: var(--success-color) !important;
    text-shadow: 0 0 4px rgba(34, 197, 94, 0.3);
}

/* Backup cu mai multă specificitate */
.activity-card .activity-list .activity-item.activity-success .activity-message {
    color: var(--success-color) !important;
    text-shadow: 0 0 4px rgba(34, 197, 94, 0.3);
}

.activity-item.error .activity-message {
    color: var(--danger-color) !important;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
    animation: text-error-flash 3s infinite;
}

/* Specificitate maximă pentru ERROR mesaje */
.activity-list .activity-item.activity-error .activity-message {
    color: var(--danger-color) !important;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
    animation: text-error-flash 3s infinite;
}

/* Backup cu mai multă specificitate pentru ERROR mesaje */
.activity-card .activity-list .activity-item.activity-error .activity-message {
    color: var(--danger-color) !important;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

.activity-item.warning .activity-message {
    color: var(--warning-color) !important;
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
}

/* Specificitate maximă pentru WARNING mesaje */
.activity-list .activity-item.activity-warning .activity-message {
    color: var(--warning-color) !important;
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
}

/* Backup cu mai multă specificitate pentru WARNING mesaje */
.activity-card .activity-list .activity-item.activity-warning .activity-message {
    color: var(--warning-color) !important;
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
}

.activity-item.info .activity-message {
    color: var(--info-color) !important;
    text-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Specificitate maximă pentru INFO mesaje */
.activity-list .activity-item.activity-info .activity-message {
    color: var(--info-color) !important;
    text-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Backup cu mai multă specificitate pentru INFO mesaje */
.activity-card .activity-list .activity-item.activity-info .activity-message {
    color: var(--info-color) !important;
    text-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

.activity-item.connecting .activity-message {
    color: #d8b4fe !important;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.3);
    animation: text-connecting-pulse 1.5s infinite;
}

/* Specificitate maximă pentru CONNECTING mesaje */
.activity-list .activity-item.activity-connecting .activity-message {
    color: #d8b4fe !important;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.3);
    animation: text-connecting-pulse 1.5s infinite;
}

/* Backup cu mai multă specificitate pentru CONNECTING mesaje */
.activity-card .activity-list .activity-item.activity-connecting .activity-message {
    color: #d8b4fe !important;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.3);
}

/* Animații pentru text */
@keyframes text-error-flash {
    0%, 90%, 100% { 
        text-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
    }
    5%, 15% { 
        text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    }
}

@keyframes text-connecting-pulse {
    0%, 100% { 
        text-shadow: 0 0 4px rgba(168, 85, 247, 0.3);
    }
    50% { 
        text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
    }
}

.activity-empty {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 20px;
    font-size: 0.75rem;
}

/* Activity item types cu culori semantice - Specificitate maximă */
.activity-list .activity-item.activity-success .activity-icon {
    background: rgba(34, 197, 94, 0.3) !important;
    color: var(--success-color) !important;
    border: 1px solid rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3) !important;
    animation: pulse-success 2s infinite;
}

/* Backup cu mai multă specificitate */
.activity-card .activity-list .activity-item.activity-success .activity-icon {
    background: rgba(34, 197, 94, 0.3) !important;
    color: var(--success-color) !important;
    border: 1px solid rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3) !important;
}

@keyframes pulse-success {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
    }
    50% { 
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    }
}

.activity-item.error .activity-icon {
    background: rgba(239, 68, 68, 0.3) !important;
    color: var(--danger-color) !important;
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse-error 3s infinite;
}

/* Specificitate maximă pentru ERROR */
.activity-list .activity-item.activity-error .activity-icon {
    background: rgba(239, 68, 68, 0.3) !important;
    color: var(--danger-color) !important;
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse-error 3s infinite;
}

/* Backup cu mai multă specificitate pentru ERROR */
.activity-card .activity-list .activity-item.activity-error .activity-icon {
    background: rgba(239, 68, 68, 0.3) !important;
    color: var(--danger-color) !important;
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
}

@keyframes pulse-error {
    0%, 90%, 100% { 
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    }
    5%, 15% { 
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
    }
}

.activity-item.warning .activity-icon {
    background: rgba(245, 158, 11, 0.3) !important;
    color: var(--warning-color) !important;
    border: 1px solid rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

/* Specificitate maximă pentru WARNING */
.activity-list .activity-item.activity-warning .activity-icon {
    background: rgba(245, 158, 11, 0.3) !important;
    color: var(--warning-color) !important;
    border: 1px solid rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

/* Backup cu mai multă specificitate pentru WARNING */
.activity-card .activity-list .activity-item.activity-warning .activity-icon {
    background: rgba(245, 158, 11, 0.3) !important;
    color: var(--warning-color) !important;
    border: 1px solid rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

.activity-item.info .activity-icon {
    background: rgba(59, 130, 246, 0.3) !important;
    color: var(--info-color) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

/* Specificitate maximă pentru INFO */
.activity-list .activity-item.activity-info .activity-icon {
    background: rgba(59, 130, 246, 0.3) !important;
    color: var(--info-color) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

/* Backup cu mai multă specificitate pentru INFO */
.activity-card .activity-list .activity-item.activity-info .activity-icon {
    background: rgba(59, 130, 246, 0.3) !important;
    color: var(--info-color) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

.activity-item.connecting .activity-icon {
    background: rgba(168, 85, 247, 0.3) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3) !important;
    animation: pulse-connecting 1.5s infinite;
}

/* Specificitate maximă pentru CONNECTING */
.activity-list .activity-item.activity-connecting .activity-icon {
    background: rgba(168, 85, 247, 0.3) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3) !important;
    animation: pulse-connecting 1.5s infinite;
}

/* Backup cu mai multă specificitate pentru CONNECTING */
.activity-card .activity-list .activity-item.activity-connecting .activity-icon {
    background: rgba(168, 85, 247, 0.3) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3) !important;
}

@keyframes pulse-connecting {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
        transform: scale(1.05);
    }
}

.activity-icon.sell {
    background: rgba(239, 68, 68, 0.2); /* Mărit opacitatea pentru contrast */
    color: #fef2f2; /* Roșu foarte deschis pentru contrast */
    border: 1px solid rgba(239, 68, 68, 0.4); /* Border mai vizibil */
}

.activity-details {
    flex: 1;
    min-width: 0; /* Pentru text truncation */
}

.activity-main {
    display: flex;
    align-items: center;
    gap: 6px; /* Redus pentru compactare */
    margin-bottom: 2px; /* Redus pentru compactare */
}

.activity-type {
    background: rgba(255, 255, 255, 0.15); /* Mărit opacitatea pentru contrast */
    color: #ffffff; /* Alb pur pentru contrast maxim */
    font-size: 0.45rem; /* Redus cu ~50% de la 0.7rem */
    font-weight: 700; /* Mărit pentru contrast */
    padding: 1px 4px; /* Redus pentru compactare */
    border-radius: 3px; /* Redus pentru compactare */
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Shadow pentru contrast */
}

.activity-symbol {
    color: #60a5fa; /* Schimbat pentru consistență cu theme-ul */
    font-weight: 700; /* Mărit pentru contrast */
    font-size: 0.55rem; /* Redus cu ~50% de la 0.9rem */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Shadow pentru contrast */
}

.activity-amount {
    color: #e2e8f0; /* Îmbunătățit pentru contrast */
    font-size: 0.5rem; /* Redus cu ~50% de la 0.85rem */
    font-weight: 600; /* Mărit pentru contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Shadow pentru contrast */
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 8px; /* Redus pentru compactare */
}

.activity-price {
    color: #cbd5e1; /* Îmbunătățit pentru contrast */
    font-size: 0.5rem; /* Redus cu ~50% de la 0.8rem */
    font-weight: 600; /* Mărit pentru contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Shadow pentru contrast */
}

.activity-time {
    color: #94a3b8; /* Îmbunătățit pentru contrast */
    font-size: 0.45rem; /* Redus cu ~50% de la 0.75rem */
    font-weight: 600; /* Mărit pentru contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Shadow pentru contrast */
}

.activity-status {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.activity-status.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.activity-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    animation: pulse 2s infinite;
}

.empty-activity {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-activity i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Legacy styles pentru compatibilitate */
.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--surface-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.metric-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container canvas {
    width: 100%;
    height: 300px;
}

.table-container {
    overflow-x: auto;
    background: var(--surface-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--background-color);
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}

#total-pnl {
    font-size: 2rem;
    font-weight: 700;
}

#pnl-percentage {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}

#active-trades {
    color: var(--primary-color);
}

/* Module Controls */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ✅ .module-controls ELIMINAT - nu mai este folosit */

/* Stilizare pentru butoanele din secțiuni */
.section-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.section-controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Butoane mai mici pentru secțiuni */
.section-controls .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-primary i {
    font-size: 0.875rem;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.nav-link:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    font-weight: 500;
}

.nav-link i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 0.8rem;
    overflow-y: auto;
}

/* Modules */
.module {
    display: none;
}

.module.active {
    display: block;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.module-header h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ✅ .module-controls ELIMINAT (duplicate) - nu mai este folosit */

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bot Status */
.bot-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    width: 100%;
}

.status-badge.running {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.stopped {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-badge.online {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.offline {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Connection Info */
.connection-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Profit Display */
.profit-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pnl-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pnl-percentage {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pnl-amount.positive {
    color: var(--success-color);
}

.pnl-amount.negative {
    color: var(--danger-color);
}

/* Trades Count */
.trades-count {
    text-align: center;
}

.trades-count span:first-child {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.trades-count small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    width: 100%;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
   background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Logs Section */
.logs-section {
    margin-top: 2rem;
}

.logs-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.logs-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.log-entry {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry .timestamp {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
}

.log-entry .message {
    color: var(--text-primary);
}

/* Coming Soon */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.coming-soon i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.coming-soon p {
    font-size: 1.125rem;
}

/* Settings Module */
.settings-content {
    max-width: 800px;
    margin: 0 auto;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.settings-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
}

/* Toggle password styles moved to settings.css to avoid conflicts */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 0.15rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

#test-api {
    margin-top: 1rem;
}

/* API Key Management System - Enhanced Settings */
.api-config-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /*padding: 20px;*/
    max-width: 1000px;
    margin: 0 auto;
}

.api-keys-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.api-keys-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(16, 185, 129, 0.1);
}

.section-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: #10b981;
}

.key-expiration {
    font-size: 12px;
    font-weight: 500;
}

.expiration-info {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.expiration-info.valid {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.expiration-info.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.expiration-info.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.key-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .key-inputs-grid {
        grid-template-columns: 1fr;
    }
}

.key-inputs-grid .form-group:last-child {
    grid-column: 1 / -1;
}

.rotation-controls,
.trading-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: start;
}

.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.inline-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #374151;
}

.inline-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.backup-info {
    grid-column: 1 / -1;
    padding: 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.backup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .backup-actions {
        grid-template-columns: 1fr;
    }
}

.backup-section h4 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.backup-section h4 i {
    color: #3b82f6;
}

.backup-info p {
    margin: 0;
    color: #374151;
    font-size: 13px;
}

.backup-info i {
    color: #3b82f6;
    margin-right: 4px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-content i {
    font-size: 18px;
    margin-right: 8px;
}

.alert-content strong {
    font-size: 16px;
    margin-bottom: 4px;
}

.alert-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Primary vs Secondary Visual Distinction */
.primary-keys {
    border-left: 4px solid #10b981;
}

.secondary-keys {
    border-left: 4px solid #3b82f6;
}

.rotation-settings {
    border-left: 4px solid #f59e0b;
}

.trading-settings {
    border-left: 4px solid #8b5cf6;
}

/* Enhanced Form Styling pentru API Keys */
.api-keys-section .form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.api-keys-section .input-group {
    display: flex;
    align-items: center;
}

.api-keys-section input[type="text"],
.api-keys-section input[type="password"],
.api-keys-section input[type="date"],
.api-keys-section select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.api-keys-section .input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.api-keys-section input:focus,
.api-keys-section select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* API Keys section toggle password styles removed to use global settings.css styles */

/* Account Info Display */
.account-info-section {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-info-section label {
    font-weight: 600;
    color: #059669;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.account-info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* Full width items pentru informații importante */
.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.info-value.status-success {
    color: #059669;
}

.info-value.status-warning {
    color: #d97706;
}

.info-value.status-error {
    color: #dc2626;
}

.info-value.status-unavailable {
    color: #94a3b8;
    font-style: italic;
}

.info-value.status-reset {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    background: #dc2626;
    color: #fff !important;
    box-shadow: 0 1px 4px 0 rgba(220, 38, 38, 0.12);
    transition: background 0.2s;
}

.info-value.status-reset::before {
    content: '\25CF'; /* Cerc roșu */
    color: #fff;
    font-size: 1em;
    margin-right: 5px;
}

.account-info-compact .info-value.status-reset {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    background: #dc2626;
    color: #fff !important;
    box-shadow: 0 1px 4px 0 rgba(220, 38, 38, 0.12);
    transition: background 0.2s;
}

.account-info-compact .info-value.status-reset::before {
    content: '\25CF'; /* Cerc roșu */
    color: #fff;
    font-size: 1em;
    margin-right: 5px;
}

/* Secondary account info styling */
#secondary-account-info {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

#secondary-account-info label {
    color: #2563eb;
}

#secondary-account-info .info-item {
    border-color: rgba(59, 130, 246, 0.1);
}

/* Responsive design pentru account info */
@media (max-width: 768px) {
    .account-info-display {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-value {
        text-align: left;
        max-width: 100%;
    }
}

/* Highlight pentru informații importante */
.info-item.full-width .info-value {
    font-weight: 700;
    color: #059669;
}

#secondary-account-info .info-item.full-width .info-value {
    color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content-area {
        order: 1;
        padding: 1rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .module-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Dashboard Responsive Design */
@media (min-width: 1600px) {
    /* Pe ecrane ultra mari, optimizăm layout-ul */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Coloane și mai mari */
        gap: 25px;
    }
}

@media (min-width: 1400px) {
    /* Pe ecrane foarte mari, permitem mai mult spațiu între secțiuni */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Coloane mai mari */
        gap: 20px;
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    /* Pe ecrane medium, păstrăm layout vertical flex - fără restricții de lățime */
}

@media (max-width: 1024px) {
    .dashboard-cards-container {
        gap: 10px; /* Consistent cu gap-ul principal */
    }
    
    .dashboard-stats,
    .dashboard-activity {
        width: 100%; /* Lățime completă când sunt stacked */
        min-width: unset; /* Elimină restricția de lățime minimă */
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .monitoring-grid,
    .monitoring-bot-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Redus pentru compactare */
        gap: 12px; /* Redus pentru compactare */
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 12px; /* Redus pentru compactare */
    }
    
    .dashboard-cards-container {
        gap: 10px; /* Consistent cu gap-ul principal */
    }
    
    .stats-summary-card,
    .activity-card,
    .monitoring-card {
        padding: 15px; /* Redus pentru compactare */
        min-height: 250px; /* Înălțime minimă mai mică pe mobile */
        max-height: 300px; /* Redus și pe mobile: de la 350px la 300px pentru stats și monitoring */
    }
    
    .activity-list {
        max-height: 300px; /* Mai mic pe mobile */
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stats-summary-header h3 {
        font-size: 1.1rem;
    }
    
    .chart-card,
    .activity-card {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* Dashboard Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.stat-card,
.chart-card,
.activity-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animații pentru Monitorizare Conexiuni */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); /* 9px = 30% din 30px (mărimea iconului) */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ==================================================
   ELEMENTE INTERACTIVE - TOAST NOTIFICATIONS
   ================================================== */

/* Container principal pentru notificări toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none; /* Permite click-urile prin container */
}

/* Stilul pentru fiecare notificare toast */
.toast {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 12px;
    padding: 16px 20px;
    border-left: 4px solid var(--primary-color);
    pointer-events: auto; /* Reactivează click-urile pentru toast-uri individuale */
    transform: translateX(400px); /* Poziția inițială (în afara ecranului) */
    opacity: 0;
    transition: all var(--transition-normal);
    max-width: 100%;
    word-wrap: break-word;
}

/* Animația de apariție pentru toast */
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Tipuri de toast-uri cu culori diferite */
.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--primary-color);
}

/* Header-ul toast-ului cu iconul și titlul */
.toast-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon.success {
    color: var(--success-color);
}

.toast-icon.error {
    color: var(--danger-color);
}

.toast-icon.warning {
    color: var(--warning-color);
}

.toast-icon.info {
    color: var(--primary-color);
}

/* Titlul toast-ului */
.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
}

/* Butonul de închidere al toast-ului */
.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Mesajul toast-ului */
.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Bara de progres pentru auto-dismiss */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
    border-radius: 0 0 12px 12px;
    transition: width linear;
}

/* ==================================================
   DARK/LIGHT MODE TOGGLE
   ================================================== */

/* ==================================================
   DARK/LIGHT/CUSTOM MODE TOGGLE (3 POZIȚII)
   ================================================== */

/* Container pentru toggle-ul cu 3 opțiuni */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
    gap: 8px;
}

/* Butonul principal pentru deschiderea selectorului */
.theme-selector-btn {
    position: relative;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.theme-selector-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Iconul temei active */
.theme-current-icon {
    font-size: 14px;
    transition: var(--transition-fast);
}

/* Textul temei active */
.theme-current-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Săgeata pentru dropdown */
.theme-dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.theme-selector-btn.open .theme-dropdown-arrow {
    transform: rotate(180deg);
}

/* ==================================================
   DROPDOWN PENTRU SELECȚIA TEMEI
   ================================================== */

/* Container-ul dropdown pentru opțiuni */
.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all var(--transition-normal);
}

.theme-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Opțiunile din dropdown */
.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-radius: 8px;
    margin: 4px;
}

.theme-option:hover {
    background-color: var(--surface-hover);
}

.theme-option.active {
    background-color: var(--primary-color);
    color: white;
}

.theme-option.active .theme-option-text {
    color: white;
}

/* Iconul opțiunii */
.theme-option-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Textul opțiunii */
.theme-option-content {
    flex: 1;
}

.theme-option-text {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
}

.theme-option-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==================================================
   CUSTOM COLOR PICKER (FEREASTRĂ COMPACTĂ)
   ================================================== */

/* Overlay pentru color picker */
.color-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.color-picker-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Fereastra adaptabilă pentru color picker */
.color-picker-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    width: 900px; /* Lățime optimă pentru layout simplu */
    max-width: 95vw; /* Adaptabil pe orizontală */
    height: auto; /* Înălțime automată bazată pe conținut */
    min-height: 300px; /* Înălțime minimă pentru funcționalitate */
    max-height: 85vh; /* Maximum 85% din înălțimea ecranului */
    overflow: hidden;
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.color-picker-overlay.open .color-picker-window {
    transform: translate(-50%, -50%) scale(1);
}

/* Header-ul color picker-ului */
.color-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-secondary);
    flex-shrink: 0; /* Header-ul nu se comprimă */
}

.color-picker-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    flex: 1;
}

/* Butonul de închidere stilizat */
.color-picker-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.color-picker-close:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.color-picker-close:active {
    transform: scale(0.95);
}

/* Conținutul color picker-ului - Lista simplă unificată */
.color-picker-content {
    padding: 12px; /* Adăugat padding pentru conținut */
    flex: 1; /* Ocupă tot spațiul rămas din window */
    overflow-y: auto; /* Scroll vertical pentru lista lungă */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Permite flex să funcționeze corect */
    height: 100%; /* Forțează înălțimea completă */
    width: 100%; /* Ocupă toată lățimea disponibilă din window */
    min-width: 0; /* Permite redimensionarea corectă */
    background: #f8fafc; /* Background ușor pentru contrast */
}

/* Grid pentru secțiuni compacte */
.color-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Secțiuni de culori compacte */
.color-section {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.color-section-title {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-section-title i {
    width: 14px;
    text-align: center;
    color: var(--primary-color);
}

/* Items de culori compacte */
.color-items-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.color-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.color-item-compact:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Label-uri compacte */
.color-label-small {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* Input-uri pentru culori compacte */
.color-input-small {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    background: none;
}

.color-input-small:hover {
    border-color: var(--primary-color);
}

/* Preset-uri compacte */
.color-presets-compact {
    margin-top: 16px;
}

.presets-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.preset-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--surface-color);
    text-align: center;
}

.preset-item-compact:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Tema selectată */
.preset-item-compact.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.preset-item-compact.selected .preset-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.preset-item-compact.selected .preset-name-small {
    color: white;
    font-weight: 600;
}

/* Stiluri speciale pentru tema Random */
.preset-item-compact[data-preset="tema-5"] {
    position: relative;
    overflow: hidden;
}

.preset-item-compact[data-preset="tema-5"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: -1;
    animation: rainbowBorder 3s ease infinite;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.preset-item-compact[data-preset="tema-5"]:hover::before {
    opacity: 1;
}

.preset-item-compact[data-preset="tema-5"].selected::before {
    opacity: 1;
}

/* Animație pentru culorile random */
.random-color-1, .random-color-2, .random-color-3, .random-color-4 {
    animation: colorShift 2s ease-in-out infinite;
}

.random-color-2 { animation-delay: 0.5s; }
.random-color-3 { animation-delay: 1s; }
.random-color-4 { animation-delay: 1.5s; }

@keyframes rainbowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes colorShift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

.preset-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    /*background: var(--primary-color);*/
    color: white;
    font-size: 12px;
}

.preset-name-small {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.preset-colors-small {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.preset-color-small {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* Footer-ul color picker-ului */
.color-picker-footer {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--background-secondary);
    flex-shrink: 0; /* Footer-ul nu se comprimă */
}

/* Butoanele din footer */
.color-picker-btn {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-picker-btn:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.color-picker-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.color-picker-btn.primary:hover {
    background: var(--primary-dark);
}

.color-picker-btn.active {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* ==================================================
   STRUCTURĂ SIMPLĂ PENTRU COLOR PICKER - LISTĂ UNIFICATĂ
   ================================================== */

/* Container principal pentru toate culorile - Layout simplu vertical */
.color-items-container {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Spațiu mic între elemente */
    width: 100%; /* Ocupă toată lățimea disponibilă */
    box-sizing: border-box; /* Include padding-ul în dimensiuni */
}

/* Header simplu pentru grupuri de culori (opțional) */
.color-group-header {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    padding: 8px 12px; /* Padding moderat pentru vizibilitate */
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 11px;
    color: #1e293b;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Eliminăm stilurile pentru categorii separate - folosim structura simplificată */

/* Lista simplificată de elemente de culoare - direct în container */
.color-items-simple {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Spațiu mic între elemente */
    width: 100%; /* Ocupă toată lățimea disponibilă */
    box-sizing: border-box; /* Include padding-ul în dimensiuni */
}

/* Indicator de scroll pentru liste lungi */
.color-items-list::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(180deg, rgba(118, 101, 179, 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-items-list:hover::before {
    opacity: 1;
}

/* Shadow pentru scroll */
.color-items-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(0deg, rgba(118, 101, 179, 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-items-list:hover::after {
    opacity: 1;
}

/* Element de culoare ultra-compact */
.color-item-detailed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px; /* Ultra-compact - redus de la 10px 12px */
    margin-bottom: 2px; /* Redus de la 6px la 2px */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px; /* Redus pentru compactare */
    transition: all 0.2s ease;
}

.color-item-detailed:hover {
    border-color: #7665B3;
    box-shadow: 0 2px 8px rgba(118, 101, 179, 0.1);
    transform: translateX(2px);
}

.color-item-detailed:last-child {
    margin-bottom: 0;
}

/* Informațiile elementului de culoare */
.color-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.color-item-name {
    font-size: 9px; /* Ultra-mic - redus de la 12px la 9px */
    font-weight: 700; /* Mărit pentru lizibilitate */
    color: #1e293b;
    margin-bottom: 1px; /* Redus pentru compactare */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Pentru contrast */
}

.color-item-desc {
    font-size: 7px; /* Ultra-mic - redus de la 10px la 7px */
    color: #64748b;
    line-height: 1.2; /* Redus pentru compactare */
    font-weight: 600; /* Mărit pentru lizibilitate */
}

/* Controale ultra-compacte de culoare */
.color-controls {
    display: flex;
    align-items: center;
    gap: 4px; /* Redus de la 6px la 4px */
    flex-wrap: wrap; /* Permite wrapping pentru etichete */
}

.color-control-label {
    font-size: 8px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    margin: 0 2px;
}

.color-input {
    width: 20px; /* Ultra-compact - redus de la 32px la 20px */
    height: 20px; /* Ultra-compact - redus de la 32px la 20px */
    border: 1px solid #e5e7eb; /* Redus border pentru compactare */
    border-radius: 4px; /* Redus pentru compactare */
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-input:hover {
    border-color: #7665B3;
    transform: scale(1.1); /* Ușor mărit pentru feedback vizual */
}

.color-reset-btn {
    width: 20px; /* Ușor mărit pentru a vedea mai bine culoarea */
    height: 20px; /* Ușor mărit pentru a vedea mai bine culoarea */
    border: 2px solid #d1d5db;
    border-radius: 4px; /* Ușor mărit pentru estetică */
    background: white; /* Default background - va fi suprascris cu culoarea default */
    color: transparent; /* Fără text vizibil */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.color-reset-btn:hover {
    border-color: #7665B3;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(118, 101, 179, 0.3);
}

/* Iconul de reset - se adaptează la culoarea de fundal */
.color-reset-btn i {
    position: absolute;
    font-size: 8px;
    z-index: 2;
    transition: all 0.2s ease;
    /* Culoarea va fi setată dinamic în JavaScript bazată pe luminozitatea fundalului */
}

/* Pentru fundal deschis - icon întunecat */
.color-reset-btn.light-bg i {
    color: #374151;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.color-reset-btn.light-bg:hover i {
    color: #111827;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 1);
}

/* Pentru fundal întunecat - icon deschis */
.color-reset-btn.dark-bg i {
    color: #f9fafb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.color-reset-btn.dark-bg:hover i {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Stilul pentru afișarea culorii default în butonul de reset */
.color-reset-btn[style*="background-color"] {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.color-reset-btn[style*="background-color"]:hover {
    border-color: #7665B3 !important;
    box-shadow: 0 0 0 2px rgba(118, 101, 179, 0.2) !important;
}

/* Scrollbar personalizat pentru conținutul principal */
.color-picker-content::-webkit-scrollbar {
    width: 8px;
}

.color-picker-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
    margin: 2px;
}

.color-picker-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.color-picker-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

/* Eliminăm scrollbar-ul pentru liste individuale - folosim doar cel principal */

/* Scrollbar corner */
.color-items-list::-webkit-scrollbar-corner {
    background: #f8fafc;
}

/* Responsivitate adaptabilă pentru toate ecranele */
@media (max-width: 768px) {
    .color-picker-window {
        width: 95vw; /* Pe mobile, ocupă aproape tot ecranul pe orizontală */
        max-width: 95vw; /* Limită pentru ecrane foarte mici */
        height: auto; /* Înălțime automată pe mobile */
        min-height: 400px; /* Înălțime minimă pe mobile */
        max-height: 90vh; /* Maximum 90% din înălțimea ecranului pe mobile */
    }
    
    .color-items-simple {
        gap: 4px; /* Spațiu ușor mai mare pe mobile */
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .color-picker-window {
        width: 700px; /* Lățime adaptată pentru tablete */
        max-width: 90vw; /* Adaptabil pe orizontală pe tablete */
        height: auto; /* Înălțime automată pe tablete */
        min-height: 350px; /* Înălțime minimă pe tablete */
        max-height: 85vh; /* Maximum 85% din înălțimea ecranului pe tablete */
    }
}

/* Responsivitate bazată pe înălțimea ecranului */
@media (max-height: 600px) {
    .color-picker-window {
        max-height: 95vh; /* Folosește aproape toată înălțimea pe ecrane joase */
        min-height: 250px; /* Înălțime minimă redusă pe ecrane joase */
    }
}

@media (min-height: 900px) {
    .color-picker-window {
        max-height: 75vh; /* Folosește mai puțin spațiu pe ecrane foarte înalte */
        min-height: 400px; /* Înălțime minimă mai mare pe ecrane înalte */
    }
}

/* ==================================================
   VARIABILE PENTRU DARK MODE
   ================================================== */

/* Tema întunecată - se aplică când body are clasa 'dark-theme' */
body.dark-theme {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #94a3b8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #0f172a;
    --background-secondary: #1e293b;
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-hover: #475569;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Tema personalizată - se aplică când utilizatorul alege culori custom */
body.custom-theme {
    /* Culorile vor fi setate dinamic prin JavaScript folosind CSS custom properties */
    --transition-custom: var(--transition-normal);
}

/* ==================================================
   DRAG & DROP PENTRU CARDURI
   ================================================== */

/* Container care permite drag & drop */
.draggable-container {
    position: relative;
}

/* Stilul pentru cardurile care pot fi mutate */
.draggable-card {
    cursor: move;
    transition: all var(--transition-normal);
    position: relative;
}

/* Starea când cardul este tras */
.draggable-card.dragging {
    opacity: 0.6;
    transform: rotate(5deg) scale(0.95);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

/* Zona de drop activă */
.drop-zone {
    min-height: 60px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    opacity: 0;
    transform: scaleY(0);
}

/* Zona de drop când este activă */
.drop-zone.active {
    opacity: 1;
    transform: scaleY(1);
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

/* Textul din zona de drop */
.drop-zone-text {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.drop-zone.active .drop-zone-text {
    color: var(--primary-color);
}

/* Handlerul pentru drag (iconițe cu puncte) - Poziționat în dreapta sus, sub butonul collapse */
.drag-handle {
    position: absolute;
    top: 6px; /* Foarte aproape de marginea de sus */
    right: 6px; /* Foarte aproape de marginea din dreapta */
    cursor: move;
    opacity: 0.7;
    transition: all var(--transition-fast);
    background: transparent; /* Fundal complet transparent */
    padding: 0;
    border-radius: 3px;
    border: none; /* Fără border */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: #ffffff; /* Alb pentru pictogramă */
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Umbră pentru contrast */
}

/* CSS pentru handle-urile de test - poziționat în dreapta sus, sub butonul collapse */
.test-handle {
    position: absolute;
    top: 50px; /* Sub butonul de collapse */
    right: 10px; /* În dreapta */
    width: 30px;
    height: 30px;
    background: red !important;
    border: 2px solid black !important;
    cursor: move;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* Pictogramă move cu 4 săgeți pentru drag handle */
.drag-handle::before {
    content: ''; /* Gol - pictograma vine din JavaScript innerHTML */
    color: #ffffff; /* Alb pentru pictogramă */
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Umbră pentru contrast */
}

.test-handle::before {
    content: '≡';
    font-size: 18px;
}

.draggable-card:hover .drag-handle {
    opacity: 1;
    color: #60a5fa; /* Albastru deschis la hover */
    background: transparent; /* Păstrează fundalul transparent */
    border: none; /* Fără border */
}

.drag-handle:hover {
    opacity: 1 !important;
    color: #60a5fa !important; /* Albastru deschis la hover */
    background: transparent !important; /* Păstrează fundalul transparent */
    transform: scale(1.2); /* Mărește puțin pictograma */
}

/* Asigură că pictograma devine albastră la hover - doar din JavaScript */
.drag-handle:hover::before,
.draggable-card:hover .drag-handle::before {
    content: ''; /* Păstrează gol - pictograma vine din JavaScript */
    color: #60a5fa; /* Albastru deschis pentru pictogramă la hover */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); /* Umbră mai puternică la hover */
}

/* Stilizări îmbunătățite pentru drop zones */
.drop-zone {
    height: 6px;
    margin: 8px 0;
    border: 2px dashed transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.drop-zone.drop-zone-active {
    opacity: 1;
    border-color: var(--primary-color);
    background: rgba(96, 165, 250, 0.1);
    height: 40px;
    margin: 16px 0;
}

.drop-indicator {
    font-size: 12px;
    color: var(--primary-color);
    background: var(--surface-color);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-zone-active .drop-indicator {
    opacity: 1;
}

/* Animații pentru cardul care se mută */
.draggable-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: grabbing;
}

/* Container pentru drag & drop */
.draggable-container {
    position: relative;
    min-height: 200px;
}

/* Styling pentru cardurile draggable */
.draggable-card {
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
}

.draggable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================================================
   SOUND INDICATOR
   ================================================== */

/* Indicatorul pentru alertele sonore */
.sound-indicator {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(300px);
    opacity: 0;
    transition: all var(--transition-normal);
}

/* Starea activă pentru indicatorul sonor */
.sound-indicator.active {
    transform: translateX(0);
    opacity: 1;
}

/* Iconul pentru sunet */
.sound-icon {
    color: var(--warning-color);
    animation: soundWave 1s ease-in-out infinite;
}

/* Textul pentru indicatorul sonor */
.sound-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Animația pentru undele sonore */
@keyframes soundWave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ==================================================
   RESPONSIVE DESIGN PENTRU ELEMENTE INTERACTIVE
   ================================================== */

/* Adaptarea pentru ecrane mai mici */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
    }
    
    .theme-toggle {
        width: 48px;
        height: 24px;
        margin-left: 12px;
    }
    
    .theme-slider:before {
        height: 16px;
        width: 16px;
    }
    
    .theme-slider.active:before {
        transform: translateX(24px);
    }
    
    .sound-indicator {
        top: 80px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }
}

/* ===== STILIZARE PENTRU CLASELE REDENUMITE DRAG & DROP ===== */

/* Stilizare pentru cardurile monitoring redenumite - IDENTICĂ cu monitoring-item */
.monitoring-item-api,
.monitoring-item-websocket,
.monitoring-item-uptime,
.monitoring-item-ratelimit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.monitoring-item-api:hover,
.monitoring-item-websocket:hover,
.monitoring-item-uptime:hover,
.monitoring-item-ratelimit:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.monitoring-item-api .monitoring-icon,
.monitoring-item-websocket .monitoring-icon,
.monitoring-item-uptime .monitoring-icon,
.monitoring-item-ratelimit .monitoring-icon {
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    padding: 6px;
    color: #10b981;
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.monitoring-item-api .monitoring-content,
.monitoring-item-websocket .monitoring-content,
.monitoring-item-uptime .monitoring-content,
.monitoring-item-ratelimit .monitoring-content {
    flex: 1;
    min-width: 0;
}

/* Stilizare pentru cardurile statistici redenumite - IDENTICĂ cu stat-item */
.stat-item-balance,
.stat-item-assets,
.stat-item-positions,
.stat-item-winrate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item-balance:hover,
.stat-item-assets:hover,
.stat-item-positions:hover,
.stat-item-winrate:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

/* Stilizare specială pentru balance (primary) - IDENTICĂ cu stat-item.primary */
.stat-item-balance {
    background: rgba(255, 255, 255, 0.04);
    /*background: rgba(251, 191, 36, 0.1);*/
    /*border: 1px solid rgba(251, 191, 36, 0.2);*/
}

.stat-item-balance .stat-icon,
.stat-item-assets .stat-icon,
.stat-item-positions .stat-icon,
.stat-item-winrate .stat-icon {
    background: rgba(34, 197, 94, 0.15);
    border-radius: 8px;
    padding: 6px;
    color: var(--accent-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item-balance .stat-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.stat-item-balance .stat-content,
.stat-item-assets .stat-content,
.stat-item-positions .stat-content,
.stat-item-winrate .stat-content {
    flex: 1;
    min-width: 0;
}

/* Moștenire stilizare pentru elementele copil - TEXT STYLING */
.stat-item-balance .stat-label,
.stat-item-assets .stat-label,
.stat-item-positions .stat-label,
.stat-item-winrate .stat-label {
    color: #e2e8f0;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.stat-item-balance .stat-value,
.stat-item-assets .stat-value,
.stat-item-positions .stat-value,
.stat-item-winrate .stat-value {
    color: #fef3c7;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.stat-item-balance .stat-value {
    color: #fef3c7;
    font-size: 0.9rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.stat-item-balance .stat-change,
.stat-item-assets .stat-change,
.stat-item-positions .stat-change,
.stat-item-winrate .stat-change {
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.stat-item-balance .stat-description,
.stat-item-assets .stat-description,
.stat-item-positions .stat-description,
.stat-item-winrate .stat-description {
    color: #cbd5e1;
    font-size: 0.45rem;
    margin-top: 1px;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Stări de conexiune pentru noile clase monitoring */
.monitoring-item-api .monitoring-icon.connected,
.monitoring-item-websocket .monitoring-icon.connected,
.monitoring-item-uptime .monitoring-icon.connected,
.monitoring-item-ratelimit .monitoring-icon.connected {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.monitoring-item-api .monitoring-icon.connected i,
.monitoring-item-websocket .monitoring-icon.connected i,
.monitoring-item-uptime .monitoring-icon.connected i,
.monitoring-item-ratelimit .monitoring-icon.connected i {
    animation: spin 2s linear infinite;
}

.monitoring-item-api .monitoring-icon.disconnected,
.monitoring-item-websocket .monitoring-icon.disconnected,
.monitoring-item-uptime .monitoring-icon.disconnected,
.monitoring-item-ratelimit .monitoring-icon.disconnected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: blink 1s ease-in-out infinite;
}

/* Pseudo-element pentru efectul pulse la deconectat */
.monitoring-item-api .monitoring-icon.disconnected::after,
.monitoring-item-websocket .monitoring-icon.disconnected::after,
.monitoring-item-uptime .monitoring-icon.disconnected::after,
.monitoring-item-ratelimit .monitoring-icon.disconnected::after {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.monitoring-item-api .monitoring-icon.warning,
.monitoring-item-websocket .monitoring-icon.warning,
.monitoring-item-uptime .monitoring-icon.warning,
.monitoring-item-ratelimit .monitoring-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    animation: blink 1.5s ease-in-out infinite;
}

.monitoring-item-api .monitoring-label,
.monitoring-item-websocket .monitoring-label,
.monitoring-item-uptime .monitoring-label,
.monitoring-item-ratelimit .monitoring-label {
    color: #e2e8f0;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.monitoring-item-api .monitoring-value,
.monitoring-item-websocket .monitoring-value,
.monitoring-item-uptime .monitoring-value,
.monitoring-item-ratelimit .monitoring-value {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.monitoring-item-api .monitoring-change,
.monitoring-item-websocket .monitoring-change,
.monitoring-item-uptime .monitoring-change,
.monitoring-item-ratelimit .monitoring-change {
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.monitoring-item-api .monitoring-description,
.monitoring-item-websocket .monitoring-description,
.monitoring-item-uptime .monitoring-description,
.monitoring-item-ratelimit .monitoring-description {
    color: #cbd5e1;
    font-size: 0.45rem;
    margin-top: 1px;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Stări de status pentru valori monitoring - MOȘTENIRE DE LA ORIGINAL */
.monitoring-item-api .monitoring-value.connected,
.monitoring-item-websocket .monitoring-value.connected,
.monitoring-item-uptime .monitoring-value.connected,
.monitoring-item-ratelimit .monitoring-value.connected {
    color: #10b981; /* Verde pentru conectat */
}

.monitoring-item-api .monitoring-value.disconnected,
.monitoring-item-websocket .monitoring-value.disconnected,
.monitoring-item-uptime .monitoring-value.disconnected,
.monitoring-item-ratelimit .monitoring-value.disconnected {
    color: #ef4444; /* Roșu pentru deconectat */
    animation: blink 1s ease-in-out infinite;
}

.monitoring-item-api .monitoring-value.warning,
.monitoring-item-websocket .monitoring-value.warning,
.monitoring-item-uptime .monitoring-value.warning,
.monitoring-item-ratelimit .monitoring-value.warning {
    color: #f59e0b; /* Galben pentru warning */
}

/* Stări pentru monitoring-change pe clasele noi */
.monitoring-item-api .monitoring-change,
.monitoring-item-websocket .monitoring-change,
.monitoring-item-uptime .monitoring-change,
.monitoring-item-ratelimit .monitoring-change {
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.monitoring-item-api .monitoring-change.positive,
.monitoring-item-websocket .monitoring-change.positive,
.monitoring-item-uptime .monitoring-change.positive,
.monitoring-item-ratelimit .monitoring-change.positive {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.monitoring-item-api .monitoring-change.negative,
.monitoring-item-websocket .monitoring-change.negative,
.monitoring-item-uptime .monitoring-change.negative,
.monitoring-item-ratelimit .monitoring-change.negative {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ===== SFÂRȘITUL STILIZĂRII PENTRU CLASELE REDENUMITE ===== */

/* ===== STILIZĂRI PENTRU HANDLE-URILE ITEM-URILOR INDIVIDUALE ===== */

/* Handle-uri pentru item-urile individuale - mai mici și mai discrete */
.item-drag-handle {
    position: absolute;
    top: 4px; /* Foarte aproape de marginea de sus */
    right: 4px; /* Foarte aproape de marginea din dreapta */
    cursor: move;
    opacity: 0.6;
    transition: all var(--transition-fast);
    background: transparent; /* Fundal complet transparent */
    padding: 0;
    border-radius: 2px;
    border: none; /* Fără border */
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    color: #ffffff; /* Alb pentru pictogramă */
    font-weight: bold;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Umbră pentru contrast */
}

/* Efecte hover pentru item handles */
.item-drag-handle:hover {
    opacity: 1 !important;
    color: #10b981 !important; /* Verde pentru item-uri */
    background: transparent !important; /* Păstrează fundalul transparent */
    transform: scale(1.3); /* Mărește puțin pictograma */
}

/* Stilizări pentru drop zones ale item-urilor */
.item-drop-zone {
    height: 2px;
    margin: 4px 0;
    border: 1px dashed transparent;
    border-radius: 2px;
    transition: all 0.2s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-drop-zone.active {
    opacity: 1;
    border-color: #10b981; /* Verde pentru item-uri */
    background-color: rgba(16, 185, 129, 0.2);
    height: 4px;
}

/* ===== SFÂRȘITUL STILIZĂRII PENTRU HANDLE-URILE ITEM-URILOR ===== */

/* ===== STILIZĂRI PENTRU SĂGEȚI MUTARE STAT-URI ===== */

/* Layout pentru stat-item cu header și actions */
.stat-item {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 8px;
}

.stat-item-content-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.stat-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.stat-item-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.stat-item:hover .stat-item-actions {
    opacity: 1;
}

/* Butoane pentru mutarea stat-urilor */
.move-stat-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
}

/* Săgeată verde pentru sus */
.move-stat-btn.move-up {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.move-stat-btn.move-up:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Săgeată portocalie pentru jos */
.move-stat-btn.move-down {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.move-stat-btn.move-down:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    color: #ea580c;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

/* Stare disabled pentru butoane */
.move-stat-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.move-stat-btn:disabled:hover {
    background: transparent !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: inherit !important;
}

/* Hover effect pentru întregul stat-item */
.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive pentru stat-uri pe ecrane mici */
@media (max-width: 768px) {
    .stat-item-actions {
        opacity: 1; /* Întotdeauna vizibile pe mobile */
    }
    
    .move-stat-btn {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .stat-item-header {
        margin-bottom: 6px;
    }
}

/* ===== SFÂRȘITUL STILIZĂRII PENTRU SĂGEȚI STAT-URI ===== */

/* ===== STILIZĂRI PENTRU SĂGEȚI MUTARE MONITORING-URI ===== */

/* Layout pentru monitoring-item cu header și actions */
.monitoring-item {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 50px; /* Spațiu mai mare pentru butoanele poziționate absolut */
}

.monitoring-item-content-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.monitoring-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.monitoring-item-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 8px;
    right: 8px;
    flex-shrink: 0;
    z-index: 2;
}

.monitoring-item:hover .monitoring-item-actions {
    opacity: 1;
}

/* Butoane pentru mutarea monitoring-urilor */
.move-monitoring-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
}

/* Săgeată verde pentru sus */
.move-monitoring-btn.move-up {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.move-monitoring-btn.move-up:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Săgeată portocalie pentru jos */
.move-monitoring-btn.move-down {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.move-monitoring-btn.move-down:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    color: #ea580c;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

/* Stare disabled pentru butoane monitoring */
.move-monitoring-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.move-monitoring-btn:disabled:hover {
    background: transparent !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: inherit !important;
}

/* Hover effect pentru întregul monitoring-item */
.monitoring-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive pentru monitoring-uri pe ecrane mici */
@media (max-width: 768px) {
    .monitoring-item {
        padding-right: 40px; /* Spațiu mai mic pe mobile pentru butoane */
    }
    
    .monitoring-item-actions {
        opacity: 1; /* Întotdeauna vizibile pe mobile */
        top: 6px; /* Poziție mai compactă pe mobile */
        right: 6px;
    }
    
    .move-monitoring-btn {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .monitoring-item-header {
        margin-bottom: 6px;
    }
}

/* ===== SFÂRȘITUL STILIZĂRII PENTRU SĂGEȚI MONITORING-URI ===== */

/* ===== STILIZĂRI PENTRU NOTIFICĂRI ===== */

/* Container pentru notificări */
.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    pointer-events: none;
}

/* Stilizări pentru notificări */
.notification {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 100%;
    min-width: 300px;
}

/* Animații pentru notificări */
.notification-show {
    opacity: 1;
    transform: translateX(0);
}

.notification-hide {
    opacity: 0;
    transform: translateX(100%);
}

/* ========================================
   COLOR PICKER - Category Headers
   ======================================== */

/* Container pentru fiecare categorie cu fundal colorat subtil */
.color-category {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.color-category:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

/* Culori specifice pentru fiecare categorie */
.color-category:nth-child(1) {
    /* Dashboard - Albastru */
    background: rgba(34, 87, 122, 0.04);
    border-color: rgba(34, 87, 122, 0.12);
}

.color-category:nth-child(1):hover {
    background: rgba(34, 87, 122, 0.06);
    border-color: rgba(34, 87, 122, 0.18);
    box-shadow: 0 2px 8px rgba(34, 87, 122, 0.1);
}

.color-category:nth-child(2) {
    /* Portfolio - Violet */
    background: rgba(118, 101, 179, 0.04);
    border-color: rgba(118, 101, 179, 0.12);
}

.color-category:nth-child(2):hover {
    background: rgba(118, 101, 179, 0.06);
    border-color: rgba(118, 101, 179, 0.18);
    box-shadow: 0 2px 8px rgba(118, 101, 179, 0.1);
}

.color-category:nth-child(3) {
    /* Setări - Portocaliu */
    background: rgba(207, 94, 28, 0.04);
    border-color: rgba(207, 94, 28, 0.12);
}

.color-category:nth-child(3):hover {
    background: rgba(207, 94, 28, 0.06);
    border-color: rgba(207, 94, 28, 0.18);
    box-shadow: 0 2px 8px rgba(207, 94, 28, 0.1);
}

.color-category:nth-child(4) {
    /* Header - Albastru deschis */
    background: rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.12);
}

.color-category:nth-child(4):hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.color-category:nth-child(5) {
    /* Sidebar - Violet închis */
    background: rgba(118, 101, 179, 0.04);
    border-color: rgba(118, 101, 179, 0.12);
}

.color-category:nth-child(5):hover {
    background: rgba(118, 101, 179, 0.06);
    border-color: rgba(118, 101, 179, 0.18);
    box-shadow: 0 2px 8px rgba(118, 101, 179, 0.1);
}

/* Aliniază SVG icon, H4 și category-description pe aceeași linie */
.color-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 12px;
}

.color-category-header svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.color-category-header h4 {
    flex-shrink: 0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.color-category-header .category-description {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary, #64748b);
    opacity: 0.8;
}

/* Dark theme support */
[data-theme="dark"] .color-category {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .color-category:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .color-category-header {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .color-category-header h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .color-category-header .category-description {
    color: #94a3b8;
}

/* Conținutul notificării */
.notification-content {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

/* Iconul notificării */
.notification-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

/* Mesajul notificării */
.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    word-wrap: break-word;
}

/* Butonul de închidere */
.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.notification-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

/* Bara de progres pentru notificări */
.notification-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.notification-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: currentColor;
    transform-origin: left center;
}

/* Animația pentru bara de progres */
@keyframes notificationProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Tipuri de notificări cu culori specifice */
.notification-success {
    border-left-color: var(--success-color);
}

.notification-success .notification-icon {
    color: var(--success-color);
}

.notification-success .notification-progress::before {
    background: var(--success-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

.notification-warning .notification-progress::before {
    background: var(--warning-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-error .notification-icon {
    color: var(--danger-color);
}

.notification-error .notification-progress::before {
    background: var(--danger-color);
}

.notification-info {
    border-left-color: var(--primary-color);
}

.notification-info .notification-icon {
    color: var(--primary-color);
}

.notification-info .notification-progress::before {
    background: var(--primary-color);
}

/* Stilizări pentru statusurile de monitorizare cu culori */
.monitoring-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    width: 100%;
}

.monitoring-status.connected {
    background: transparent;
    color: var(--success-color);
    border: none;
}

.monitoring-status.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.monitoring-status.connecting {
    background: transparent;
    color: var(--success-color);
    border: none;
    animation: pulse 2s ease-in-out infinite;
}

.monitoring-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.monitoring-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.monitoring-status.normal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Animație de puls pentru statusul de conectare */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Responsive pentru notificări pe ecrane mici */
@media (max-width: 768px) {
    .notifications-container {
        top: 70px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* ===== SFÂRȘITUL STILIZĂRII PENTRU NOTIFICĂRI ===== */

/* ===== ANIMAȚII INTERACTIVE PENTRU MONITORIZARE CONEXIUNI ===== */

/* Keyframes pentru animații */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        transform: scale(1);
    }
}

@keyframes warningPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        transform: scale(1);
    }
}

/* Stiluri pentru stări de monitorizare în dashboard-stats */
.dashboard-stats .monitoring-item .monitoring-icon {
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Starea CONECTAT - Icon rotitor continuu */
.dashboard-stats .monitoring-status.connected + .monitoring-description .monitoring-icon,
.dashboard-stats .monitoring-item.connected .monitoring-icon {
    animation: spin 2s linear infinite;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.dashboard-stats .monitoring-status.connected {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
}

/* Starea DECONECTAT - Blink roșu rapid + pulse effect */
.dashboard-stats .monitoring-status.disconnected + .monitoring-description .monitoring-icon,
.dashboard-stats .monitoring-item.disconnected .monitoring-icon {
    animation: blink 1s ease-in-out infinite, pulse 2s ease-in-out infinite;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.dashboard-stats .monitoring-status.disconnected {
    animation: blink 1s ease-in-out infinite;
    color: #ef4444;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
}

/* Starea WARNING (Rate Limit) - Blink galben mai lent */
.dashboard-stats .monitoring-status.warning + .monitoring-description .monitoring-icon,
.dashboard-stats .monitoring-item.warning .monitoring-icon {
    animation: blink 1.5s ease-in-out infinite, warningPulse 2.5s ease-in-out infinite;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.dashboard-stats .monitoring-status.warning {
    animation: blink 1.5s ease-in-out infinite;
    color: #f59e0b;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
}

/* Starea CONNECTING - Pulse verde cu rotire lentă */
.dashboard-stats .monitoring-status.connecting + .monitoring-description .monitoring-icon,
.dashboard-stats .monitoring-item.connecting .monitoring-icon {
    animation: spin 3s linear infinite, pulse 2s ease-in-out infinite;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.dashboard-stats .monitoring-status.connecting {
    animation: pulse 2s ease-in-out infinite;
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
}

/* Efecte speciale pentru rate limit ridicat */
.dashboard-stats .monitoring-item[data-rate-limit="high"] .monitoring-icon {
    animation: blink 0.8s ease-in-out infinite, warningPulse 1.5s ease-in-out infinite;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.dashboard-stats .monitoring-item[data-rate-limit="high"] .monitoring-status {
    animation: blink 0.8s ease-in-out infinite;
    color: #dc2626;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

/* Tranziții fluide pentru toate stările */
.dashboard-stats .monitoring-status,
.dashboard-stats .monitoring-icon {
    transition: all 0.3s ease;
}

/* Hover effects pentru interactivitate */
.dashboard-stats .monitoring-item:hover .monitoring-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.dashboard-stats .monitoring-item:hover .monitoring-status {
    transform: translateX(2px);
    filter: brightness(1.1);
}

/* Glow effects pentru stări critice */
.dashboard-stats .monitoring-status.disconnected,
.dashboard-stats .monitoring-status.error {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
}

.dashboard-stats .monitoring-status.warning {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
}

.dashboard-stats .monitoring-status.connected {
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
}

/* ===== SFÂRȘITUL ANIMAȚIILOR PENTRU MONITORIZARE ===== */

/* ===== SECȚIUNE INFORMAȚII CONT COMPACT ===== */
.account-info-compact {
    margin-top: 15px;
    padding: 12px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.account-info-compact .info-header {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.account-info-compact .info-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-info-compact .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.account-info-compact .info-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 40px;
    font-size: 11px;
}

.account-info-compact .info-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    font-size: 11px;
}

.account-info-compact .info-value.status-success {
    color: var(--success-color);
}

.account-info-compact .info-value.status-error {
    color: var(--danger-color);
}

.account-info-compact .info-value.status-warning {
    color: var(--warning-color);
}

/* ===== TOOLTIP SYSTEM ===== */
/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    z-index: 1000; /* Asigură că elementul părinte are un z-index ridicat */
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 2147483647; /* Valoarea maximă pentru z-index */
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: translateZ(0); /* Forțează layer-ul hardware */
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Tooltip pentru info-label */
.info-label.tooltip .tooltiptext {
    background-color: #2563eb;
    border-color: #2563eb transparent transparent transparent;
    position: absolute;
    z-index: 2147483647;
    pointer-events: none;
    transform: translateZ(0);
}

.info-label.tooltip .tooltiptext::after {
    border-color: #2563eb transparent transparent transparent;
}

/* Tooltip pentru info-value */
.info-value.tooltip .tooltiptext {
    background-color: #10b981;
    width: 200px;
    margin-left: -100px;
    position: absolute;
    z-index: 2147483647;
    pointer-events: none;
    transform: translateZ(0);
}

.info-value.tooltip .tooltiptext::after {
    border-color: #10b981 transparent transparent transparent;
}

/* Tooltip pentru status special */
.info-value.status-success.tooltip .tooltiptext {
    background-color: #10b981;
    position: absolute;
    z-index: 2147483647;
    pointer-events: none;
    transform: translateZ(0);
}

.info-value.status-error.tooltip .tooltiptext {
    background-color: #ef4444;
    position: absolute;
    z-index: 2147483647;
    pointer-events: none;
    transform: translateZ(0);
}

.info-value.status-warning.tooltip .tooltiptext {
    background-color: #f59e0b;
    position: absolute;
    z-index: 2147483647;
    pointer-events: none;
    transform: translateZ(0);
}

/* Responsive tooltips */
@media (max-width: 768px) {
    .tooltip .tooltiptext {
        width: 200px;
        margin-left: -100px;
        font-size: 11px;
        padding: 8px;
    }
}

/* ===== SFÂRȘIT TOOLTIP SYSTEM ===== */
/* ===== SFÂRȘIT SECȚIUNE INFORMAȚII CONT COMPACT ===== */

/* ===== STILIZARE BUTOANE PERSONALIZATE ===== */

/* Stilizare pentru butonul Backup Keys */
#backup-primary-keys {
    background-color: #e3f7a4 !important;
    border: 2px solid #a3d264 !important;
    color: #2d5016 !important;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(227, 247, 164, 0.4) !important;
}

#backup-primary-keys:hover {
    background-color: #d4ed8b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(227, 247, 164, 0.6) !important;
}

/* Efect hover pentru toate butoanele .btn */
.btn:not(:disabled):hover {
    filter: brightness(1.15) contrast(1.05);
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* ===== SFÂRȘIT STILIZARE BUTOANE PERSONALIZATE ===== */

/* ============================================================================ */
/* 🔧 FIX FINAL: FUNDAL CARDURI - PERSONALIZABILE VIA COLOR PICKER */
/* Adăugat la sfârșit pentru a SUPRASCRIE orice altă regulă */
/* Data: 16 octombrie 2025 - Actualizat cu variabile CSS */
/* ============================================================================ */

/* Nuclear Option: Specificitate mai mare decât orice altă regulă */
/* Folosim variabile CSS pentru a permite personalizare via color picker */
body .stats-summary-card {
    background: var(--dashboard-card-bg) !important;
}

body .monitoring-card {
    background: var(--monitoring-card-bg) !important;
}

body .activity-card {
    background: var(--activity-card-bg) !important;
}

body .dashboard-bot {
    background: var(--bot-card-bg) !important;
}

/* Asigură-te că hover-ul funcționează și cu specificitate mare */
body .stats-summary-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
    transform: translateY(-2px);
}

body .monitoring-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

body .activity-card:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
    transform: translateY(-2px);
}

body .dashboard-bot:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

/* ============================================================================ */
/* SFÂRȘIT FIX CARDURI */
/* ============================================================================ */

/* ============================================================================ */
/* WEBSOCKET ICON - CULORI DINAMICE ÎN FUNCȚIE DE STATUS */
/* ============================================================================ */

/* Status: Conectat (VERDE) */
.monitoring-item-websocket.connected .websocket-icon .ws-wave,
.monitoring-item-websocket.connected .websocket-icon .ws-ring-inner {
    stroke: #10b981; /* Verde */
}

.monitoring-item-websocket.connected .websocket-icon .ws-ring-middle,
.monitoring-item-websocket.connected .websocket-icon .ws-ring-outer {
    stroke: #059669; /* Verde închis */
}

.monitoring-item-websocket.connected .websocket-icon .ws-gradient-light {
    stop-color: #6ee7b7; /* Verde deschis */
}

.monitoring-item-websocket.connected .websocket-icon .ws-gradient-medium {
    stop-color: #10b981; /* Verde mediu */
}

.monitoring-item-websocket.connected .websocket-icon .ws-gradient-dark {
    stop-color: #059669; /* Verde închis */
}

.monitoring-item-websocket.connected .websocket-icon .ws-center-glow {
    fill: #6ee7b7; /* Verde luminos */
}

.monitoring-item-websocket.connected .websocket-icon .ws-center-highlight {
    fill: #d1fae5; /* Verde foarte deschis */
}

/* Status: Deconectat (ROȘU INTENS) */
.monitoring-item-websocket.disconnected .websocket-icon .ws-wave,
.monitoring-item-websocket.disconnected .websocket-icon .ws-ring-inner {
    stroke: #ef4444; /* Roșu intens */
}

.monitoring-item-websocket.disconnected .websocket-icon .ws-ring-middle,
.monitoring-item-websocket.disconnected .websocket-icon .ws-ring-outer {
    stroke: #dc2626; /* Roșu foarte intens */
}

.monitoring-item-websocket.disconnected .websocket-icon .ws-gradient-light {
    stop-color: #fca5a5; /* Roșu deschis */
}

.monitoring-item-websocket.disconnected .websocket-icon .ws-gradient-medium {
    stop-color: #ef4444; /* Roșu intens */
}

.monitoring-item-websocket.disconnected .websocket-icon .ws-gradient-dark {
    stop-color: #dc2626; /* Roșu foarte intens */
}

.monitoring-item-websocket.disconnected .websocket-icon .ws-center-glow {
    fill: #fca5a5; /* Roșu luminos */
}

.monitoring-item-websocket.disconnected .websocket-icon .ws-center-highlight {
    fill: #fee2e2; /* Roșu foarte deschis */
}

/* Status: Conectare în curs (ALBASTRU - default) */
.monitoring-item-websocket.connecting .websocket-icon .ws-wave,
.monitoring-item-websocket.connecting .websocket-icon .ws-ring-inner {
    stroke: #60a5fa; /* Albastru */
}

.monitoring-item-websocket.connecting .websocket-icon .ws-ring-middle,
.monitoring-item-websocket.connecting .websocket-icon .ws-ring-outer {
    stroke: #3b82f6; /* Albastru mediu */
}

.monitoring-item-websocket.connecting .websocket-icon .ws-gradient-light {
    stop-color: #93c5fd; /* Albastru deschis */
}

.monitoring-item-websocket.connecting .websocket-icon .ws-gradient-medium {
    stop-color: #60a5fa; /* Albastru mediu */
}

.monitoring-item-websocket.connecting .websocket-icon .ws-gradient-dark {
    stop-color: #3b82f6; /* Albastru */
}

.monitoring-item-websocket.connecting .websocket-icon .ws-center-glow {
    fill: #93c5fd; /* Albastru luminos */
}

.monitoring-item-websocket.connecting .websocket-icon .ws-center-highlight {
    fill: #dbeafe; /* Albastru foarte deschis */
}

/* Default (fără clasă de status - ALBASTRU) */
.websocket-icon .ws-wave,
.websocket-icon .ws-ring-inner {
    stroke: #60a5fa;
}

.websocket-icon .ws-ring-middle,
.websocket-icon .ws-ring-outer {
    stroke: #3b82f6;
}

.websocket-icon .ws-gradient-light {
    stop-color: #93c5fd;
}

.websocket-icon .ws-gradient-medium {
    stop-color: #60a5fa;
}

.websocket-icon .ws-gradient-dark {
    stop-color: #3b82f6;
}

.websocket-icon .ws-center-glow {
    fill: #93c5fd;
}

.websocket-icon .ws-center-highlight {
    fill: #dbeafe;
}

/* ============================================================================ */
/* SFÂRȘIT WEBSOCKET ICON */
/* ============================================================================ */

/* ============================================================================ */
/* API ICON - CULORI DINAMICE ÎN FUNCȚIE DE STATUS */
/* ============================================================================ */

/* Status: Conectat (VERDE) */
.monitoring-item-api.connected .api-icon .api-wave,
.monitoring-item-api.connected .api-icon .api-ring-inner {
    stroke: #10b981; /* Verde */
}

.monitoring-item-api.connected .api-icon .api-ring-middle,
.monitoring-item-api.connected .api-icon .api-ring-outer {
    stroke: #059669; /* Verde închis */
}

.monitoring-item-api.connected .api-icon .api-gradient-light {
    stop-color: #6ee7b7; /* Verde deschis */
}

.monitoring-item-api.connected .api-icon .api-gradient-medium {
    stop-color: #10b981; /* Verde mediu */
}

.monitoring-item-api.connected .api-icon .api-gradient-dark {
    stop-color: #059669; /* Verde închis */
}

.monitoring-item-api.connected .api-icon .api-center-glow {
    fill: #6ee7b7; /* Verde luminos */
}

.monitoring-item-api.connected .api-icon .api-center-highlight {
    fill: #d1fae5; /* Verde foarte deschis */
}

/* Status: Deconectat (ROȘU INTENS) */
.monitoring-item-api.disconnected .api-icon .api-wave,
.monitoring-item-api.disconnected .api-icon .api-ring-inner {
    stroke: #ef4444; /* Roșu intens */
}

.monitoring-item-api.disconnected .api-icon .api-ring-middle,
.monitoring-item-api.disconnected .api-icon .api-ring-outer {
    stroke: #dc2626; /* Roșu foarte intens */
}

.monitoring-item-api.disconnected .api-icon .api-gradient-light {
    stop-color: #fca5a5; /* Roșu deschis */
}

.monitoring-item-api.disconnected .api-icon .api-gradient-medium {
    stop-color: #ef4444; /* Roșu intens */
}

.monitoring-item-api.disconnected .api-icon .api-gradient-dark {
    stop-color: #dc2626; /* Roșu foarte intens */
}

.monitoring-item-api.disconnected .api-icon .api-center-glow {
    fill: #fca5a5; /* Roșu luminos */
}

.monitoring-item-api.disconnected .api-icon .api-center-highlight {
    fill: #fee2e2; /* Roșu foarte deschis */
}

/* Status: Conectare în curs (ALBASTRU) */
.monitoring-item-api.connecting .api-icon .api-wave,
.monitoring-item-api.connecting .api-icon .api-ring-inner {
    stroke: #60a5fa; /* Albastru */
}

.monitoring-item-api.connecting .api-icon .api-ring-middle,
.monitoring-item-api.connecting .api-icon .api-ring-outer {
    stroke: #3b82f6; /* Albastru mediu */
}

.monitoring-item-api.connecting .api-icon .api-gradient-light {
    stop-color: #93c5fd; /* Albastru deschis */
}

.monitoring-item-api.connecting .api-icon .api-gradient-medium {
    stop-color: #60a5fa; /* Albastru mediu */
}

.monitoring-item-api.connecting .api-icon .api-gradient-dark {
    stop-color: #3b82f6; /* Albastru */
}

.monitoring-item-api.connecting .api-icon .api-center-glow {
    fill: #93c5fd; /* Albastru luminos */
}

.monitoring-item-api.connecting .api-icon .api-center-highlight {
    fill: #dbeafe; /* Albastru foarte deschis */
}

/* Default (fără clasă de status - VERDE) */
.api-icon .api-wave,
.api-icon .api-ring-inner {
    stroke: #10b981;
}

.api-icon .api-ring-middle,
.api-icon .api-ring-outer {
    stroke: #059669;
}

.api-icon .api-gradient-light {
    stop-color: #6ee7b7;
}

.api-icon .api-gradient-medium {
    stop-color: #10b981;
}

.api-icon .api-gradient-dark {
    stop-color: #059669;
}

.api-icon .api-center-glow {
    fill: #6ee7b7;
}

.api-icon .api-center-highlight {
    fill: #d1fae5;
}

/* ============================================================================ */
/* SFÂRȘIT API ICON */
/* ============================================================================ */
/* ============================================================================ */
/* HEARTBEAT ICON - STYLES */
/* ============================================================================ */

/* Heartbeat icon - default verde */
.monitoring-item-heartbeat .heartbeat-svg .heartbeat-wave polyline {
    stroke: #10b981;
}

.monitoring-item-heartbeat .heartbeat-svg circle {
    fill: #10b981;
}

/* Heartbeat icon - warning (galben) */
.monitoring-item-heartbeat:has(.monitoring-status.connecting) .heartbeat-svg .heartbeat-wave polyline,
.monitoring-item-heartbeat:has(.monitoring-status.connecting) .heartbeat-svg circle {
    stroke: #f59e0b !important;
    fill: #f59e0b !important;
}

/* Heartbeat icon - error (ro?u) */
.monitoring-item-heartbeat:has(.monitoring-status.disconnected) .heartbeat-svg .heartbeat-wave polyline,
.monitoring-item-heartbeat:has(.monitoring-status.disconnected) .heartbeat-svg circle {
    stroke: #ef4444 !important;
    fill: #ef4444 !important;
}

/* Baseline heartbeat */
.heartbeat-svg line {
    stroke: currentColor;
    opacity: 0.3;
}

/* ============================================================================ */
/* SF�R?IT HEARTBEAT ICON */
/* ============================================================================ */

/* ============================================================================ */
/* HEARTBEAT CRONOMETRU - STYLES */
/* ============================================================================ */

/* Cronometru heartbeat - font monospa?iat pentru cifre aliniate */
#heartbeat-status {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    letter-spacing: 1px;
    min-width: 70px;
    text-align: center;
}

/* Anima?ie smooth pentru schimbare culoare */
#heartbeat-status {
    transition: color 0.3s ease;
}

/* ============================================================================ */
/* HEARTBEAT DISPLAY - Numar mare cu puls */
/* ============================================================================ */

/* Container pentru icon heartbeat special */
.heartbeat-display-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Numarul mare de secunde */
.heartbeat-seconds-display {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #10b981;
    z-index: 2;
    transition: color 0.3s ease, transform 0.15s ease;
    animation: heartbeatPulse 1.5s ease-in-out infinite;
}

/* Anima?ie puls pentru numar */
@keyframes heartbeatPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Ring animat �n spate */
.heartbeat-pulse-ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid #10b981;
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Culori pentru stari diferite - numar */
.heartbeat-seconds-display.connected {
    color: #10b981;
}

.heartbeat-seconds-display.connecting {
    color: #f59e0b;
}

.heartbeat-seconds-display.disconnected {
    color: #ef4444;
}

/* Culori pentru ring */
.monitoring-item-heartbeat:has(.heartbeat-seconds-display.connected) .heartbeat-pulse-ring {
    border-color: #10b981;
}

.monitoring-item-heartbeat:has(.heartbeat-seconds-display.connecting) .heartbeat-pulse-ring {
    border-color: #f59e0b;
}

.monitoring-item-heartbeat:has(.heartbeat-seconds-display.disconnected) .heartbeat-pulse-ring {
    border-color: #ef4444;
}

/* ============================================================================ */
/* SFÂRȘIT HEARTBEAT DISPLAY */
/* ============================================================================ */

/* ============================================================================ */
/* ✅ NOU: RADIO CARDS pentru Clone Strategy Modal */
/* ============================================================================ */

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-card {
    position: relative;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-content {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    text-align: center;
}

.radio-card:hover .radio-content {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.radio-card input[type="radio"]:checked ~ .radio-content {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.radio-title {
    font-weight: 600;
    /* color: var(--text-primary); */
    margin-bottom: 0.25rem;
}

.radio-subtitle {
    font-size: 0.85rem;
    /* color: var(--text-secondary); */
}

/* Spinner pentru loading */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================ */
/* SFÂRȘIT RADIO CARDS */
/* ============================================================================ */

