.user-vms {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding: 10px 0;
}

.vm-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    width: 260px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.vm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.vm-card-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    color: #222;
}

.vm-card-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.vm-card-status.online { color: #28a745; }
.vm-card-status.offline { color: #dc3545; }
.vm-card-status.starting { color: #007bff; }

.vm-card-info {
    font-size: 14px;
    background: #f0f4f8;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    min-height: 80px;
    color: #333;
}

.resource-bar {
    margin-bottom: 6px;
}

.resource-label {
    font-size: 12px;
    margin-bottom: 2px;
    color: #555;
}

.resource-fill {
    height: 8px;
    border-radius: 6px;
    background: #28a745;
    transition: width 0.3s ease-in-out;
}

.resource-fill.cpu { background: #007bff; }
.resource-fill.ram { background: #28a745; }
.resource-fill.disk { background: #ffc107; }

.vm-card-buttons {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.vm-card-buttons button {
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s all;
}

.vm-action-btn[data-action="start"] { background: #28a745; color: #fff; }
.vm-action-btn[data-action="start"]:hover { background: #218838; }

.vm-action-btn[data-action="stop"] { background: #dc3545; color: #fff; }
.vm-action-btn[data-action="stop"]:hover { background: #c82333; }

.vm-action-btn[data-action="restart"] { background: #ffc107; color: #222; }
.vm-action-btn[data-action="restart"]:hover { background: #e0a800; }

.vm-card-result {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}

.vm-card-result.success { color: #28a745; font-weight: 600; }
.vm-card-result.error { color: #dc3545; font-weight: 600; }
.vm-card-result.loading { color: #007bff; font-weight: 600; }
