/* Основной контейнер */
.bm-container {
    --primary-color: var(--accent-color, #45c24a);
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
}

/* Заголовок и контролы */
.bm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bm-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

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

.bm-refresh {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bm-refresh:hover {
    background: var(--accent-color-hover);
    transform: translateY(-1px);
}

.bm-last-update {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Серверы */
.bm-servers {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bm-server {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bm-server:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bm-server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bm-server-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.bm-server-version {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.bm-server-status {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    /* min-width: 120px; */
}

.bm-server-status.online {
    background: var(--primary-color);
    color: #fff;
}

.bm-server-status.offline {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.bm-server-status.maintenance {
    background: var(--warning-color);
    color: #000;
}

/* Тело сервера */
.bm-server-body {
    margin-bottom: 1.5rem;
}

.bm-server-description {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bm-server-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.bm-stat {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bm-stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.bm-stat-value {
    color: var(--text-primary);
    font-weight: 500;
}

.bm-server-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.bm-copy-ip,
.bm-map-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.bm-copy-ip {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
}

.bm-copy-ip:hover {
    background: var(--hover-bg);
}

.bm-map-link {
    background: var(--primary-color);
    color: #fff;
}

.bm-map-link:hover {
    background: var(--accent-color-hover);
    transform: translateY(-1px);
}

/* Прогресс бар */
.bm-progress {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.bm-progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Статистика */
.bm-stats {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
}

.bm-stats-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 1rem; */
    gap: 15px;
}

/* Уведомления */
.bm-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    z-index: 1000;
}

.bm-error {
    background: var(--error-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bm-server-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bm-server-status {
        width: 100%;
    }
    
    .bm-server-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bm-server-actions {
        flex-direction: column;
    }
    
    .bm-copy-ip,
    .bm-map-link {
        width: 100%;
        justify-content: center;
    }
}

/* Анимации */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Контейнер для графика */
.bm-server-footer {
    position: relative;
    padding: 15px 0;
}

/* График */
.bm-server-chart {
    height: 150px !important;
    width: 100% !important;
    margin-top: 15px;
    background: rgba(25, 28, 31, 0.3);
    border-radius: 8px;
    padding: 10px;
}

/* Стили для осей и текста графика */
.bm-server-chart .chartjs-text {
    fill: var(--text-secondary) !important;
}

.bm-server-chart .chartjs-grid-line {
    stroke: rgba(255, 255, 255, 0.1) !important;
}

.bm-server-footer {
    position: relative;
    padding: 15px 0;
}

.bm-server-chart {
    height: 150px !important;
    margin-top: 15px;
    background: rgba(25, 28, 31, 0.3);
    border-radius: 8px;
    padding: 10px;
}