﻿/* Основні стилі для сторінки аналізу частот керування */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Clearfix для уникнення накладання */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Головна навігація */
.main-header {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-accent);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-logo {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.main-logo:hover {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    transform: scale(1.05);
}

.main-header h1 {
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--accent-primary), #5a67d8, #9f7aea);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

/* Burger Menu Button */
.menu-btn {
    width: 35px;
    height: 35px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    z-index: 1001;
}

.line {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    display: block;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(8, 145, 178, 0.25);
}

.menu-btn.active .line--1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active .line--2 {
    opacity: 0;
}

.menu-btn.active .line--3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Links */
.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--nav-dropdown-bg);
    backdrop-filter: blur(20px);
    min-width: 250px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--border-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    padding: 15px 0;
    margin-top: 10px;
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .link {
    display: block;
    padding: 12px 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.nav-links .link:hover {
    background: var(--nav-link-hover);
    border-left-color: var(--accent-primary);
    color: var(--text-accent);
    transform: translateX(5px);
}

.nav-links .link.active {
    background: var(--bg-button);
    border-left-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.nav-links .link.active:hover {
    background: var(--bg-button-hover);
    transform: translateX(8px);
}

/* Хедер аналізу */
header.analysis-header {
    background: var(--ca-page-header-bg);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-card);
    box-shadow: var(--shadow-primary);
}

.header-content h2 {
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-size: 2.2rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(45deg, var(--accent-primary), #6366f1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.quick-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    color: #e8eaed;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.6));
}

/* Контейнер аналізу */
.analysis-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* Секція вибору частот */
.frequency-selection-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    position: relative;
    z-index: 3;
}

.custom-frequency-card,
.standard-bands-card,
.selected-frequencies-card {
    background: var(--ca-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ca-card-border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--ca-card-shadow);
    position: relative;
    z-index: 4;
    margin-bottom: 20px;
}

.custom-frequency-card h3,
.standard-bands-card h3,
.selected-frequencies-card h3 {
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-primary), #6366f1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Кастомне введення частот */
.input-section {
    margin-bottom: 20px;
    background: var(--ca-surface-inset);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--ca-card-border);
}

.input-section h4 {
    color: #10b981;
    margin-bottom: 15px;
    font-size: 1rem;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.input-row input[placeholder*="каналів"] {
    flex: 0 0 140px;
    font-size: 0.9rem;
}

.input-row input {
    background: var(--ca-input-bg);
    border: 1px solid var(--ca-input-border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    flex: 1;
    min-width: 100px;
}

.input-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--focus-ring);
}

