/* Panel del Agente Autónomo SIAN-X */
.sian-agent-panel {
    background: rgba(20, 24, 33, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 18px;
    color: #e0e6ed;
    font-family: 'Outfit', 'Inter', sans-serif;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 230, 118, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sian-agent-panel:hover {
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 230, 118, 0.1);
}

.agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.agent-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00e676;
}

.agent-status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.agent-status-badge.status-warning {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.agent-status-badge.status-active {
    background: rgba(41, 121, 255, 0.1);
    color: #2979ff;
    border-color: rgba(41, 121, 255, 0.3);
    animation: agentPulse 2s infinite;
}

@keyframes agentPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.agent-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.agent-stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.agent-stat-label {
    color: #90a4ae;
}

.agent-stat-value {
    font-weight: 600;
}

.agent-action-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #2979ff;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.agent-action-title {
    font-weight: 700;
    color: #2979ff;
    margin-bottom: 4px;
}

.agent-action-detail {
    color: #b0bec5;
    line-height: 1.4;
}

.agent-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #90a4ae;
}

.agent-next-run {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-btn-run {
    background: #00e676;
    color: #0b0e14;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-btn-run:hover {
    background: #00c853;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

.agent-btn-run:active {
    transform: translateY(0);
}

.agent-btn-run:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
