/* Enhanced OmniAgent Web Interface Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #f093fb;
    --error-color: #ff6b6b;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --bg-light: rgba(255, 255, 255, 0.1);
    --bg-dark: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    color: var(--text-light);
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 320px;
    background: var(--bg-light);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

.header {
    background: var(--bg-light);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.tab-container {
    display: flex;
    margin-bottom: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 5px;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
}

.tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.chat-container {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(15px);
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message {
    max-width: 80%;
    padding: 15px;
    border-radius: 15px;
    word-wrap: break-word;
    margin-bottom: 15px;
}

.message.user {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    align-self: flex-end;
    margin-left: auto;
}

.message.agent {
    background: var(--bg-light);
    color: var(--text-light);
    align-self: flex-start;
}

.message.error {
    background: var(--error-color);
    color: var(--text-light);
    align-self: flex-start;
}

.message.streaming {
    background: var(--warning-color);
    color: var(--text-dark);
    align-self: flex-start;
    font-style: italic;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 16px;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-input button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--success-color);
    transform: translateY(-2px);
}

.card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--success-color);
    color: var(--text-dark);
}

.btn-secondary {
    background: var(--warning-color);
    color: var(--text-dark);
}

.btn-danger {
    background: var(--error-color);
    color: var(--text-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background: var(--success-color);
}

.status-inactive {
    background: var(--error-color);
}

.status-pending {
    background: var(--warning-color);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tool-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.tool-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: var(--success-color);
}

.notification-error {
    background: var(--error-color);
}

.notification-info {
    background: var(--accent-color);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Background agents list styles */
.background-agent-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-color);
}

.background-agent-item h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.background-agent-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.background-agent-item .actions {
    display: flex;
    gap: 10px;
}

.background-agent-item .actions button {
    padding: 5px 10px;
    font-size: 12px;
}

/* Events list styles */
.event-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--success-color);
}

.event-item h4 {
    color: var(--success-color);
    margin-bottom: 5px;
}

.event-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 5px;
}

.event-item small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* System info styles */
.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.system-info-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.system-info-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.system-info-item .value {
    font-size: 24px;
    font-weight: bold;
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .system-info-grid {
        grid-template-columns: 1fr;
    }
}
