/* Основные стили */
:root {
    /* Основная цветовая гамма премиум-продукта */
    --primary: #3182ce;
    --primary-hover: #2b6cb0;
    --secondary: #4a5568;
    --accent: #805ad5;
    
    /* Семантические цвета */
    --success: #38a169;
    --success-light: #c6f6d5;
    --warning: #d69e2e;
    --warning-light: #fefcbf;
    --danger: #e53e3e;
    --danger-light: #fed7d7;
    --info: #3182ce;
    --info-light: #bee3f8;
    
    /* Нейтральные оттенки */
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    /* Текстовые цвета */
    --text-color: var(--gray-800);
    --text-light: var(--gray-600);
    --text-lighter: var(--gray-500);
    
    /* Фон и границы */
    --bg-color: #f8fafc;
    --bg-light: var(--gray-100);
    --bg-dark: var(--gray-800);
    --border-color: var(--gray-200);
    --border-dark: var(--gray-700);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.1), 0 3px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 5px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Скругления */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Шрифты */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
    
    /* Анимации */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* Размеры */
    --header-height: 60px;
    --sidebar-width: 280px;
    --report-width: 320px;
}

body.dark {
    --text-color: var(--gray-100);
    --text-light: var(--gray-300);
    --text-lighter: var(--gray-400);
    
    --bg-color: var(--gray-900);
    --bg-light: var(--gray-800);
    --bg-dark: var(--gray-700);
    --border-color: var(--gray-700);
    --border-dark: var(--gray-600);
}

/* Основные стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark {
    background-color: var(--bg-dark);
    color: var(--text-color);
}

/* Премиальный хедер */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 1.25rem;
    background: linear-gradient(90deg, var(--primary), #1a365d);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.panel-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.panel-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.app-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.icon-btn.small {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.25);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.username {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Основной контент */
.app-main {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--report-width);
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

/* Боковая панель */
.sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
}

body.dark .sidebar {
    background: var(--gray-800);
    border-color: var(--border-dark);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

body.dark .sidebar-header {
    border-color: var(--border-dark);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-controls {
    display: flex;
    gap: 0.5rem;
}

.compact-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

body.dark .compact-btn {
    background: var(--gray-700);
    color: var(--gray-300);
}

.compact-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: translateY(-1px);
}

body.dark .compact-btn:hover {
    background: var(--gray-600);
    color: white;
}

.sidebar-search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

body.dark .sidebar-search {
    border-color: var(--border-dark);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--gray-400);
}

