* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; } /* Smooth scrolling from SEO button */

.dw-js-wrapper { max-width: 1200px; margin: auto; padding: 50px 15px; font-family: 'Inter', sans-serif; }

/* 🚀 THE BOX HOVER EFFECT */
.dw-js-card { background: #fff; padding: 35px; border-radius: 24px; border: 1px solid #e2e8f0; box-shadow: 0 15px 40px rgba(0,0,0,0.04); transition: 0.3s ease-in-out; }
.dw-js-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(245, 158, 11, 0.15); border-color: #fcd34d; }

/* HEADER */
.dw-js-header { text-align: center; margin-bottom: 35px; }
.dw-badge { background: #fef3c7; color: #d97706; 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 #fde68a; }
.dw-js-header h2 { font-size: 34px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
.dw-js-header p { color: #64748b; font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* OPTIONS (CHECKBOXES) */
.dw-js-options { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; padding: 20px; background: #f8fafc; border-radius: 16px; border: 1px solid #e2e8f0; justify-content: center; }
.dw-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: #334155; user-select: none; transition: 0.2s;}
.dw-checkbox:hover { color: #d97706; }
.dw-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: #d97706; cursor: pointer; }
.dw-checkbox i { color: #64748b; font-size: 13px; }

/* GRID LAYOUT */
.dw-js-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.dw-js-col { display: flex; flex-direction: column; gap: 15px; }

/* COLUMN HEADERS */
.dw-col-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #0f172a; padding: 0 5px; }
.dw-col-header i { color: #d97706; margin-right: 5px; }
.dw-header-actions { display: flex; gap: 10px; }

/* TEXTAREAS */
textarea { width: 100%; height: 350px; padding: 20px; border-radius: 16px; border: 2px solid #e2e8f0; background: #f8fafc; font-size: 14px; color: #334155; resize: none; outline: none; font-family: monospace; transition: 0.3s; line-height: 1.6; }
textarea:focus { border-color: #f59e0b; background: #fff; box-shadow: 0 0 0 4px rgba(245,158,11,0.1); }
#outputJS { background: #f1f5f9; cursor: text; }

/* BUTTONS */
.dw-btn-primary { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: none; padding: 16px; border-radius: 14px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 16px; display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2); }
.dw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3); }
.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; }

/* STATS */
.dw-js-stats { display: flex; gap: 15px; margin-top: auto; }
.stat-box { flex: 1; background: #f8fafc; padding: 15px; border-radius: 14px; text-align: center; border: 1px solid #e2e8f0; transition: 0.3s; }
.stat-box:hover { transform: translateY(-4px); border-color: #fcd34d; box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.stat-box p { font-size: 12px; color: #64748b; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.stat-box span { font-size: 20px; font-weight: 800; color: #0f172a; }
.stat-box sub { font-size: 12px; font-weight: 600; color: #94a3b8; }
.stat-box.highlight { background: #fffbeb; border-color: #fde68a; }
.stat-box.highlight span, .stat-box.highlight sub { color: #d97706; }

/* SCROLLBAR */
textarea::-webkit-scrollbar { width: 8px; }
textarea::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* 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; }

/* ===============================
   🔥 BULLETPROOF MEDIA QUERIES
================================ */
/* 1. Small Laptops & Landscape Tablets */
@media (max-width: 992px) {
    .dw-js-grid { grid-template-columns: 1fr; gap: 40px; }
    textarea { height: 250px; }
}
/* 2. Portrait Tablets & Large Phones */
@media (max-width: 768px) {
    .dw-js-wrapper { padding: 30px 15px; }
    .dw-js-options { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dw-js-header h2 { font-size: 28px; }
}
/* 3. Standard Mobile Phones */
@media (max-width: 576px) {
    .dw-js-card { padding: 25px 15px; }
    .dw-js-stats { flex-wrap: wrap; }
    .stat-box { min-width: 45%; }
}
/* 4. Ultra Small Devices (iPhone SE etc.) */
@media (max-width: 360px) {
    .dw-js-header h2 { font-size: 24px; }
    .stat-box { min-width: 100%; }
}