/**
 * Agents Module Styles
 * 
 * @license MIT
 * @copyright (c) 2025 Universal AI Cloud Development Team
 * @version 1.0.0
 * 
 * Version History:
 * - 1.0.0 (2025-12-02): Initial extraction from dashboard.css
 *   - Agent management section
 *   - Agent items and badges
 *   - Add agent dropdown
 */

/* Agents Section */
.agents-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.agents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.agents-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

#agents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-agents {
    padding: 30px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.agent-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.agent-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-type-badge.com {
    background-color: #3498db;
    color: white;
}

.agent-type-badge.esa {
    background-color: #9b59b6;
    color: white;
}

.agent-item .form-group {
    margin-bottom: 15px;
}

.agent-item .form-group:last-child {
    margin-bottom: 0;
}

.agent-item input[type="text"],
.agent-item input[type="tel"],
.agent-item select,
.agent-item textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: white;
}

.agent-item textarea {
    resize: vertical;
    min-height: 60px;
}

.agent-item input:focus,
.agent-item select:focus,
.agent-item textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Agent badges in user list */
.agent-badge {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 6px;
    margin-bottom: 4px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.agent-badge.com {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.agent-badge.esa {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

/* Add Agent Dropdown */
.add-agent-container {
    position: relative;
    display: inline-block;
}

.agent-type-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 150px;
    overflow: hidden;
}

.agent-type-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: white;
    color: #2c3e50;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.agent-type-option:hover {
    background-color: #f8f9fa;
}

.agent-type-option:active {
    background-color: #e9ecef;
}