/* Support-KI System - Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.dashboard-grid {
    display: grid;
    gap: 30px;
}

.stats-section,
.search-section,
.results-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stats-section h2,
.search-section h2,
.results-section h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.result-item:hover {
    transform: translateX(5px);
}

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

.result-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.result-type {
    display: inline-block;
    padding: 5px 10px;
    background: #667eea;
    color: white;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 10px;
}

.result-category {
    color: #666;
    font-size: 0.9em;
}

.result-content {
    color: #555;
    line-height: 1.6;
    margin-top: 10px;
}

.result-preview {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.result-full {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-expand {
    margin-top: 10px;
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.btn-expand:hover {
    background: #5568d3;
}

.result-relevance {
    color: #999;
    font-size: 0.8em;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.ai-answer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-icon {
    font-size: 2em;
}

.ai-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 1.3em;
}

.ai-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05em;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.ai-sources {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    color: #666;
    font-size: 0.9em;
}

.ai-sources ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.ai-sources li {
    margin: 5px 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

