/* TruthFinder Styles */
    
    :root {
        --primary-color: #2563eb;
        --primary-hover: #1d4ed8;
        --success-color: #10b981;
        --warning-color: #f59e0b;
        --danger-color: #ef4444;
        --text-primary: #1f2937;
        --text-secondary: #6b7280;
        --bg-primary: #ffffff;
        --bg-secondary: #f9fafb;
        --border-color: #e5e7eb;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="dark"] {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --border-color: #374151;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: var(--bg-secondary);
        color: var(--text-primary);
        line-height: 1.6;
        transition: background 0.3s, color 0.3s;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    /* Header */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 40px;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .logo h1 {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .theme-toggle {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        padding: 10px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 20px;
        transition: all 0.3s;
    }
    
    .theme-toggle:hover {
        background: var(--bg-secondary);
    }
    
    /* Main Content */
    main {
        flex: 1;
    }
    
    .screen {
        display: none;
        animation: fadeIn 0.3s;
    }
    
    .screen.active {
        display: block;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Home Screen */
    .hero {
        text-align: center;
        margin-bottom: 48px;
    }
    
    .hero h2 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 16px;
        color: var(--text-primary);
    }
    
    .subtitle {
        font-size: 18px;
        color: var(--text-secondary);
        max-width: 600px;
        margin: 0 auto;
    }
    
    .search-container {
        max-width: 700px;
        margin: 0 auto 32px;
    }
    
    #claimInput {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        background: var(--bg-primary);
        color: var(--text-primary);
        margin-bottom: 16px;
        transition: all 0.3s;
    }
    
    #claimInput:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    
    .primary-button {
        width: 100%;
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 600;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .primary-button:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .info-link {
        text-align: center;
    }
    
    .info-link a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }
    
    .info-link a:hover {
        text-decoration: underline;
    }
    
    /* Loading Screen */
    #loadingScreen {
        text-align: center;
        padding: 80px 20px;
    }
    
    .loader {
        width: 50px;
        height: 50px;
        border: 4px solid var(--border-color);
        border-top-color: var(--primary-color);
        border-radius: 50%;
        margin: 0 auto 24px;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
    
    /* Results Screen */
    .results-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .back-button {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        padding: 10px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        transition: all 0.3s;
    }
    
    .back-button:hover {
        background: var(--bg-secondary);
    }
    
    .results-header h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
        flex: 1;
    }
    
    .confidence-badge {
        background: var(--bg-primary);
        border: 2px solid var(--border-color);
        padding: 16px 24px;
        border-radius: 12px;
        margin-bottom: 32px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: var(--shadow);
    }
    
    .confidence-label {
        font-weight: 600;
        color: var(--text-secondary);
    }
    
    .confidence-value {
        font-size: 18px;
        font-weight: 700;
        padding: 6px 16px;
        border-radius: 20px;
    }
    
    .confidence-value.high {
        background: rgba(16, 185, 129, 0.1);
        color: var(--success-color);
    }
    
    .confidence-value.medium {
        background: rgba(245, 158, 11, 0.1);
        color: var(--warning-color);
    }
    
    .confidence-value.low {
        background: rgba(239, 68, 68, 0.1);
        color: var(--danger-color);
    }
    
    .results-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .result-section h4 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--text-primary);
    }
    
    .content-box {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .content-box p {
        color: var(--text-primary);
        line-height: 1.8;
    }
    
    .content-box ul {
        list-style: none;
        padding: 0;
    }
    
    .content-box li {
        padding: 8px 0;
        color: var(--text-primary);
        position: relative;
        padding-left: 24px;
    }
    
    .content-box li:before {
        content: "•";
        position: absolute;
        left: 8px;
        color: var(--primary-color);
        font-weight: bold;
    }
    
    .sources-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .source-tag {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        color: var(--text-secondary);
    }
    
    /* How It Works Screen */
    .info-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .info-section {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 24px;
        margin-bottom: 24px;
        box-shadow: var(--shadow);
    }
    
    .info-section h4 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 16px;
        color: var(--text-primary);
    }
    
    .info-section p {
        color: var(--text-primary);
        line-height: 1.8;
        margin-bottom: 12px;
    }
    
    .info-section ol,
    .info-section ul {
        padding-left: 24px;
        color: var(--text-primary);
    }
    
    .info-section li {
        margin-bottom: 12px;
        line-height: 1.8;
    }
    
    /* Footer */
    footer {
        margin-top: 60px;
        padding: 32px 0 20px;
        border-top: 1px solid var(--border-color);
        text-align: center;
    }
    
    footer p {
        color: var(--text-secondary);
        margin-bottom: 16px;
    }
    
    .footer-link {
        text-decoration: none;
    }
    
    .return-button {
        background: var(--bg-primary);
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .return-button:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .hero h2 {
            font-size: 32px;
        }
    
        .subtitle {
            font-size: 16px;
        }
    
        .results-header {
            flex-direction: column;
            align-items: flex-start;
        }
    
        .confidence-badge {
            flex-direction: column;
            align-items: flex-start;
        }
    }