/* ==========================================
   GSHOOT PRO - PREMIUM SAAS STYLES (2026)
   ========================================== */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 30px 20px;
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.5;
}

input, button, textarea, select {
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

/* -------------------------------------
   BASE BUTTON STYLES (Shared)
---------------------------------------- */
.btn {
    padding: 12px 24px; border: none; border-radius: 8px; font-weight: 600; font-size: 14px;
    cursor: pointer; color: white; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); letter-spacing: 0.3px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.btn:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }

.btn-start { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.btn-stop { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.btn-warn { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.btn-save { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); width: 100%; margin-top: 15px; }

.btn-logout {
    background: #ffffff; color: #475569; padding: 8px 16px; border-radius: 20px;
    border: 1px solid #cbd5e1; cursor: pointer; font-weight: 600; font-size: 13px; transition: 0.2s;
}
.btn-logout:hover { background: #f8fafc; color: #dc2626; border-color: #fca5a5; }

/* -------------------------------------
   MASTER ADMIN SPECIFIC THEME
---------------------------------------- */
.master-theme input[type="text"], 
.master-theme input[type="password"], 
.master-theme input[type="number"],
.master-theme input[type="date"] {
    width: 100%; padding: 14px 16px; border-radius: 10px; margin-bottom: 15px;
    background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255,255,255,0.1);
    color: #f8fafc; font-size: 14px; transition: all 0.2s;
}
.master-theme input:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15); }

.master-theme .btn-primary { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
    color: white; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.master-theme .btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3); }

.master-theme .btn-demo { 
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); 
    color: white; border: none; font-weight: 600; cursor: pointer; transition: 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.master-theme .btn-demo:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 12px rgba(139, 92, 246, 0.3); }

/* -------------------------------------
   BUYER DASHBOARD SPECIFIC THEME
---------------------------------------- */
.buyer-theme input[type="text"], 
.buyer-theme input[type="password"], 
.buyer-theme textarea {
    width: 100%; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 10px; margin-bottom: 15px;
    background: #f8fafc; color: #0f172a; font-size: 14px; transition: all 0.2s;
}
.buyer-theme input:focus, .buyer-theme textarea:focus { background: white; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.buyer-theme textarea { resize: vertical; }

.buyer-theme .card {
    background: white; padding: 30px; border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.02);
    margin-bottom: 25px; border: 1px solid #e2e8f0;
}

/* -------------------------------------
   COMPONENTS (Stats, Progress, Nodes)
---------------------------------------- */
.stats { display: flex; gap: 20px; margin: 25px 0; flex-wrap: wrap; }
.box { padding: 24px; border-radius: 16px; flex: 1; min-width: 150px; position: relative; overflow: hidden; transition: transform 0.2s; }
.box:hover { transform: translateY(-2px); }
.box-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; opacity: 0.8; }
.box-value { font-size: 32px; font-weight: 800; display: block; }

.b-pend { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #1e40af; border: 1px solid #bfdbfe; }
.b-sent { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #065f46; border: 1px solid #a7f3d0; }
.b-fail { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); color: #991b1b; border: 1px solid #fecdd3; }
.b-total { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); color: #334155; border: 1px solid #e2e8f0; }

.progress-wrapper { margin-top: 30px; }
.progress-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.progress-title { font-weight: 700; font-size: 14px; color: #0f172a; text-transform: uppercase; letter-spacing: 0.5px; }
.etr-text { font-size: 13px; color: #4f46e5; font-weight: 700; background: #e0e7ff; padding: 4px 10px; border-radius: 20px; }
.progress-container { width: 100%; background-color: #f1f5f9; border-radius: 9999px; overflow: hidden; height: 32px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.progress-bar { height: 100%; width: 0%; display: flex; align-items: center; justify-content: center; color: white; font-size: 13px; font-weight: 700; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }

.bg-blue { background: linear-gradient(90deg, #6366f1, #4f46e5); box-shadow: 0 0 10px rgba(79,70,229,0.3); }
.bg-green { background: linear-gradient(90deg, #10b981, #059669); box-shadow: 0 0 10px rgba(16,185,129,0.3); }

/* Node Network Status */
.node-grid-wrapper { max-height: 260px; overflow-y: auto; padding: 16px; margin-top: 15px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
.node-card { background: white; border: 1px solid #e2e8f0; padding: 12px 16px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: 0.2s; }
.node-card:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.04); }
.node-name { font-size: 14px; font-weight: 700; color: #334155; }

.status-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px #e2e8f0; }
.status-active { background-color: #10b981; box-shadow: 0 0 0 2px #d1fae5, 0 0 8px #10b981; }
.status-limit { background-color: #3b82f6; box-shadow: 0 0 0 2px #dbeafe, 0 0 8px #3b82f6; }
.status-blocked { background-color: #f59e0b; box-shadow: 0 0 0 2px #fef3c7, 0 0 8px #f59e0b; }
.status-offline { background-color: #94a3b8; }

/* Console Logs */
#liveFeed { background: #0f172a; color: #a7f3d0; padding: 20px; height: 300px; overflow-y: auto; border-radius: 12px; font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 13px; line-height: 1.8; margin-top: 15px; box-shadow: inset 0 4px 6px rgba(0,0,0,0.3); border: 1px solid #1e293b; }

.summary-badges { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.sum-badge { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; color: white; display: flex; align-items: center; gap: 6px; }
.sum-badge.bg-green { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.sum-badge.bg-blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.sum-badge.bg-warn { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.sum-badge.bg-offline { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; margin-left: 12px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: #4f46e5; }
input:checked + .slider:before { transform: translateX(20px); }

/* Global Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.master-theme ::-webkit-scrollbar-thumb { background: #475569; }
.master-theme ::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* -------------------------------------
   TABS & LIVE CRM SPECIFIC STYLES 
---------------------------------------- */
.nav-btn {
    background: transparent; border: none; padding: 10px 18px; border-radius: 8px;
    font-size: 14px; font-weight: 700; color: #64748b; cursor: pointer; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-btn:hover { color: #0f172a; background: rgba(0,0,0,0.02); }
.nav-btn.active { background: white; color: #4f46e5; box-shadow: 0 2px 5px rgba(0,0,0,0.06); }

.crm-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
.crm-table th { padding: 14px 12px; border-bottom: 2px solid #e2e8f0; color: #475569; font-weight: 700; position: sticky; top: 0; background: white; z-index: 5; }
.crm-table td { padding: 14px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; font-weight: 500; }
.crm-table tr:hover td { background: #f8fafc; }

.badge-bounce { background: #fee2e2; color: #dc2626; padding: 5px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 800; border: 1px solid #fecdd3; }
.badge-dead { background: #f1f5f9; color: #475569; padding: 5px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 800; border: 1px solid #e2e8f0; }
.badge-sent { background: #d1fae5; color: #059669; padding: 5px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 800; border: 1px solid #a7f3d0; }
.badge-failed { background: #ffedd5; color: #ea580c; padding: 5px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 800; border: 1px solid #fed7aa; }