* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.dw-ts-wrapper { max-width: 1000px; margin: auto; padding: 50px 15px; font-family: 'Inter', sans-serif; }

/* HEADER & CLOCK */
.dw-ts-header { text-align: center; margin-bottom: 25px; }
.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-ts-header h2 { font-size: 34px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
.dw-ts-header p { color: #64748b; font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.dw-live-clock { background: #0f172a; color: #fff; padding: 15px 25px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15); }
.clock-info { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.clock-info strong { font-family: monospace; font-size: 22px; color: #10b981; letter-spacing: 1px; }
.pulse-icon { color: #ef4444; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.dw-btn-outline { background: transparent; border: 1px solid #334155; color: #cbd5e1; padding: 8px 15px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: 600; font-size: 13px; }
.dw-btn-outline:hover { background: #334155; color: #fff; }

/* CARD & INPUT */
.dw-ts-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-col-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #0f172a; padding: 0 5px; margin-bottom: 12px;}
.dw-col-header i { color: #2563eb; margin-right: 5px; }
.dw-header-actions { display: flex; align-items: center; gap: 15px; }
.detect-badge { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.detect-badge.waiting { background: #f1f5f9; color: #64748b; }
.detect-badge.success { background: #dcfce7; color: #166534; }
.detect-badge.error { background: #fee2e2; color: #991b1b; }

.dw-mega-input { width: 100%; padding: 20px 25px; border-radius: 16px; border: 2px solid #e2e8f0; background: #f8fafc; font-size: 20px; color: #0f172a; outline: none; transition: 0.3s; font-weight: 600; font-family: monospace; margin-bottom: 15px; }
.dw-mega-input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }

/* TIME TRAVEL MATH */
.dw-time-travel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f8fafc; padding: 12px 15px; border-radius: 12px; border: 1px solid #e2e8f0; }
.dw-time-travel span { font-size: 13px; font-weight: 700; color: #64748b; margin-right: 5px; }
.math-group { display: flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.dw-time-travel button { background: #fff; border: none; border-right: 1px solid #cbd5e1; color: #0f172a; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.dw-time-travel button:last-child { border-right: none; }
.dw-time-travel button:hover { background: #e2e8f0; color: #2563eb; }

.dw-divider { border: 0; height: 1px; background: #e2e8f0; margin: 30px 0; }

/* DASHBOARD GRIDS */
.dw-ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ts-result-card { background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; transition: 0.3s; }
.ts-result-card:hover { border-color: #bfdbfe; box-shadow: 0 5px 15px rgba(37,99,235,0.05); background: #fff; }
.highlight-card { background: #eff6ff; border-color: #bfdbfe; }
.ts-card-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.ts-card-header i { color: #2563eb; }
.ts-result-card input { width: 100%; border: none; background: transparent; font-size: 16px; font-weight: 700; color: #0f172a; outline: none; font-family: monospace; margin-bottom: 5px; }
.ts-subtext { font-size: 12px; color: #94a3b8; font-weight: 500; }

/* DEVELOPER SNIPPETS */
.snippets-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.snippet-box { background: #0f172a; border-radius: 12px; overflow: hidden; border: 1px solid #334155; }
.snip-head { display: flex; justify-content: space-between; align-items: center; background: #1e293b; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #cbd5e1; }
.snip-head button { background: transparent; border: none; color: #94a3b8; cursor: pointer; transition: 0.2s; }
.snip-head button:hover { color: #fff; }
.snippet-box code { display: block; padding: 15px; font-family: monospace; font-size: 13px; color: #10b981; white-space: pre-wrap; word-break: break-all; }

/* BUTTONS & TOAST */
.icon-btn { background: #e2e8f0; border: none; width: 35px; height: 35px; border-radius: 8px; cursor: pointer; color: #475569; display: flex; justify-content: center; align-items: center; }
.icon-btn:hover { background: #cbd5e1; color: #0f172a; }
.icon-btn-small { background: transparent; border: none; cursor: pointer; color: #94a3b8; transition: 0.2s; font-size: 14px; }
.icon-btn-small:hover { color: #2563eb; }
.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; }


/* 🚀 1. MAIN CARD HOVER (Box upar uthega) */
.dw-ts-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(37, 99, 235, 0.12); border-color: #bfdbfe; }

/* 🚀 2. RESULT CARDS HOVER (Chhote boxes upar uthenge) */
.ts-result-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08); background: #fff; }

/* 🚀 3. DEVELOPER SNIPPETS HOVER (Dark boxes upar uthenge) */
.snippet-box { transition: 0.3s ease-in-out; }
.snippet-box:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2); border-color: #475569; }

/* MEDIA QUERIES */
@media (max-width: 992px) { .snippets-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .dw-ts-wrapper { padding: 30px 15px; }
    .dw-ts-grid { grid-template-columns: 1fr; gap: 15px; }
    .dw-live-clock { flex-direction: column; gap: 15px; text-align: center; }
    .dw-header-actions { flex-direction: column; align-items: flex-end; gap: 10px; }
}
@media (max-width: 576px) {
    .dw-ts-card { padding: 25px 15px; }
    .dw-mega-input { font-size: 16px; padding: 15px; }
    .math-group { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}