.search-input {
    width: 100%;
    padding: 0.6rem 2.25rem 0.6rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

body.dark .search-input {
    background: var(--gray-700);
    border-color: var(--border-dark);
    color: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: var(--transition);
}

.clear-search-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

body.dark .clear-search-btn:hover {
    background: var(--gray-600);
    color: white;
}

/* Header */
.app-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

body.dark .app-header {
    background: #2a4365;
}

.app-header h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.app-header i {
    font-size: 1.4rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.3);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

#toggle-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

#toggle-panel:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main grid layout */
.app-main {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    height: calc(100vh - 64px);
    background: var(--bg-light);
    overflow: hidden;
}

body.dark .app-main {
    background: var(--bg-dark);
}

.sidebar {
    grid-column: 1/2;
    background: white;
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

body.dark .sidebar {
    background: #2d3748;
    border-color: var(--border-dark);
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.content {
    grid-column: 2/3;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.5rem;
    gap: 1.5rem;
}

body.dark .content {
    border-color: var(--border-dark);
}

.report-pane {
    grid-column: 3/4;
    border-left: 1px solid var(--border-light);
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body.dark .report-pane {
    background: #2d3748;
    border-color: var(--border-dark);
}

/* Боковая панель */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

body.dark .sidebar-header {
    border-color: var(--border-dark);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compact-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

body.dark .compact-btn {
    color: var(--text-dark);
}

.compact-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark .compact-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-box {
    margin: 1rem;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 2.2rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: white;
    color: var(--text-light);
}

body.dark .search-box input {
    background-color: #1a202c;
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    transition: var(--transition);
}

.clear-btn:hover {
    opacity: 1;
    color: var(--text-light);
}

body.dark .clear-btn:hover {
    color: var(--text-dark);
}

.filter-section {
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

body.dark .filter-section {
    border-color: var(--border-dark);
}

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

.filter-header span {
    font-weight: 500;
    font-size: 0.95rem;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    transition: var(--transition);
}

.text-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group h4 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-label {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: var(--transition);
}

body.dark .tag-label {
    background-color: #2d3748;
}

.tag-label input {
    display: none;
}

.tag-label span {
    margin-left: 0.25rem;
}

.tag-label.smoke { background-color: #ebf8ff; color: #2c5282; }
.tag-label.regression { background-color: #e6fffa; color: #285e61; }
.tag-label.api { background-color: #f0fff4; color: #276749; }
.tag-label.ui { background-color: #fffaf0; color: #744210; }
.tag-label.performance { background-color: #fff5f5; color: #822727; }

body.dark .tag-label.smoke { background-color: #2a4365; color: #e2e8f0; }
body.dark .tag-label.regression { background-color: #234e52; color: #e2e8f0; }
body.dark .tag-label.api { background-color: #22543d; color: #e2e8f0; }
body.dark .tag-label.ui { background-color: #744210; color: #e2e8f0; }
body.dark .tag-label.performance { background-color: #742a2a; color: #e2e8f0; }

.tag-label:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.status-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    background-color: #f5f5f5;
    color: var(--text-light);
}

body.dark .status-label {
    background-color: #2d3748;
    color: var(--text-dark);
}

.status-label input {
    margin: 0;
}

.status-label.passed { color: var(--success); }
.status-label.failed { color: var(--danger); }
.status-label.skipped { color: var(--warning); }

.test-list-container {
    flex: 1;
    overflow: auto;
    padding: 1rem 0.25rem 1rem 1rem;
}

.list-header {
    display: flex;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 2;
    background: inherit;
    backdrop-filter: blur(4px);
}

body.dark .list-header {
    border-color: var(--border-dark);
}

.column-header:first-child {
    flex: 1;
}

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

.test-row:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}
body.dark .test-row:nth-child(even) {
    background-color: rgba(255,255,255,0.05);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.passed { background-color: var(--success); }
.status-dot.failed { background-color: var(--danger); }
.status-dot.skipped { background-color: var(--warning); }
.status-dot.warning { background-color: var(--warning); }

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    height: 20px;
    font-size: 0.7rem;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}
body.dark .tag-pill {
    background: #4a5568;
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.column-header {
    cursor: pointer;
    user-select: none;
}
.column-header:hover {
    color: var(--primary);
}

.test-list-container, .test-list {
    transition: opacity 0.2s ease;
}
.test-list.loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Карточки и контент */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark .content-header {
    background: rgba(45,55,72,0.7);
    border-color: rgba(255,255,255,0.05);
}

.content-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

body.dark .content-header h2 {
    color: var(--text-dark);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    position: relative;
}

.config-card, .action-card, .pipeline-card, .console-card, .charts-section {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

body.dark .config-card, body.dark .action-card, body.dark .pipeline-card, 
body.dark .console-card, body.dark .charts-section {
    background-color: #2d3748;
}

.config-card:hover, .action-card:hover, .pipeline-card:hover, 
.console-card:hover, .charts-section:hover {
    box-shadow: var(--shadow);
}

/* Controls & buttons */
.controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
    position: relative;
    z-index: 5;
    white-space: nowrap;
    min-width: auto;
    padding: 0.5rem 1rem;
    height: auto;
    min-height: 38px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.12);
}

.btn.secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
}

body.dark .btn.secondary {
    background: #3a4a5e;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.1);
}

.btn.secondary:hover {
    background: var(--bg-light-hover);
}

body.dark .btn.secondary:hover {
    background: #465d7a;
}

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

.btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.browser-icons {
    display: flex;
    gap: 0.5rem;
}

.browser-icon {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.2rem;
    opacity: 0.5;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.browser-icon.active {
    opacity: 1;
    transform: scale(1.2);
    color: var(--primary);
}

.browser-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark .browser-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.fa-chrome { color: #4285F4 }
.fa-firefox-browser { color: #FF9400 }
.fa-ghost { color: #555 }

/* Карточки с настройками */
.card-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background-color: #fcfcfc;
}

body.dark .card-header {
    border-bottom: 1px solid var(--border-dark);
    background-color: #1a202c;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header .icon {
    font-size: 1.1rem;
    color: var(--primary);
}

.card-header .status-badge {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-badge.running {
    background-color: #ebf8ff;
    color: var(--primary);
}

.status-badge.success {
    background-color: #f0fff4;
    color: var(--success);
}

.status-badge.failed {
    background-color: #fff5f5;
    color: var(--danger);
}

body.dark .status-badge.running {
    background-color: #2a4365;
    color: #90cdf4;
}

body.dark .status-badge.success {
    background-color: #22543d;
    color: #9ae6b4;
}

body.dark .status-badge.failed {
    background-color: #742a2a;
    color: #feb2b2;
}

.card-content {
    padding: 1.25rem;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
    gap: 0.75rem;
}

body.dark .card-footer {
    border-top: 1px solid var(--border-dark);
}

/* Запуск тестов и отображение результатов */
.test-config {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
}

.config-item select, .config-item input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: white;
    color: var(--text-light);
}

body.dark .config-item select, body.dark .config-item input {
    background-color: #1a202c;
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.config-item select:focus, .config-item input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.pipeline-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.pipeline-diagram {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2.5rem 0 1.5rem;
    padding: 0 1rem;
}

.pipeline-line {
    position: absolute;
    height: 3px;
    background: #e2e8f0;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
}

body.dark .pipeline-line {
    background: #4a5568;
}

.stage {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 3px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
}

body.dark .stage {
    background: #2d3748;
    border-color: #4a5568;
}

.stage-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.stage.active {
    border-color: var(--primary);
    color: var(--primary);
}

.stage.completed {
    border-color: var(--success);
    color: var(--success);
}

.stage.failed {
    border-color: var(--danger);
    color: var(--danger);
}

.stage-progress {
    position: absolute;
    background: #e2e8f0;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    left: 0;
    transition: width 0.3s ease;
}

body.dark .stage-progress {
    background: #4a5568;
}

.stage-progress.active {
    background: var(--primary);
}

.stage-progress.completed {
    background: var(--success);
}

.stage-progress.failed {
    background: var(--danger);
}

.console-output {
    font-family: var(--font-mono);
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.6;
    height: 240px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.console-output .log-info {
    color: #90cdf4;
}

.console-output .log-success {
    color: #9ae6b4;
}

.console-output .log-warn {
    color: #fbd38d;
}

.console-output .log-error {
    color: #feb2b2;
}

.charts-section {
    margin-top: 1.5rem;
    padding: 1rem;
}

.charts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

body.dark .charts-header {
    border-bottom: 1px solid var(--border-dark);
}

.charts-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chart-periods {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

body.dark .period-btn {
    border-color: var(--border-dark);
    color: var(--text-dark);
}

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

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    overflow: hidden;
    min-height: 200px;
    padding: 1.25rem;
}

.chart-wrapper {
    height: 200px;
    position: relative;
}

.chart-box {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

body.dark .chart-box {
    background: #2d3748;
}

.chart-box:hover {
    box-shadow: var(--shadow);
}

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

.chart-box h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark .chart-box h4 {
    color: var(--text-dark);
}

.chart-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-canvas-container {
    width: 100%;
    height: 100%;
    min-height: 160px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.data-visual {
    text-align: center;
    padding: 1rem;
}

.data-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.data-value.success {
    color: var(--success);
}

.data-value.danger {
    color: var(--danger);
}

.data-value.primary {
    color: var(--primary);
}

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

.data-label {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.data-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
}

.data-indicator.up {
    background-color: #f0fff4;
    color: var(--success);
}

body.dark .data-indicator.up {
    background-color: #22543d;
    color: #9ae6b4;
}

.data-indicator.down {
    background-color: #fff5f5;
    color: var(--danger);
}

body.dark .data-indicator.down {
    background-color: #742a2a;
    color: #feb2b2;
}

.resize-handle {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    cursor: ns-resize;
    text-align: center;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.resize-handle::after {
    content: '';
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

body.dark .resize-handle::after {
    background-color: rgba(255, 255, 255, 0.1);
}

.resize-handle:hover::after {
    background-color: rgba(0, 0, 0, 0.2);
}

body.dark .resize-handle:hover::after {
    background-color: rgba(255, 255, 255, 0.2);
}
.resize-handle i{color:#666;font-size:10px;line-height:10px}

/* Отчеты и панель результатов */
.report-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.dark .report-header {
    border-bottom: 1px solid var(--border-dark);
}

.report-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-icon.success {
    background-color: var(--success);
}

.status-icon.failed {
    background-color: var(--danger);
}

.status-icon.running {
    background-color: var(--primary);
    animation: pulse 1.5s infinite;
}

.report-content {
    padding: 1rem;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.dark .summary-card {
    background-color: #2d3748;
}

.summary-card .title {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

.summary-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-card .value.passed {
    color: var(--success);
}

.summary-card .value.failed {
    color: var(--danger);
}

.summary-card .value.total {
    color: var(--primary);
}

.summary-card .value.duration {
    color: var(--secondary);
}

.test-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.test-result-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

body.dark .test-result-item {
    border-bottom: 1px solid var(--border-dark);
}

.test-result-item:hover {
    background-color: #f8f9fa;
}

body.dark .test-result-item:hover {
    background-color: #2d3748;
}

.result-icon {
    margin-right: 1rem;
    font-size: 1.1rem;
}

.result-icon.success {
    color: var(--success);
}

.result-icon.failed {
    color: var(--danger);
}

.result-content {
    flex: 1;
}

.result-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary);
}

.test-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f5f5f5;
    margin-right: 0.5rem;
}

body.dark .test-tag {
    background-color: #4a5568;
}

.test-result-expand {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: var(--transition);
}

.test-result-expand:hover {
    color: var(--primary);
}

.result-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem 0 2.5rem;
    font-size: 0.9rem;
}

.result-details.expanded {
    max-height: 500px;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.error-message {
    background-color: #fff5f5;
    color: var(--danger);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: pre-wrap;
    margin-top: 0.5rem;
}

body.dark .error-message {
    background-color: #742a2a;
    color: #feb2b2;
}

.screenshot-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

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

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

body.dark .modal-container {
    background-color: #2d3748;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

body.dark .modal-header {
    border-bottom: 1px solid var(--border-dark);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    gap: 0.75rem;
}

body.dark .modal-footer {
    border-top: 1px solid var(--border-dark);
}

/* Таблицы */
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

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

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

body.dark .data-table th, body.dark .data-table td {
    border-bottom: 1px solid var(--border-dark);
}

.data-table th {
    font-weight: 600;
    color: var(--secondary);
}

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

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

body.dark .data-table tbody tr:hover {
    background-color: #2d3748;
}

/* Анимации */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .app-main {
        grid-template-columns: 250px 1fr 300px;
    }
}

@media (max-width: 992px) {
    .app-main {
        grid-template-columns: 220px 1fr;
    }
    
    .report-pane {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-main {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .content {
        padding: 1rem;
    }
    
    .test-config {
        grid-template-columns: 1fr;
    }
    
    .report-summary {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

/* Timeline */
.timeline {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow-x: auto;
}

body.dark .timeline {
    background: #2d3748;
}

.timeline-line {
    position: absolute;
    height: 3px;
    background: #e2e8f0;
    top: 29px;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 1;
}

body.dark .timeline-line {
    background: #4a5568;
}

.stage {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.stage-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

body.dark .stage-circle {
    background: #2d3748;
    border-color: #4a5568;
}

.stage-circle i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stage.active .stage-circle {
    border-color: var(--primary);
    color: var(--primary);
}

.stage.done .stage-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.stage.fail .stage-circle {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.stage-progress {
    position: absolute;
    height: 3px;
    background: #e2e8f0;
    top: 15px;
    right: -50%;
    width: 100%;
    z-index: 0;
}

body.dark .stage-progress {
    background: #4a5568;
}

.stage:last-child .stage-progress {
    display: none;
}

.stage.active .stage-progress {
    background: var(--primary);
}

.stage.done .stage-progress {
    background: var(--success);
}

.stage.fail .stage-progress {
    background: var(--danger);
}

.stage-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--secondary);
    transition: var(--transition);
}

body.dark .stage-label {
    color: #a0aec0;
}

.stage.active .stage-label {
    color: var(--primary);
}

.stage.done .stage-label {
    color: var(--success);
}

.stage.fail .stage-label {
    color: var(--danger);
}

.stage-description {
    font-size: 0.75rem;
    text-align: center;
    color: var(--secondary);
    max-width: 110px;
    line-height: 1.3;
    margin-top: 0.25rem;
}

.stage-time {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: var(--secondary);
}

/* Контейнеры графиков */
.charts-wrapper {
    position: relative;
    margin: 1.5rem 0;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    overflow: hidden;
    min-height: 200px;
}

.chart-box {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

body.dark .chart-box {
    background: #2d3748;
}

.chart-box:hover {
    box-shadow: var(--shadow);
}

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

.chart-box h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark .chart-box h4 {
    color: var(--text-dark);
}

.chart-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-canvas-container {
    width: 100%;
    height: 100%;
    min-height: 160px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.data-visual {
    text-align: center;
    padding: 1rem;
}

.data-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.data-value.success {
    color: var(--success);
}

.data-value.danger {
    color: var(--danger);
}

.data-value.primary {
    color: var(--primary);
}

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

.data-label {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.data-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
}

.data-indicator.up {
    background-color: #f0fff4;
    color: var(--success);
}

body.dark .data-indicator.up {
    background-color: #22543d;
    color: #9ae6b4;
}

.data-indicator.down {
    background-color: #fff5f5;
    color: var(--danger);
}

body.dark .data-indicator.down {
    background-color: #742a2a;
    color: #feb2b2;
}

.resize-handle {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    cursor: ns-resize;
    text-align: center;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.resize-handle::after {
    content: '';
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

body.dark .resize-handle::after {
    background-color: rgba(255, 255, 255, 0.1);
}

.resize-handle:hover::after {
    background-color: rgba(0, 0, 0, 0.2);
}

body.dark .resize-handle:hover::after {
    background-color: rgba(255, 255, 255, 0.2);
}
.resize-handle i{color:#666;font-size:10px;line-height:10px}

/* Вывод логов */
.output {
    font-family: var(--font-mono);
    background: #1a202c;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    height: 240px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-top: 1rem;
}

.log {
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid #2d3748;
}

.log.info {
    color: #90cdf4;
}

.log.success {
    color: #9ae6b4;
}

.log.error {
    color: #feb2b2;
}

.log.warn {
    color: #fbd38d;
}

.log-timestamp {
    color: #718096;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.log-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.log-badge.info {
    background-color: #2a4365;
    color: #90cdf4;
}

.log-badge.success {
    background-color: #22543d;
    color: #9ae6b4;
}

.log-badge.error {
    background-color: #742a2a;
    color: #feb2b2;
}

.log-badge.warn {
    background-color: #744210;
    color: #fbd38d;
}

/* Результаты тестов */
.test-results {
    margin-top: 1.5rem;
}

.test-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.test-results-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.test-results-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.test-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

body.dark .result-card {
    background: #2d3748;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.result-card .title {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.result-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.result-card.success .value {
    color: var(--success);
}

.result-card.danger .value {
    color: var(--danger);
}

.result-card.warning .value {
    color: var(--warning);
}

.result-card.primary .value {
    color: var(--primary);
}

/* Progress */
.progress-wrapper{height:6px;background:#e0e0e0;border-radius:3px;margin:4px 0;overflow:hidden}body.dark .progress-wrapper{background:#444}
#progress-bar{height:100%;width:0;background:#43a047;transition:width .3s}

/* Test items */
.test-item{display:flex;align-items:center;padding:.25rem;border-bottom:1px solid #eee}body.dark .test-item{border-color:#444}
.test-item label{flex:1;cursor:pointer;font-size:.85rem}
.test-item.passed{color:#43a047}
.test-item.failed{color:#e53935}
.test-item.running{color:#fb8c00}
.chip{font-size:.65rem;background:#ffd54f;color:#555;padding:.05rem .25rem;border-radius:3px;margin-left:.25rem}

/* Search and filters */
.search-box{margin-bottom:.3rem}
.search-box input{width:100%;padding:.3rem;border:1px solid #ccc;border-radius:4px;font-size:.8rem}body.dark .search-box input{background:#444;border-color:#555;color:#ddd}
.filter-tags{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.3rem;font-size:.75rem}
.filter-tags label{background:#e0e0e0;padding:.1rem .3rem;border-radius:3px;cursor:pointer}body.dark .filter-tags label{background:#444;color:#ddd}
.filter-tags input{margin-right:4px}
.status-filters{font-size:.75rem;margin-bottom:.3rem;display:flex;align-items:center;gap:.3rem}

.test-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-time{color:#999;margin:0 .5rem;font-size:.7rem}body.dark .test-time{color:#777}
.details-btn{background:none;border:1px solid #ccc;border-radius:3px;padding:.1rem .3rem;font-size:.7rem;cursor:pointer}body.dark .details-btn{border-color:#555;color:#ccc}

/* Modal */
.modal{display:none;position:fixed;z-index:100;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.5)}
.modal-content{background:#fff;margin:10% auto;padding:1rem;border-radius:6px;width:60%;max-width:600px;position:relative}body.dark .modal-content{background:#333}
.close{position:absolute;right:10px;top:5px;font-size:1.5rem;cursor:pointer}
#modal-content{max-height:300px;overflow:auto;background:#f5f5f5;padding:.5rem;font-family:monospace}body.dark #modal-content{background:#222}

/* Footer */
.app-footer{text-align:center;padding:.3rem;background:#f5f5f5;border-top:1px solid #e0e0e0;font-size:.75rem}body.dark .app-footer{background:#333;border-color:#444}

/* Utility */
.toastify{font-size:.8rem}
details summary{cursor:pointer;user-select:none;font-size:.85rem}
details summary:focus{outline:none}
@media (max-width:768px){.app-main{grid-template-columns:0 1fr;}.report-pane{display:none}}

.btn.small {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    min-height: 32px;
}

/* ================= Custom Enhancements (2025-05) ================= */

/* Sticky header for test list */
.list-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: inherit;
    backdrop-filter: blur(4px);
}

/* Zebra striping for test rows */
.test-row:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}
body.dark .test-row:nth-child(even) {
    background-color: rgba(255,255,255,0.05);
}

/* Status dot in front of test name */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.passed { background-color: var(--success); }
.status-dot.failed { background-color: var(--danger); }
.status-dot.skipped { background-color: var(--warning); }
.status-dot.warning { background-color: var(--warning); }

/* Tag pill */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    height: 20px;
    font-size: 0.7rem;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}
body.dark .tag-pill {
    background: #4a5568;
    color: var(--text-dark);
    border-color: var(--border-dark);
}

/* Column headers clickable */
.column-header {
    cursor: pointer;
    user-select: none;
}
.column-header:hover {
    color: var(--primary);
}

/* Smooth fade for list rendering */
.test-list-container, .test-list {
    transition: opacity 0.2s ease;
}
.test-list.loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ================= Microservices Monitoring ================= */
.microservices-section {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
body.dark .microservices-section {
    background: linear-gradient(to bottom right, rgba(45,55,72,0.9), rgba(35,45,62,0.7));
    border-color: rgba(255,255,255,0.05);
}
.microservices-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
    gap: 0.5rem;
}
.service-list .svc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
body.dark .service-list .svc {
    background: #4a5568;
    border-color: rgba(255,255,255,0.05);
}

/* Исправление проблем с перекрытием и видимостью */
.action-buttons {
    display: flex;
    gap: 8px;
    z-index: 10;
    position: relative;
}

.btn {
    position: relative;
    z-index: 5;
    white-space: nowrap;
    min-width: auto;
    padding: 0.5rem 1rem;
    height: auto;
    min-height: 38px;
}

.content-header {
    overflow: visible;
    margin-bottom: 1.5rem;
}

.premium-badge {
    z-index: 2;
    position: relative;
}

/* Отступы между секциями для лучшей видимости */
.dashboard-metrics, 
.config-card, 
.action-card, 
.charts-section,
.microservices-section, 
.console-card {
    margin-bottom: 1.5rem;
    overflow: visible;
    z-index: 1;
    position: relative;
}

/* Улучшение микросервисной секции */
.microservices-section {
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

body.dark .microservices-section {
    background-color: #2d3748;
}

/* Улучшение карточек для лучшего визуального разделения */
.metric-card {
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Исправление отступов и видимости кнопок */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

/* Коррекция модального окна и списка тестов */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.test-list {
    height: calc(100vh - 300px);
    overflow-y: auto;
}

/* Фиксы видимости кнопок и отступов между элементами */
.btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    margin: 0.25rem;
}

body.dark .btn {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

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

.btn-success:hover {
    background-color: #2f855a;
}

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

/* Исправление группы кнопок в секции действий */
.action-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.action-group {
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

body.dark .action-group {
    background: rgba(45,55,72,0.3);
    border-color: rgba(255,255,255,0.05);
}

/* Улучшенный селектор браузеров */
.environment-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.selector-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
}

.browser-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.browser-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
    gap: 0.5rem;
}

.browser-btn .browser-icon {
    font-size: 1.25rem;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

.browser-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.browser-btn.active {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
    border-color: #63b3ed;
    position: relative;
}

.browser-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #3182ce;
    border-radius: 50%;
    border: 2px solid white;
}

body.dark .browser-btn {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

body.dark .browser-btn:hover {
    background: rgba(45, 55, 72, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

body.dark .browser-btn.active {
    background: linear-gradient(135deg, #2c5282, #2b6cb0);
    border-color: #4299e1;
}

/* Прогресс-бар */
.progress-wrapper {
    margin-top: 1rem;
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

body.dark .progress-wrapper {
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3182ce, #4299e1);
    width: 0;
    transition: width 0.3s ease;
    position: relative;
}

.progress-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Улучшенная карточка конфигурации */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
}

.config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

body.dark .config-actions {
    border-color: rgba(255, 255, 255, 0.05);
}

.config-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Улучшенные фильтры отчета */
.report-filter-bar {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.filter-toggle-group {
    display: flex;
    background: #edf2f7;
    border-radius: 8px;
    padding: 4px;
    max-width: 100%;
    overflow-x: auto;
}

body.dark .filter-toggle-group {
    background: #2d3748;
}

.filter-btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #4a5568;
    transition: all 0.2s ease;
    outline: none;
    min-width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.dark .filter-btn {
    color: #a0aec0;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #2d3748;
}

body.dark .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.filter-btn.active {
    background: white;
    color: #3182ce;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark .filter-btn.active {
    background: #4a5568;
    color: #90cdf4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .main-actions, 
    .secondary-actions {
        grid-template-columns: 1fr;
    }
    
    .browser-selector {
        justify-content: center;
    }
    
    .browser-btn {
        min-width: 60px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .config-btn {
        width: 100%;
    }
}

/* Улучшения для элементов интерфейса, показанных на скриншотах */

/* Уведомления и аватар */
.header-controls {
    gap: 1rem;
}

.icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e53e3e;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3182ce;
}

.user-menu {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.3);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

/* Карточки метрик */
.dashboard-metrics {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.7;
}

.metric-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric-title i {
    font-size: 1.25rem;
    color: var(--primary);
    background: rgba(66, 153, 225, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary), #4299e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 10px;
    border-radius: 20px;
    width: fit-content;
}

.metric-change.positive {
    background-color: #f0fff4;
    color: #38a169;
}

.metric-change.negative {
    background-color: #fff5f5;
    color: #e53e3e;
}

/* Консоль и детализация */
.console-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.console-header {
    padding: 1rem 1.25rem;
    background: rgba(66, 153, 225, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark .console-header {
    background: rgba(66, 153, 225, 0.05);
}

.console-header h3 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.console-header h3 i {
    color: var(--primary);
}

.console-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.console-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.console-detail-label {
    font-size: 0.85rem;
    color: var(--secondary);
}

.styled-select {
    appearance: none;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    cursor: pointer;
    position: relative;
    color: var(--text-color);
}

body.dark .styled-select {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.select-wrapper {
    position: relative;
    width: fit-content;
}

.select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--secondary);
}

#console-output {
    height: 200px;
    overflow-y: auto;
    background: white;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

body.dark #console-output {
    background: #1a202c;
    color: #e2e8f0;
}

/* Среда запуска */
.browser-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.browser-btn {
    flex-direction: row;
    padding: 0.85rem 1rem;
    min-width: 120px;
    flex: 1;
}

.browser-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.browser-icon {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.3);
}

.browser-btn.active .browser-icon {
    background: white;
    color: #3182ce;
}

body.dark .browser-btn.active .browser-icon {
    background: #1a202c;
    color: #4299e1;
}

/* Кнопки конфигурации */
.config-actions {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.config-btn {
    min-width: 220px;
    padding: 0.75rem 1.25rem;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: white;
}

body.dark .config-btn {
    background: #2d3748;
    color: #e2e8f0;
}

.config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

body.dark .config-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Улучшенный тогглер фильтров отчета */
.filter-toggle-group {
    width: 100%;
    max-width: 400px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f7fafc;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

body.dark .filter-toggle-group {
    background: #2d3748;
}

.filter-btn {
    padding: 0.6rem 0.5rem;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: white;
    color: #3182ce;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark .filter-btn.active {
    background: #4a5568;
    color: #90cdf4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Дополнительные улучшения space UI */
.action-card,
.config-card,
.charts-section,
.microservices-section {
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.action-group,
.config-item,
.report-summary,
.metric-card {
    border-radius: 10px;
}

/* Красивые отступы везде */
.action-card h3,
.config-card .config-header h3,
.charts-section .charts-header h3,
.microservices-section .section-header h3,
.pipeline-card h3,
.console-card .console-header h3 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.action-card h3 i,
.config-card .config-header h3 i,
.charts-section .charts-header h3 i,
.microservices-section .section-header h3 i,
.pipeline-card h3 i,
.console-card .console-header h3 i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 8px;
}

body.dark .action-card h3 i,
body.dark .config-card .config-header h3 i,
body.dark .charts-section .charts-header h3 i,
body.dark .microservices-section .section-header h3 i,
body.dark .pipeline-card h3 i,
body.dark .console-card .console-header h3 i {
    background: rgba(66, 153, 225, 0.2);
}

/* Улучшения кликабельности и интерактивности элементов */

/* Лучшая интерактивность кнопок с четкими состояниями */
.btn {
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    z-index: 1;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Улучшение внешнего вида шрифта и читаемости */
.btn, button, input {
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
}

/* Улучшения стилей для селекторов */
.browser-btn, .filter-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.browser-btn::before, .filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(100%);
    transition: transform 0.25s ease;
    z-index: -1;
}

.browser-btn:hover::before, .filter-btn:hover::before {
    transform: translateY(0);
}

.browser-btn {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #4a5568;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.dark .browser-btn {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.browser-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.browser-btn.active {
    background: linear-gradient(135deg, #ebf4ff, #c3dafe);
    border-color: #4299e1;
    color: #2c5282;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
}

body.dark .browser-btn.active {
    background: linear-gradient(135deg, #2c5282, #2b6cb0);
    border-color: #4299e1;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.browser-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 6px;
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
}

body.dark .browser-icon {
    background: rgba(66, 153, 225, 0.2);
    color: #63b3ed;
}

.browser-btn.active .browser-icon {
    background: white;
    color: #3182ce;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark .browser-btn.active .browser-icon {
    background: #1a202c;
    color: #4299e1;
}

/* Улучшенные фильтры отчетов с высокой кликабельностью */
.filter-toggle-group {
    display: flex;
    background: #edf2f7;
    border-radius: 8px;
    padding: 4px;
    max-width: 100%;
    overflow-x: auto;
}

body.dark .filter-toggle-group {
    background: #2d3748;
}

.filter-btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #4a5568;
    transition: all 0.2s ease;
    outline: none;
    min-width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.dark .filter-btn {
    color: #a0aec0;
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #2d3748;
}

body.dark .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.filter-btn.active {
    background: white;
    color: #3182ce;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark .filter-btn.active {
    background: #4a5568;
    color: #90cdf4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Стилизация значков */
i[class*="fa-"] {
    position: relative;
    text-align: center;
    min-width: 1em;
}

/* Улучшения для консоли и селектов */
.select-wrapper {
    position: relative;
    display: inline-block;
}

.styled-select {
    appearance: none;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.dark .styled-select {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.styled-select:hover {
    border-color: #90cdf4;
    box-shadow: 0 1px 4px rgba(66, 153, 225, 0.1);
}

.styled-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #a0aec0;
    font-size: 0.8rem;
}

.select-wrapper.mini .styled-select {
    padding: 6px 28px 6px 10px;
    min-width: 90px;
    font-size: 0.85rem;
}

.styled-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.dark .styled-input {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.styled-input:hover {
    border-color: #90cdf4;
}

.styled-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Специальные улучшения для конфигурационных кнопок */
.config-btn {
    padding: 8px 16px;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 180px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    color: #475569;
    position: relative;
    overflow: hidden;
}

body.dark .config-btn {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #e2e8f0;
}

.config-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.config-btn:hover::before {
    transform: translateX(100%);
}

.config-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.config-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Активное состояние для интерактивных элементов */
.action-btn-main:active,
.action-btn-secondary:active,
.browser-btn:active,
.filter-btn:active,
.config-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
