/* AI Components Styles for KasOS */

.ai-assistant-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.ai-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.ai-status-indicator.active {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.ai-status-indicator.inactive {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.ai-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.ai-metric-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-metric-title {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.ai-metric-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ai-metric-trend {
    font-size: 12px;
    opacity: 0.7;
}

.ai-recommendations {
    margin-top: 20px;
}

.ai-recommendation-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #f39c12;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.ai-recommendation-item.high-priority {
    border-left-color: #e74c3c;
}

.ai-recommendation-item.medium-priority {
    border-left-color: #f39c12;
}

.ai-recommendation-item.low-priority {
    border-left-color: #2ecc71;
}

.ai-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ai-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ai-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.ai-button:active {
    transform: translateY(0);
}

.ai-button.primary {
    background: rgba(46, 204, 113, 0.3);
    border-color: rgba(46, 204, 113, 0.5);
}

.ai-button.danger {
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.5);
}

.ai-log-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #ffffff;
}

.ai-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Ensure all text elements in AI components are visible */
.ai-assistant-container *,
.ai-status-indicator *,
.ai-metric-card *,
.ai-recommendation-item *,
.ai-controls *,
.ai-button * {
    color: inherit;
}

/* Text in dark AI containers */
.ai-log-container * {
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-dashboard {
        grid-template-columns: 1fr;
    }
    
    .ai-controls {
        flex-direction: column;
    }
    
    .ai-button {
        width: 100%;
        text-align: center;
    }
}

/* Animation for AI status changes */
@keyframes ai-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.ai-status-indicator.thinking {
    animation: ai-pulse 1.5s ease-in-out infinite;
}

/* Health status circle */
.ai-health-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin: 0 auto 15px;
    position: relative;
}

.ai-health-circle.excellent {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

.ai-health-circle.good {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.ai-health-circle.fair {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
}

.ai-health-circle.poor {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}
