#qft-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.qft-header {
    text-align: center;
    margin-bottom: 40px;
}

.qft-logo {
    font-size: 24px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0066cc 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qft-by {
    font-size: 24px;
    font-weight: 400;
    color: #000;
    letter-spacing: 0;
    text-transform: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000;
    margin-left: 8px;
}

.qft-header h2 {
    font-size: 18px !important;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.qft-subtitle {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.qft-instructions {
    background: #f0f8ff;
    border-left: 4px solid #0066cc;
    padding: 15px 20px;
    margin: 0 auto 25px auto;
    max-width: 800px;
    border-radius: 4px;
}

.qft-instructions p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.qft-instructions p:last-child {
    margin-bottom: 0;
}

.qft-instructions strong {
    color: #0066cc;
}

.qft-input-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.qft-form-group {
    margin-bottom: 20px;
}

.qft-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.qft-help-link {
    font-size: 12px;
    font-weight: normal;
    color: #0066cc;
    text-decoration: none;
    margin-left: 10px;
}

.qft-help-link:hover {
    text-decoration: underline;
}

.qft-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.qft-input:focus {
    outline: none;
    border-color: #0066cc;
}

.qft-api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.qft-button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.qft-button:hover {
    background: #0052a3;
}

.qft-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qft-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.qft-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.qft-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.qft-loading {
    text-align: center;
    padding: 60px 20px;
}

.qft-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: qft-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes qft-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qft-loading-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.qft-results {
    margin-top: 40px;
}

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

.qft-stat-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.qft-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 5px;
}

.qft-stat-label {
    font-size: 13px;
    color: #666;
}

.qft-platform-results {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.qft-platform-header {
    background: #0066cc;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 18px;
}

.qft-platform-header.gemini {
    background: #4285f4;
}

.qft-platform-header.perplexity {
    background: #1fb6ff;
}

.qft-platform-header.chatgpt {
    background: #10a37f;
}

.qft-queries-list {
    padding: 20px;
}

.qft-query-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.qft-query-text {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.qft-query-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qft-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.qft-badge.type {
    background: #e3f2fd;
    color: #1976d2;
}

.qft-badge.intent {
    background: #f3e5f5;
    color: #7b1fa2;
}

.qft-export-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.qft-export-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s;
}

.qft-export-btn:hover {
    background: #45a049;
}

.qft-category-header {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 12px 0;
    padding: 8px 12px;
    background: #f0f4f8;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.qft-category-header:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .qft-api-grid {
        grid-template-columns: 1fr;
    }
    
    .qft-export-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}