.writenepali-converter-card {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    max-width: 750px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.writenepali-converter-card * {
    box-sizing: border-box;
}

.writenepali-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.writenepali-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
}

.writenepali-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.writenepali-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.writenepali-stacked-box-layout {
    display: flex;
    flex-direction: column;
}

.writenepali-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.writenepali-dropzone {
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.writenepali-dropzone:hover {
    border-color: #8b5cf6;
    background: #fdf4ff;
}

.dropzone-text p {
    margin: 8px 0 0 0;
    color: #475569;
    font-size: 14px;
}

#ocr-image-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.writenepali-textarea {
    width: 100%;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    resize: vertical;
}

.writenepali-textarea:focus {
    border-color: #8b5cf6;
    background: #ffffff;
}

.writenepali-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0 5px 0;
}

.writenepali-convert-btn-vibrant {
    flex: 2;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: opacity 0.15s ease;
}

.writenepali-convert-btn-vibrant:hover {
    opacity: 0.92;
}

.writenepali-sub-action-btn {
    flex: 1.5;
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    color: #701a75;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.writenepali-sub-action-btn:hover {
    background: #fae8ff;
}

.writenepali-reset-btn {
    flex: 1;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #94a3b8;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.writenepali-reset-btn:hover {
    background: #e2e8f0;
}

.writenepali-status-box {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #8b5cf6;
}