/* Container Card Styling */
.container-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
    background: var(--color-surface);
}

.container-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.container-card .card-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
}

.container-card .card-body {
    padding: 1rem;
}

/* Container Info Rows */
.container-info {
    font-size: 0.9rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--color-muted);
    font-weight: 500;
}

.info-value {
    color: var(--color-text, #f9feff);
    word-break: break-all;
}

.info-value a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: var(--color-primary);
}

/* Action Buttons */
.action-buttons .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

/* Metrics Panel */
.metrics-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.metrics-panel.show {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
}

.metrics-content {
    background-color: var(--color-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item {
    margin-bottom: 0.5rem;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.progress {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Toggle Button */
.toggle-metrics {
    transition: all 0.2s ease;
}

.toggle-metrics:hover {
    transform: scale(1.02);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Server Group Header */
h5.text-muted {
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}