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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #e5e7eb;
    margin: 70px auto;
}

h1 {
    text-align: center;
    color: #1a202c;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drop-zone:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.drop-zone.drag-over {
    border-color: #6b7280;
    background: #f3f4f6;
    transform: scale(1.01);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #6b7280;
    stroke-width: 2;
}

.drop-text {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 500;
}

.or-text {
    color: #a0aec0;
    margin: 16px 0;
    font-size: 0.9rem;
}

.upload-button {
    display: inline-block;
    padding: 12px 32px;
    background: #1f2937;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.upload-button:hover {
    background: #374151;
}

.upload-button:active {
    transform: translateY(0);
}

.result {
    margin-top: 30px;
    padding: 24px;
    background: #f0fff4;
    border: 2px solid #68d391;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

.result.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.check-icon {
    width: 28px;
    height: 28px;
    color: #38a169;
    stroke-width: 2;
}

.result-header h2 {
    font-size: 1.3rem;
    color: #22543d;
    font-weight: 600;
}

.result-label {
    font-size: 0.9rem;
    color: #22543d;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-content {
    margin-top: 12px;
}

.result-text {
    padding: 16px;
    background: white;
    border-radius: 8px;
    word-wrap: break-word;
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    border: 1px solid #c6f6d5;
}

.result-text a {
    color: #1f2937;
    text-decoration: underline;
    font-weight: 500;
}

.result-text a:hover {
    color: #374151;
}

.copy-button {
    padding: 10px 24px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.copy-button:hover {
    background: #374151;
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: #10b981;
}

.error {
    margin-top: 30px;
    padding: 20px;
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.error.hidden {
    display: none;
}

.error-icon {
    width: 24px;
    height: 24px;
    color: #e53e3e;
    flex-shrink: 0;
    stroke-width: 2;
}

.error p {
    color: #742a2a;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Info Section */
.info-section {
    margin-top: 40px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.info-section h2 {
    color: #1a202c;
    font-size: 1.3rem;
    margin-bottom: 16px;
    margin-top: 32px;
    font-weight: 700;
}

.info-section h2:first-child {
    margin-top: 0;
}

.info-section ol,
.info-section ul {
    margin-left: 24px;
    color: #4a5568;
    line-height: 1.8;
}

.info-section li {
    margin-bottom: 12px;
}

.info-section li strong {
    color: #2d3748;
    font-weight: 600;
}

.info-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 640px) {
    .container {
        padding: 24px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .drop-text {
        font-size: 1rem;
    }

    .footer {
        margin-top: 30px;
        padding-top: 20px;
    }

    .footer p {
        font-size: 0.8rem;
    }
}