.input-row span {
    color: var(--ca-text-dim);
    font-weight: bold;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-btn {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Список кастомних частот */
.custom-frequencies-list h5 {
    color: #a855f7;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.custom-freq-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 10px;
    background: var(--ca-list-bg);
    border-radius: 8px;
    border: 1px solid var(--ca-card-border);
}

.no-custom {
    color: var(--ca-text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.9rem;
}

.custom-freq-item {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}

.custom-freq-item small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.custom-freq-item .remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Стандартні діапазони */
.band-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.band-category h4 {
    color: #f59e0b;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 1rem;
}

.bands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.standard-band-btn {
    background: var(--ca-surface-soft);
    border: 1px solid var(--ca-card-border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.standard-band-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.standard-band-btn.selected {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: white;
}

.band-name {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.band-info {
    color: var(--ca-text-dim);
    font-size: 0.75rem;
}

.bands-help {
    margin-top: 15px;
    padding: 10px;
    background: var(--ca-surface-inset);
    border-radius: 8px;
    border: 1px solid var(--ca-card-border);
}

.bands-help p {
    margin: 0;
    color: var(--ca-text-body);
    font-size: 0.85rem;
}

/* Вибрані частоти */
.selected-freq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
    padding: 15px;
    background: var(--ca-list-bg);
    border-radius: 10px;
    border: 1px solid var(--ca-card-border);
}

.no-selection {
    color: var(--ca-text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.selected-freq-item {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.selected-freq-item .remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Спектральна секція */
.spectrum-section {
    background: var(--ca-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ca-card-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--ca-card-shadow);
    position: relative;
    z-index: 2;
    clear: both;
    display: block;
    width: 100%;
}

.spectrum-section h3 {
    color: #f59e0b;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spectrum-visualization {
    width: 100%;
    height: 100%;
    background: var(--ca-spectrum-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 10px;
    display: block;
    align-items: center;
    justify-content: center;
    color: var(--ca-text-dim);
    font-size: 1.1rem;
}

.no-spectrum {
    color: var(--ca-text-muted);
    font-style: italic;
}

/* Результати аналізу */
.analysis-results-section {
    background: var(--ca-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ca-card-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--ca-card-shadow);
    position: relative;
    z-index: 2;
    clear: both;
    display: block;
    width: 100%;
}

.analysis-results-section h3 {
    color: #a855f7;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(45deg, #a855f7, #9333ea);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.analysis-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: var(--ca-tab-bar-bg);
    padding: 5px;
    border-radius: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: var(--ca-text-dim);
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
}

.tab-btn:hover {
    background: var(--ca-surface-soft);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
}

.tab-content {
    margin-top: 20px;
}

.tab-panel {
    display: none;
    min-height: 200px;
    padding: 20px;
    background: var(--ca-panel-bg);
    border-radius: 10px;
    border: 1px solid var(--ca-card-border);
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
    border-color: var(--border-accent);
    box-shadow: var(--shadow-accent);
}

.no-analysis {
    color: var(--ca-text-muted);
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
}

/* Радіо розрахунки */
.radio-calculations-section {
    background: var(--ca-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ca-card-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--ca-card-shadow);
}

.radio-calculations-section h3 {
    color: var(--accent-primary);
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-primary), #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.radio-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: var(--ca-tab-bar-bg);
    padding: 5px;
    border-radius: 10px;
    flex-wrap: wrap;
}

.radio-tab-btn {
    flex: 1;
    background: transparent;
    color: var(--ca-text-dim);
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
}

.radio-tab-btn:hover {
    background: var(--ca-surface-soft);
    color: var(--text-primary);
}

.radio-tab-btn.active {
    background: linear-gradient(45deg, var(--accent-primary), #3b82f6);
    color: white;
}

.radio-tab-panel {
    display: none;
    min-height: 200px;
    padding: 20px;
    background: var(--ca-panel-bg);
    border-radius: 10px;
    border: 1px solid var(--ca-card-border);
}

.radio-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.radio-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: var(--ca-text-body);
    font-weight: 500;
    font-size: 0.9rem;
}

.control-group input,
.control-group select {
    background: var(--ca-input-bg);
    border: 1px solid var(--ca-input-border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--focus-ring);
}

.calculate-btn {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.no-calculations {
    color: var(--ca-text-muted);
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Антенні рекомендації */
.antenna-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.antenna-info h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-align: center;
}

.antenna-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.antenna-type {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.antenna-type h5 {
    color: #10b981;
    margin-bottom: 10px;
}

.antenna-type p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Швидкі шаблони */
.quick-templates {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-templates h4 {
    color: #f59e0b;
    margin-bottom: 15px;
    text-align: center;
}

.template-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.template-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.3;
}

.template-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(99, 102, 241, 0.2));
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.template-btn small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Простий калькулятор */
.simple-calculator {
    padding: 20px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--ca-text-strong);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group select,
.input-group input {
    background: var(--ca-input-bg);
    border: 1px solid var(--ca-input-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--focus-ring);
}

.unit {
    color: var(--ca-text-dim);
    font-size: 0.9rem;
    margin-left: 8px;
}

.calculate-btn-large {
    background: linear-gradient(45deg, var(--accent-primary), #3b82f6);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 25px;
}

.calculate-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.simple-results {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Детальний калькулятор */
.detailed-calculator {
    padding: 20px;
}

.advanced-inputs {
    margin-bottom: 25px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-row .input-group {
    margin-bottom: 0;
}

.detailed-results {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

/* Довідка антен */
.antenna-reference {
    padding: 20px;
}

.antenna-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.antenna-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.antenna-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.antenna-card h5 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.antenna-specs p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.antenna-specs strong {
    color: var(--accent-primary);
}

.antenna-specs ul {
    margin: 10px 0;
    padding-left: 20px;
}

.antenna-specs li {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

.antenna-tips {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.antenna-tips h5 {
    color: #f59e0b;
    margin-bottom: 15px;
    text-align: center;
}

.antenna-tips ul {
    margin: 0;
    padding-left: 20px;
}

.antenna-tips li {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.antenna-tips strong {
    color: #f59e0b;
}

/* Результати розрахунків */
.results-summary {
    padding: 0;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header h4 {
    color: var(--accent-primary);
    margin: 0;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.result-card h5 {
    color: var(--accent-primary);
    margin: 0 0 10px 0;
    font-size: 1rem;
    text-align: center;
}

.result-card p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.result-card strong {
    color: white;
}

.quality-card {
    border-left: 3px solid var(--accent-primary);
}

.recommendation {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.recommendation h5 {
    color: #f59e0b;
    margin: 0 0 10px 0;
    text-align: center;
}

.recommendation p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Детальні результати */
.detailed-results-content {
    padding: 0;
}

.parameters-summary {
    margin-bottom: 25px;
}

.parameters-summary h4 {
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 15px;
}

.param-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.param-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.param-group h5 {
    color: #f59e0b;
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 0.95rem;
}

.param-group p {
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.ranges-analysis {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.ranges-analysis h4 {
    color: #10b981;
    text-align: center;
    margin-bottom: 15px;
}

.ranges-list p {
    margin: 8px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
}

/* Респонсивність для мобільних */
@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .param-grid {
        grid-template-columns: 1fr;
    }
    
    .antenna-grid {
        grid-template-columns: 1fr;
    }
    
    .template-buttons {
        grid-template-columns: 1fr;
    }
}

/* Стилі для частотного діапазону */
.frequency-inputs {
    margin-bottom: 20px;
}

.frequency-inputs small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Аналіз частотного діапазону */
.frequency-analysis {
    margin-top: 25px;
}

.frequency-analysis h4 {
    color: #10b981;
    text-align: center;
    margin-bottom: 20px;
}

.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.summary-card.best {
    border-left: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.summary-card.worst {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.summary-card h5 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.summary-card p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.summary-card strong {
    color: white;
    font-size: 1rem;
}

/* Таблиця результатів */
.results-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.frequency-results-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ca-table-bg);
    font-size: 0.85rem;
}

.frequency-results-table th,
.frequency-results-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--ca-card-border);
}

.frequency-results-table th {
    background: var(--ca-table-head-bg);
    color: var(--heading-accent);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
}

.frequency-results-table td {
    color: var(--ca-text-strong);
}

.frequency-results-table tbody tr:hover {
    background: var(--ca-surface-inset);
}

.frequency-results-table td:first-child {
    font-weight: bold;
    color: var(--text-primary);
}

.channel-number {
    font-size: 0.7rem;
    color: var(--accent-primary);
    font-weight: normal;
    display: block;
    margin-bottom: 2px;
}

/* Рекомендації по частотах */
.frequency-recommendations {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.frequency-recommendations h5 {
    color: #f59e0b;
    margin: 0 0 10px 0;
    text-align: center;
}

.frequency-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.frequency-recommendations li {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.frequency-recommendations strong {
    color: #f59e0b;
}

/* Адаптивність для таблиці */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .frequency-results-table {
        font-size: 0.75rem;
    }
    
    .frequency-results-table th,
    .frequency-results-table td {
        padding: 6px 4px;
    }
}

/* Панель допомоги */
.help-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--ca-help-bg);
    backdrop-filter: blur(15px);
    border-left: 2px solid var(--border-accent);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.help-panel.active {
    right: 0;
}

.help-header {
    padding: 20px;
    border-bottom: 1px solid var(--ca-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ca-surface-inset);
}

.help-header h4 {
    color: var(--heading-accent);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.help-content {
    padding: 20px;
    color: var(--ca-text-body);
    line-height: 1.5;
}

.help-content h5 {
    color: var(--heading-accent);
    margin: 20px 0 10px 0;
}

.help-content ol,
.help-content ul {
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 8px;
}

.help-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, var(--accent-primary), #6366f1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.help-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.6);
}

/* Анімації */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Статистика аналізу */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--ca-surface-soft);
    border: 1px solid var(--ca-card-border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.stat-card h4 {
    color: #a855f7;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

/* Результати аналізу */
.analysis-content {
    line-height: 1.6;
}

.analysis-card {
    background: var(--ca-surface-soft);
    border: 1px solid var(--ca-card-border);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.analysis-card h5 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.conflict-group {
    background: var(--ca-surface-soft);
    border: 1px solid var(--ca-card-border);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.conflict-group.critical {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.conflict-group.moderate {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.conflict-group.low {
    border-color: rgba(112, 161, 255, 0.4);
    background: rgba(112, 161, 255, 0.05);
}

.conflict-group h5 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.conflict-group.critical h5 {
    color: #ef4444;
}

.conflict-group.moderate h5 {
    color: #f59e0b;
}

.conflict-group.low h5 {
    color: #70a1ff;
}

.conflict-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conflict-group li {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--ca-surface-inset);
    line-height: 1.4;
}

.conflict-group li strong {
    color: var(--accent-primary);
}

.conflict-group.critical li strong {
    color: #ef4444;
}

.conflict-group.moderate li strong {
    color: #f59e0b;
}

.conflict-group.low li strong {
    color: #70a1ff;
}

.conflict-group li em {
    display: block;
    font-size: 0.85em;
    color: var(--ca-text-muted);
    margin-top: 3px;
    font-style: normal;
}

.distance {
    color: #70a1ff;
    font-weight: bold;
    font-size: 0.85em;
}

/* Підсумки результатів */
.impacts-summary, .harmonics-summary {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.impacts-summary p, .harmonics-summary p {
    margin: 0;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Спектральна візуалізація */
.spectrum-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.spectrum-display h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-align: center;
}

/* Частотна шкала */
.frequency-scale {
    margin-bottom: 20px;
}

.frequency-scale h5 {
    color: #a855f7;
    margin-bottom: 10px;
}

.scale-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.scale-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.scale-bar.active {
    border-color: var(--bar-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.scale-bar.active::before {
    content: '●';
    position: absolute;
    top: -5px;
    right: -5px;
    color: var(--bar-color);
    font-size: 16px;
}

.scale-label {
    display: block;
    font-weight: bold;
    color: var(--bar-color);
    margin-bottom: 5px;
}

.scale-range {
    font-size: 0.8em;
    color: #a0a0a0;
}

/* Підсумок конфліктів */
.conflict-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.conflict-summary h5 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.conflict-status {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.conflict-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.conflict-status.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.conflict-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conflict-list li {
    padding: 5px 0;
    color: #e8eaed;
}

/* Список частот */
.frequency-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
}

.frequency-list h5 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.frequency-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.frequency-item.no-conflict {
    border-left-color: #10b981;
}

.frequency-item.low-conflict {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.frequency-item.high-conflict {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.freq-label {
    font-weight: bold;
    color: var(--accent-primary);
}

.freq-range, .freq-point {
    color: #e8eaed;
    font-family: monospace;
}

.freq-channels {
    color: #a0a0a0;
    font-size: 0.9em;
}

.conflict-indicator {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

/* Повідомлення */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Респонсивність */
@media (max-width: 1200px) {
    .selection-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        gap: 15px;
        padding: 15px;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        min-width: 220px;
        right: -10px;
    }

    .nav-links .link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
    }

    .main-navigation {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        right: 0;
        left: 0;
        margin: 10px 20px 0;
        min-width: auto;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .bands-grid {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .radio-controls {
        grid-template-columns: 1fr;
    }
    
    .antenna-recommendations {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .help-panel {
        width: 100%;
        right: -100%;
    }
}

/* ========== ПРОФЕСІЙНИЙ FPV АНАЛІЗ ========== */

.professional-analysis-trigger {
    background: rgba(0, 212, 255, 0.05);
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
}

.professional-analysis-btn {
    background: linear-gradient(135deg, var(--accent-primary), #0ea5e9);
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.professional-analysis-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.analysis-description {
    color: var(--ca-text-dim);
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.professional-fpv-analysis {
    background: var(--ca-panel-bg);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid var(--ca-card-border);
}

.professional-fpv-analysis .analysis-header {
    border-bottom: 2px solid var(--border-accent);
    padding-bottom: 20px;
    margin-bottom: 25px;
    background: transparent;
    box-shadow: none;
}

.analysis-header h3 {
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-primary), #0ea5e9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.analysis-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.timestamp {
    color: var(--ca-text-muted);
    font-size: 0.9rem;
}

.risk-indicator {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.risk-indicator.risk-low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.risk-indicator.risk-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.risk-indicator.risk-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.risk-indicator.risk-critical {
    background: rgba(220, 38, 38, 0.3);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.analysis-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding: 5px;
    border-radius: 10px;
    background: var(--ca-tab-bar-bg);
}

.analysis-tabs .tab-btn {
    background: transparent;
    color: var(--ca-text-dim);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.analysis-tabs .tab-btn:hover {
    background: var(--ca-surface-soft);
    color: var(--text-accent);
}

.analysis-tabs .tab-btn.active {
    background: var(--bg-button);
    color: var(--text-on-accent);
    font-weight: 600;
}

.fpv-tab-content {
    min-height: 400px;
}

.fpv-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.fpv-tab-panel.active {
    display: block;
}

/* Огляд */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: var(--ca-surface-soft);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--ca-card-border);
    border-left-width: 4px;
}

.overview-card.risk-low {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.overview-card.risk-medium {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.overview-card.risk-high {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.overview-card.risk-critical {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    animation: pulse 2s infinite;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.card-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.risk-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.overview-card.risk-low .risk-value {
    color: #10b981;
}

.overview-card.risk-medium .risk-value {
    color: #f59e0b;
}

.overview-card.risk-high .risk-value {
    color: #ef4444;
}

.overview-card.risk-critical .risk-value {
    color: #dc2626;
}

.risk-description {
    font-size: 0.9rem;
    color: var(--ca-text-dim);
    font-weight: 500;
}

.interference-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.critical-count {
    font-size: 0.9rem;
    color: #ef4444;
    font-weight: 600;
}

.systems-list {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Розподіл інтерференцій */
.interference-summary {
    margin-bottom: 30px;
}

.interference-summary h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.interference-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.interference-type-card {
    background: var(--ca-surface-soft);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.interference-type-card.red {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
}

.interference-type-card.orange {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.05);
}

.interference-type-card.yellow {
    border-color: rgba(234, 179, 8, 0.5);
    background: rgba(234, 179, 8, 0.05);
}

.interference-type-card.blue {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}

.interference-type-card.purple {
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(147, 51, 234, 0.05);
}

.interference-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.type-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.type-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.type-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.high-severity {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 600;
}

/* Критичні частоти */
.critical-frequencies, .vulnerable-systems {
    margin-bottom: 25px;
}

.critical-frequencies h4, .vulnerable-systems h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.frequency-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
}

.frequency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.frequency-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.frequency {
    font-family: monospace;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.risk-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.risk-score {
    font-weight: 600;
    color: #e8eaed;
    min-width: 30px;
    text-align: right;
}

/* Вразливі системи */
.systems-vulnerability {
    display: grid;
    gap: 15px;
}

.vulnerable-system {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #ef4444;
}

.system-name {
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.vulnerability-score {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 8px;
}

.system-details {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Список інтерференцій */
.interference-list {
    display: grid;
    gap: 20px;
}

.interference-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #a0a0a0;
    transition: all 0.3s ease;
}

.interference-item.severity-low {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.interference-item.severity-medium {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.interference-item.severity-high {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.interference-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.interference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.interference-header h5 {
    color: #e8eaed;
    font-size: 1.1rem;
    margin: 0;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.severity-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.severity-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.interference-details {
    display: grid;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #a0a0a0;
    font-weight: 500;
}

.channel-conflicts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.channel-conflict {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
}

/* SNR Аналіз */
.snr-analysis {
    display: grid;
    gap: 25px;
}

.system-snr-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.system-snr-card h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.channel-snr-list {
    display: grid;
    gap: 15px;
}

.channel-snr-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #a0a0a0;
}

.channel-snr-item.quality-excellent {
    border-left-color: #10b981;
}

.channel-snr-item.quality-good {
    border-left-color: #3b82f6;
}

.channel-snr-item.quality-fair {
    border-left-color: #f59e0b;
}

.channel-snr-item.quality-poor {
    border-left-color: #ef4444;
}

.channel-snr-item.quality-unusable {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.channel-freq {
    font-family: monospace;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.snr-value {
    font-weight: 700;
    color: #e8eaed;
    font-size: 1.1rem;
}

.quality-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quality-badge.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.quality-badge.good {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.quality-badge.fair {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.quality-badge.poor {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.quality-badge.unusable {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.channel-details {
    display: grid;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-row span:first-child {
    color: #a0a0a0;
}

.detail-row span:last-child {
    color: #e8eaed;
    font-family: monospace;
}

.noise-sources {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.noise-sources strong {
    color: #a0a0a0;
    display: block;
    margin-bottom: 5px;
}

.noise-source {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-left: 10px;
    font-family: monospace;
}

/* Рекомендації */
.recommendations-list {
    display: grid;
    gap: 20px;
}

.recommendation-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #a0a0a0;
    transition: all 0.3s ease;
}

.recommendation-item.priority-high {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.recommendation-item.priority-medium {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.recommendation-item.priority-low {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recommendation-header h5 {
    color: #e8eaed;
    margin: 0;
    font-size: 1.1rem;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.priority-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.recommendation-content {
    display: grid;
    gap: 12px;
}

.recommendation-type,
.recommendation-description,
.technical-solution,
.expected-improvement {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.recommendation-type strong,
.recommendation-description strong,
.technical-solution strong,
.expected-improvement strong {
    color: var(--accent-primary);
    display: block;
    margin-bottom: 5px;
}

.no-issues {
    text-align: center;
    padding: 40px 20px;
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

/* Респонсивність для професійного аналізу */
@media (max-width: 768px) {
    .analysis-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .analysis-tabs {
        flex-direction: column;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .interference-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .channel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .interference-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ========== РОЗШИРЕНИЙ АНАЛІЗ КОНФЛІКТІВ КЕРУВАННЯ ========== */

/* Enhanced Control Conflicts Tab */
.control-conflicts-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-conflicts-header h4 {
    margin: 0;
    font-weight: 600;
}

.conflict-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.conflict-section h5 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.conflict-section h6 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-weight: 500;
}

.harmonic-conflicts {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.harmonic-conflict {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.harmonic-conflict.critical {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: #dc3545;
}

.harmonic-conflict.moderate {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%);
    border-color: #fd7e14;
}

.harmonic-conflict.low {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-color: #28a745;
}

.extended-analysis-info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.extended-analysis-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

.extended-analysis-info li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.detailed-analysis-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.detailed-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.no-conflicts {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #10b981;
}

.no-conflicts h5 {
    color: #10b981;
    margin-bottom: 10px;
}

.conflict-group ul li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.conflict-group ul li:last-child {
    border-bottom: none;
}

/* Стили для нових типів конфліктів */
.conflict-group.harmonic {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%);
    border-left: 4px solid #fd7e14;
}

.conflict-group.intermodulation {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-left: 4px solid #dc3545;
}

.conflict-group.desensitization {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border-left: 4px solid #17a2b8;
}

.conflict-group.adjacent {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
    border-left: 4px solid #6c757d;
}

/* Severity groups and conflict details */
.severity-group {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.severity-group strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.conflict-main {
    margin-bottom: 8px;
}

.conflict-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
}

.harmonic-info,
.im-info,
.desens-info {
    background: #6c757d;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.harmonic-info {
    background: #fd7e14;
}

.im-info {
    background: #dc3545;
}

.desens-info {
    background: #17a2b8;
}

.technical-analysis {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Enhanced conflict items styling */
.conflict-group li {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.conflict-group li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.conflict-group.critical li {
    border-left: 4px solid #dc3545;
}

.conflict-group.moderate li,
.conflict-group.harmonic li,
.conflict-group.adjacent li {
    border-left: 4px solid #fd7e14;
}

.conflict-group.low li {
    border-left: 4px solid #28a745;
}

.conflict-group.intermodulation li {
    border-left: 4px solid #dc3545;
}

.conflict-group.desensitization li {
    border-left: 4px solid #17a2b8;
}

/* Responsive design for control conflicts */
@media (max-width: 768px) {
    .control-conflicts-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .harmonic-conflict {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .detailed-analysis-btn {
        width: 100%;
    }
    
    .conflict-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .severity-group {
        padding: 8px;
    }
}

/* Splash Screen стилі */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: #e8eaed;
}

.logo-animation {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.splash-logo {
    animation: logoFloat 3s ease-in-out infinite, logoRotate 8s linear infinite;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    transition: all 0.3s ease;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring-delay {
    animation-delay: 1s;
}

.splash-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
    background: linear-gradient(45deg, var(--accent-primary), #5a67d8, #9f7aea);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* Анімації */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes titleGlow {
    0% { 
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); 
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(90, 103, 216, 0.3); 
        transform: scale(1.02);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Адаптивні стилі для splash screen */
@media (max-width: 768px) {
    .splash-logo {
        width: 100px;
        height: 100px;
    }
    
    .pulse-ring {
        width: 140px;
        height: 140px;
    }
    
    .splash-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 80px;
        height: 80px;
    }
    
    .pulse-ring {
        width: 120px;
        height: 120px;
    }
    
    .splash-title {
        font-size: 1.8rem;
    }
}