/* HITL Approval Modal — Glassmorphism dark theme */

.modal-overlay--visible {
    opacity: 1;
    pointer-events: all;
}

/* Badge in topbar */
.hitl-badge {
    position: relative;
    animation: hitl-pulse 2s ease-in-out infinite;
}

.hitl-badge__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

@keyframes hitl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Modal card */
.hitl-modal {
    max-width: 420px;
    width: 90vw;
    border-radius: 16px;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hitl-modal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(251, 146, 60, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hitl-modal__icon {
    font-size: 24px;
}

.hitl-modal__title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

.hitl-modal__timer {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--warning, #fb923c);
    min-width: 50px;
    text-align: right;
}

.hitl-modal__body {
    padding: 20px;
}

.hitl-modal__description {
    font-size: 13px;
    color: var(--text-secondary, #94a3b8);
    margin: 0 0 12px 0;
}

.hitl-modal__tool {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
}

.hitl-modal__args {
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
    padding: 0 4px;
}

.hitl-modal__args ul {
    margin: 6px 0 0 16px;
    padding: 0;
    list-style: disc;
}

.hitl-modal__args li {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    margin-bottom: 2px;
}

.hitl-modal__progress {
    width: 100%;
    height: 4px;
    margin-top: 16px;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
}

.hitl-modal__progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.hitl-modal__progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--danger, #ef4444), var(--warning, #fb923c));
    border-radius: 2px;
    transition: width 1s linear;
}

.hitl-modal__progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--danger, #ef4444), var(--warning, #fb923c));
    border-radius: 2px;
}

.hitl-modal__footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hitl-modal__btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hitl-modal__btn.btn--primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.hitl-modal__btn.btn--primary:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.hitl-modal__btn.btn--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hitl-modal__btn.btn--danger:hover {
    background: rgba(239, 68, 68, 0.25);
}
