/**
 * The Art: Agent Default Styles
 */
.ta-agent-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    height: 550px;
    background-color: #12131a;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 1px solid #1e202c;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0;
}

.ta-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #161722;
    border-bottom: 1px solid #1e202c;
}

.ta-agent-header-title {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
}

.ta-agent-header-status-indicator {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.ta-agent-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #0d0e12;
}

.ta-agent-message {
    display: flex;
    max-width: 80%;
}

.ta-agent-message-user {
    align-self: flex-end;
    margin-left: auto;
}

.ta-agent-message-model {
    align-self: flex-start;
    margin-right: auto;
}

.ta-agent-message-system {
    align-self: center;
    max-width: 100%;
}

.ta-agent-message-content {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

.ta-agent-message-user .ta-agent-message-content {
    background-color: #6366f1;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.ta-agent-message-model .ta-agent-message-content {
    background-color: #1c1d29;
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
}

.ta-agent-message-system .ta-agent-message-content {
    background-color: rgba(99, 102, 241, 0.08);
    color: #a5b4fc;
    border: 1px dashed rgba(99, 102, 241, 0.25);
    font-size: 11px;
    font-family: monospace;
    border-radius: 6px;
    padding: 6px 10px;
}

.ta-agent-input-container {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #161722;
    border-top: 1px solid #1e202c;
    gap: 8px;
}

.ta-agent-input {
    flex: 1;
    background-color: #0d0e12;
    border: 1px solid #1e202c;
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    height: 38px;
}

.ta-agent-input:focus {
    border-color: #6366f1;
}

.ta-agent-send-btn {
    background-color: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.ta-agent-send-btn:hover {
    background-color: #4f46e5;
}

.ta-agent-pulse {
    animation: ta_pulse 1.5s infinite;
}

@keyframes ta_pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* User Custom CSS Overrides */
/* Add your overrides here! */
.ta-agent-container {
  border: 2px solid #6366f1;
}
.ta-agent-header {
  background: linear-gradient(135deg, #121216, #1c1c24);
}
