* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.dw-b64-wrapper { max-width: 1100px; margin: auto; padding: 50px 15px; font-family: 'Inter', sans-serif; }

/* HEADER */
.dw-b64-header { text-align: center; margin-bottom: 35px; }
.dw-badge { background: #eff6ff; color: #2563eb; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; border: 1px solid #bfdbfe; }
.dw-b64-header h2 { font-size: 34px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
.dw-b64-header p { color: #64748b; font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* GRID & CARDS */
.dw-b64-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.dw-card { background: #fff; padding: 30px; border-radius: 24px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.3s ease-in-out; display: flex; flex-direction: column; }

/* 🚀 PREMIUM HOVER EFFECT */
.dw-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08); border-color: #bfdbfe; }

/* COL HEADERS */
.dw-col-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #0f172a; margin-bottom: 15px; }
.dw-col-header i { color: #2563eb; margin-right: 5px; }
.dw-header-actions { display: flex; gap: 10px; }

/* TEXTAREAS */
.dw-textarea { width: 100%; height: 200px; padding: 18px; border-radius: 14px; border: 2px solid #e2e8f0; background: #f8fafc; font-size: 15px; color: #334155; resize: none; outline: none; font-family: monospace; transition: 0.3s; line-height: 1.5; word-break: break-all; }
.dw-textarea:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.output-area { height: 100%; min-height: 400px; background: #f1f5f9; cursor: text; }

/* DIVIDER */
.dw-divider-text { text-align: center; position: relative; margin: 25px 0; }
.dw-divider-text::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #e2e8f0; z-index: 1; }
.dw-divider-text span { background: #fff; padding: 0 15px; color: #94a3b8; font-weight: 700; font-size: 13px; position: relative; z-index: 2; }

/* DRAG & DROP ZONE */
.dw-file-drop { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 30px 20px; text-align: center; background: #f8fafc; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dw-file-drop.dragover { background: #eff6ff; border-color: #3b82f6; }
.dw-file-drop i { font-size: 30px; color: #3b82f6; margin-bottom: 10px; }
.dw-file-drop p { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 5px; }
.dw-file-drop span { font-size: 12px; color: #64748b; margin-bottom: 15px; }

/* BUTTONS */
.dw-btn-outline { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 14px; }
.dw-btn-outline:hover { background: #f1f5f9; border-color: #94a3b8; }
.icon-btn { background: #e2e8f0; border: none; width: 35px; height: 35px; border-radius: 8px; cursor: pointer; color: #475569; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.icon-btn:hover { background: #cbd5e1; color: #0f172a; }

/* FILE INFO ALERT */
.file-info { margin-top: 15px; padding: 12px 15px; background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* TOAST */
.dw-toast { visibility: hidden; min-width: 250px; background-color: #10b981; color: #fff; text-align: center; border-radius: 10px; padding: 16px; position: fixed; z-index: 1000; left: 50%; bottom: 30px; transform: translateX(-50%); font-weight: 600; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3); opacity: 0; transition: opacity 0.3s, bottom 0.3s; }
.dw-toast.show { visibility: visible; opacity: 1; bottom: 50px; }

/* MEDIA QUERIES */
@media (max-width: 992px) { .dw-b64-grid { grid-template-columns: 1fr; } .output-area { min-height: 250px; } }
@media (max-width: 576px) { .dw-card { padding: 20px 15px; } .dw-b64-header h2 { font-size: 26px; } }