/* =======================================================
   💎 ROBOTS.TXT GENERATOR - ULTRA-PRO CSS (FIXED)
   ======================================================= */
:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --terminal-bg: #1e293b;
    --terminal-text: #38bdf8;
    --border: #e2e8f0;
}

.dw-saas-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; font-family: 'Plus Jakarta Sans', sans-serif; box-sizing: border-box; }
.dw-saas-wrapper * { box-sizing: border-box; }

.text-gradient { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }

.dw-saas-header { text-align: center; margin-bottom: 40px; }
.dw-saas-chip { display: inline-block; padding: 6px 16px; background: #eff6ff; color: var(--primary); border-radius: 100px; font-size: 12px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* 🚀 MAIN GRID */
.dw-main-grid { display: grid; grid-template-columns: 1fr 450px; gap: 30px; align-items: start; }

.dw-card { background: #fff; border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.04); overflow: hidden; }
.dw-card-header { padding: 20px 25px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.dw-card-header h3 { font-size: 18px; font-weight: 800; margin: 0; color: var(--dark); }

/* Form Elements */
.dw-form-body { padding: 25px; }
.dw-form-group { margin-bottom: 25px; }
.dw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.dw-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--dark); }
.dw-hint { font-size: 13px; color: #64748b; margin-top: 0; margin-bottom: 10px; }
.dw-hint code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #ef4444; font-size: 12px; }

.dw-input { 
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); 
    font-size: 15px; outline: none; transition: 0.3s; color: #334155; background: #fff; font-family: inherit;
}
.dw-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }

select.dw-input { height: 50px; padding: 0 16px; cursor: pointer; line-height: normal; }
.dw-textarea { resize: vertical; min-height: 120px; font-family: monospace; padding: 14px 16px; line-height: 1.5; }

/* Radio Buttons */
.dw-radio-group { display: flex; gap: 15px; }
.dw-radio-btn { flex: 1; cursor: pointer; }
.dw-radio-btn input { display: none; }
.dw-radio-btn span { display: block; text-align: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; font-size: 14px; transition: 0.3s; background: #f8fafc; }
.dw-radio-btn input:checked + span { background: #eff6ff; border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 10px rgba(37,99,235,0.1); }

/* Checkbox Grid */
.dw-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.dw-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: #475569; }
.dw-checkbox input { width: 16px; height: 16px; cursor: pointer; }

/* 💻 TERMINAL PANEL */
.dw-terminal-panel { background: var(--terminal-bg); border-color: var(--dark); display: flex; flex-direction: column; height: 100%; }
.dw-terminal-header { padding: 15px 20px; background: rgba(0,0,0,0.3); display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dw-dots { display: flex; gap: 6px; }
.dw-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dw-dots span:nth-child(1) { background: #ef4444; }
.dw-dots span:nth-child(2) { background: #eab308; }
.dw-dots span:nth-child(3) { background: #22c55e; }
.dw-terminal-title { flex: 1; text-align: center; color: #94a3b8; font-size: 13px; font-family: monospace; letter-spacing: 1px; }

.dw-terminal-window { padding: 25px; flex-grow: 1; }
#live-code-output { margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; color: var(--terminal-text) !important; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }

/* 🔥 THE FIX: Terminal Buttons Protection */
.dw-terminal-actions { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-top: 1px solid rgba(255,255,255,0.05); }

.dw-terminal-actions button {
    border-radius: 12px !important; /* Force rectangle, block SEO override */
    padding: 14px 10px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 50px !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.dw-terminal-actions .dw-btn-secondary { background: rgba(255,255,255,0.1) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.2) !important; transition: 0.3s; cursor: pointer; }
.dw-terminal-actions .dw-btn-secondary:hover { background: rgba(255,255,255,0.2) !important; }

.dw-terminal-actions .dw-btn-ultimate { background: var(--primary) !important; color: #fff !important; border: none !important; transition: 0.3s; cursor: pointer; box-shadow: 0 10px 20px rgba(37,99,235,0.3) !important; }
.dw-terminal-actions .dw-btn-ultimate:hover { transform: translateY(-3px) !important; box-shadow: 0 15px 30px rgba(37,99,235,0.4) !important; }

/* =======================================================
   🛡️ HARDCORE MEDIA QUERIES
   ======================================================= */
@media (max-width: 1024px) {
    .dw-main-grid { grid-template-columns: 1fr; }
    .dw-terminal-panel { height: auto; min-height: 400px; }
}

@media (max-width: 768px) {
    .dw-saas-header h1 { font-size: 30px; }
    .dw-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .dw-radio-group { flex-direction: column; gap: 10px; }
    .dw-checkbox-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .dw-saas-wrapper { padding: 0 15px; margin: 20px auto; }
    .dw-form-body { padding: 20px 15px; }
    .dw-checkbox-grid { grid-template-columns: 1fr; gap: 12px; }
    
    .dw-terminal-actions { grid-template-columns: 1fr; /* Stack buttons vertically on very small screens */ }
}