/* ============ VAG UI STYLES ============ */

.vag-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.vag-scan-progress {
    margin: 15px 0;
    padding: 12px;
    background: #1a1e2a;
    border-radius: 8px;
}

.vag-progress-bar-wrapper {
    background: #0a0e17;
    border-radius: 4px;
    overflow: hidden;
    height: 6px;
    margin-top: 8px;
}

.vag-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transition: width 0.3s ease;
    width: 0%;
}

.vag-scan-status {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* Карточки блоков */
.vag-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.vag-module-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #1a1e2a;
    border: 1px solid #2a2e3d;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.vag-module-card:hover {
    background: #22283a;
    border-color: #4facfe;
    transform: translateY(-1px);
}

.vag-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.vag-module-info {
    flex: 1;
    min-width: 0;
}

.vag-module-name {
    font-weight: 600;
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vag-module-addr {
    font-size: 11px;
    color: #6a6f7a;
}

.vag-module-status {
    color: #22c55e;
    font-size: 20px;
    text-shadow: 0 0 4px #22c55e;
}

/* Модалка блока */
.vag-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vag-modal {
    background: #11161f;
    border: 1px solid #2a2e3d;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vag-modal-header {
    padding: 16px 20px;
    background: #0d121b;
    border-bottom: 1px solid #1e2532;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vag-modal-title {
    font-size: 16px;
    font-weight: 600;
}

.vag-modal-close {
    background: none;
    border: none;
    color: #6a6f7a;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.vag-modal-close:hover { color: #ef4444; }

.vag-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.vag-info-block {
    background: #1a1e2a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #4facfe;
}

.vag-info-block h4 {
    margin-bottom: 10px;
    color: #4facfe;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vag-info-table {
    width: 100%;
    border-collapse: collapse;
}

.vag-info-table td {
    padding: 6px 0;
    border-bottom: 1px solid #2a2e3d;
    font-size: 13px;
}

.vag-info-table td:first-child {
    color: #9ca3af;
    width: 45%;
}

.vag-dtc-block {
    background: #1a1e2a;
    padding: 15px;
    border-radius: 10px;
}

.vag-dtc-block h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ef4444;
}

.vag-dtc-item {
    background: #0d121b;
    border-left: 3px solid #f59e0b;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 6px;
}

.vag-dtc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.vag-dtc-code {
    font-family: monospace;
    font-weight: bold;
    font-size: 15px;
    color: #e0e0e0;
}

.vag-dtc-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: #2a2e3d;
    border-radius: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vag-dtc-desc {
    font-size: 13px;
    color: #d1d5db;
}

.btn.active { background: #4facfe; color: white; }

@media (max-width: 600px) {
    .vag-modules-grid { grid-template-columns: 1fr; }
    .vag-modal { max-height: 95vh; }
    .vag-modal-body { padding: 15px; }
}
