/* Стили для страницы социального графа */

/* Стили для контейнера с графом */
#graph-container {
    width: 100%;
    height: 70vh;
    background-color: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Подсветка активных элементов графа */
.vis-active {
    box-shadow: 0 0 10px #4F46E5;
}

/* Стили для панели с метриками */
.metrics-panel {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-card {
    transition: all 0.2s ease-in-out;
}

.metric-card:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* Стили для списков */
.node-list li, .edge-list li {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.node-list li:hover, .edge-list li:hover {
    background-color: #f3f4f6;
}

/* Стили для кнопок управления графом */
.graph-controls {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.control-button {
    transition: all 0.2s ease-in-out;
}

.control-button:hover {
    transform: translateY(-2px);
}

/* Стили для слайдеров */
.slider-control {
    width: 100%;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4F46E5;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4F46E5;
    border-radius: 50%;
    cursor: pointer;
}

/* Стили для контейнера с сообществами */
#communities-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

#communities-container > div {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

#communities-container > div:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Стили для подсказок */
.vis-tooltip {
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    color: #1f2937 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem !important;
    z-index: 10 !important;
}

/* Стили для поискового поля */
.search-control {
    position: relative;
}

.search-control input {
    padding-left: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.search-control svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    #graph-container {
        height: 50vh;
    }
    
    #communities-container {
        grid-template-columns: 1fr;
    }
    
    .control-section {
        margin-bottom: 1.5rem;
    }
} 