body {
      font-family: Arial, sans-serif;
      background-color: #ffffff;
      color: #333;
      max-width:1000px; margin:0 auto; padding:20px;
    }
    header {
      display: flex;
      justify-content: center;
      margin: 20px auto;
    }
    
    header img {
      height: 70px;
    }
    
    header a {
      text-decoration: none;
      display: flex;
      align-items:center;
      color: #333;
      gap: 2px;
    }
    
    main {
      padding: 20px;
    }

    img.feature{width:100%;height:auto;border-radius:8px;margin:12px 0;}

    .cta{background:#f0f8ff;border-left:4px solid #0073e6;padding:12px;border-radius:6px;margin:16px 0;}
    .note{background:#f7f7f7;border-left:4px solid #ddd;padding:12px;margin:12px 0;}
    .internal-links{background:#fbfeff;border:1px solid #e6f2ff;padding:12px;border-radius:6px;margin-top:20px;}
    .author-bio{background:#fff9f0;border:1px solid #ffe7c4;padding:14px;border-radius:8px;margin-top:24px;}
    ul{margin-left:1.05rem;}
    .faq{margin-top:20px;}
    .board {background:rgba(255, 217, 0, 0.208);padding:16px;border-radius:10px;margin:18px 0}

    footer {
      border-top: 1px solid #9f9f9f;
      padding: 20px;
      margin-top: 50px;
    }
    .footer-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
    .footer-column {
      flex: 1 1 200px;
    }
    .footer-column h4 {
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 1.1em;
    }
    .footer-column a {
      display: block;
      color: #333;
      text-decoration: none;
      margin-bottom: 5px;
    }
    .footer-column a:hover {
      text-decoration: underline;
    }
    .footer-text {
      margin-top: 50px;
      text-align: center;
      font-size: medium;
    }

 
.upload-area {
            border: 3px dashed #667eea;
            border-radius: 12px;
            padding: 60px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8f9ff;
            margin-bottom: 30px;
        }

        .upload-area:hover {
            border-color: #764ba2;
            background: #f0f2ff;
            transform: translateY(-2px);
        }

        .upload-area.dragover {
            border-color: #764ba2;
            background: #e8ebff;
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 48px;
            margin-bottom: 20px;
            color: #667eea;
        }

        .upload-icon svg {
            width: 40px;
            height: 40px;
            color: #2563eb;
        }

        .upload-text {
            font-size: 18px;
            color: #333;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .upload-hint {
            font-size: 14px;
            color: #666;
        }

        #fileInput {
            display: none;
        }

        .preview-container {
            display: none;
            margin-bottom: 30px;
        }

        .preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }

        .preview-item {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease;
        }

        .preview-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .preview-item img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
        }

        .remove-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(255, 255, 255, 0.95);
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            color: #e74c3c;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .remove-btn:hover {
            background: #e74c3c;
            color: white;
            transform: scale(1.1);
        }

        .file-info {
            text-align: center;
            color: #666;
            font-size: 14px;
            margin-bottom: 20px;
        }

        .actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        button {
            padding: 14px 32px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            outline: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .btn-secondary {
            background: #e9ecef;
            color: #333;
        }

        .btn-secondary:hover {
            background: #dee2e6;
            transform: translateY(-2px);
        }

        .loading {
            display: none;
            text-align: center;
            padding: 20px;
            color: #667eea;
            font-weight: 600;
        }

        .spinner {
            border: 3px solid #f3f4f6;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 12px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @media (max-width: 600px) {

            .upload-area {
                padding: 40px 20px;
            }

            .preview-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 12px;
            }

            button {
                padding: 12px 24px;
                font-size: 14px;
            }
        }
        .features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:22px}
    .feat{background:#f8f9ff;border-radius:10px;padding:16px;border:1px solid rgba(102,126,234,0.06)}
    .feat h3{margin:0 0 8px 0;font-size:16px}
    .howto{margin-top:22px}
    ol{margin-left:18px}
    .faq{margin-top:26px}
    details{background:#f8f9ff;padding:12px;border-radius:8px;margin-bottom:10px;border:1px solid rgba(0,0,0,0.04)}
    details summary{font-weight:600;cursor:pointer}
    .tool-link{display:inline-block;margin-top:14px;padding:10px 16px;background:rgb(0, 94, 255);color:#fff;border-radius:10px;text-decoration:none;font-weight:600}
    
.tools {
    padding: 20px;
    margin: 20px;
  }

  .tools a {
    text-decoration: none;
    color: #333;
  }

  .tools h2 {
    margin-bottom: 8px;
  }

  .tools p {
    color: #555;
    line-height: 1.6;
  }

        

        .select-button {
            background: #2563eb;
            color: white;
            border: none;
            padding: 14px 32px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .select-button:hover {
            background: #1d4ed8;
        }

        .select-button:disabled {
            background: #94a3b8;
            cursor: not-allowed;
        }

        .spinner {
            border: 4px solid #e2e8f0;
            border-top: 4px solid #2563eb;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .processing-text {
            font-size: 18px;
            font-weight: 500;
            color: #334155;
            margin-bottom: 8px;
        }

        .processing-hint {
            color: #64748b;
            font-size: 14px;
        }

        .results-section {
            display: none;
        }

        .results-section.visible {
            display: block;
        }

        .results-header {
            font-size: 24px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .results-header svg {
            width: 28px;
            height: 28px;
            color: #2563eb;
        }

        .result-card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            border: 1px solid #e2e8f0;
        }

        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }

        .result-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .success-icon {
            color: #16a34a;
            flex-shrink: 0;
        }

        .filename {
            font-weight: 500;
            color: #0f172a;
            margin-bottom: 4px;
        }

        .confidence {
            font-size: 13px;
            color: #64748b;
        }

        .copy-button {
            background: transparent;
            border: none;
            color: #64748b;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .copy-button:hover {
            background: #f1f5f9;
            color: #0f172a;
        }

        .copy-button svg {
            width: 16px;
            height: 16px;
        }

        .text-content {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 16px;
        }

        .text-content pre {
            white-space: pre-wrap;
            word-wrap: break-word;
            color: #1e293b;
            font-family: 'Monaco', 'Courier New', monospace;
            font-size: 14px;
            line-height: 1.6;
        }

        .no-text-alert {
            background: #fef3c7;
            border: 1px solid #fde68a;
            border-radius: 10px;
            padding: 16px;
            display: flex;
            gap: 12px;
        }

        .warning-icon {
            color: #d97706;
            flex-shrink: 0;
        }

        .alert-content {
            flex: 1;
        }

        .alert-title {
            font-size: 14px;
            font-weight: 500;
            color: #92400e;
            margin-bottom: 4px;
        }

        .alert-message {
            font-size: 14px;
            color: #b45309;
        }

/* Info section */
.info-section {
    margin-top: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-icon {
    width: 40px;
    height: 40px;
    color: #667eea;
    margin-bottom: 1rem;
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.info-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}


