
.evart-hmi-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.evart-hmi-heading {
    font-size: 20px;
    margin: 0 0 8px;
}

.evart-hmi-subtitle {
    margin: 0 0 16px;
    font-size: 14px;
    color: #4b5563;
}

.evart-hmi-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}
.evart-hmi-upload-field {
    flex: 1 1 220px;
}

.evart-hmi-label {
    font-weight: 600;
    font-size: 14px;
}

.evart-hmi-thumb {
    margin-top: 8px;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
}
.evart-hmi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evart-hmi-button-primary {
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #111827;
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.16);
}
.evart-hmi-button-primary:hover {
    background: #1f2937;
}
.evart-hmi-button-secondary {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
    cursor: pointer;
}

.evart-hmi-hint {
    font-size: 12px;
    margin-top: 4px;
    color: #4b5563;
}

.evart-hmi-result-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.evart-hmi-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 1 1 220px;
}
.evart-hmi-metric-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
}
.evart-hmi-metric-label {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 4px;
}
.evart-hmi-metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.evart-hmi-result-text {
    flex: 1 1 260px;
}
.evart-hmi-index-line {
    font-size: 15px;
    margin: 0 0 8px;
}
.evart-hmi-index-line span {
    color: #4b5563;
}

.evart-hmi-bar-wrap {
    margin: 8px 0 12px;
}
.evart-hmi-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.evart-hmi-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
}

.evart-hmi-proof-box h4 {
    margin-top: 16px;
    margin-bottom: 6px;
}

.evart-hmi-report-block {
    margin-top: 16px;
    margin-bottom: 10px;
}
.evart-hmi-report-toggle {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
}
.evart-hmi-report-form {
    margin-top: 10px;
}
.evart-hmi-report-message {
    font-size: 13px;
    margin-top: 4px;
}

/* Badge overlay */
.evart-hmi-card-wrap {
    position: relative;
    display: block;
}
.evart-hmi-card-wrap > .evart-hmi-badge {
    z-index: 6;
    transform: scale(0.55);
    transform-origin: top left;
}
@media (min-width: 768px) {
    .evart-hmi-card-wrap > .evart-hmi-badge {
        transform: scale(0.28);
    }
}
.evart-hmi-thumb-wrap {
    position: relative;
    display: inline-block;
}
.evart-hmi-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15,23,42,0.92);
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 4px 14px rgba(15,23,42,0.25);
    border: 1px solid rgba(255,255,255,0.28);
    pointer-events: none;
    z-index: 5;
    text-transform: uppercase;
}
.evart-hmi-badge-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: none;
    background-size: cover;
    background-position: center;
    background-color: transparent;
    flex-shrink: 0;
}
.evart-hmi-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #fff;
}
.evart-hmi-badge-title {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.evart-hmi-badge-sub {
    font-size: 8px;
    letter-spacing: 0.18em;
    font-weight: 500;
    opacity: 0.8;
}

/* Dashboard table and logs */
.evart-hmi-alert {
    border-color: #fbbf24;
    background: #fffbeb;
}

.evart-hmi-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}
.evart-hmi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.evart-hmi-table th,
.evart-hmi-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 6px;
    text-align: left;
}
.evart-hmi-table th {
    font-weight: 600;
    background: #f9fafb;
}

.evart-hmi-log-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.evart-hmi-log-list li {
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}
.evart-hmi-log-date {
    margin-left: 6px;
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 640px) {
    .evart-hmi-result-layout {
        flex-direction: column;
    }
}
