:root {
    --primary: #000000;
    --primary-dark: #333333;
    --accent: #000000;
    --bg: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-heavy: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1d1d1f;
    --text-muted: #666666;
    --success: #333333;
    --error: #000000;
    --orange: #666666;
    --orange-dark: #333333;
}


* {
    box-sizing: border-box;
    box-shadow: none !important;
}

/* Force disable all glow-related pseudo elements */
*::after, *::before {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    content: none !important;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    box-shadow: none !important;
}

/* OAuth Buttons */
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}
.oauth-btn:hover {
    background: #f5f5f7;
}

/* Glow effect disabled by request */
.background-blobs {
    display: none !important;
}

header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.25rem;
    margin: 0;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.02em;
}

main { display: flex; padding: 30px; gap: 30px; }

.sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 15px;
}

.storage-btn {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text);
    text-align: left;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.storage-btn.active { border-color: var(--primary); background: rgba(0, 0, 0, 0.05); }

.icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    background: var(--glass-heavy);
}
.storage-btn[data-type="minio"] .icon { background: #333; color: white; box-shadow: 0 0 15px rgba(0,0,0,0.1); }
.storage-btn[data-type="s3"] .icon { background: #666; color: #ffffff; box-shadow: 0 0 15px rgba(0,0,0,0.1); }
.storage-btn[data-type="gcs"] .icon { background: #444; color: white; box-shadow: 0 0 15px rgba(0,0,0,0.1); }
.storage-btn[data-type="blob"] .icon { background: #222; color: white; box-shadow: 0 0 15px rgba(0,0,0,0.1); }
.storage-btn[data-type="adls"] .icon { background: #555; color: white; box-shadow: 0 0 15px rgba(0,0,0,0.1); }



.browser-list { list-style: none; padding: 0; margin: 0; }
.browser-list li {
    padding: 10px 15px;
    background: var(--glass);
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
}
.browser-list li:hover { border-color: var(--border); background: var(--glass-heavy); }

.content-area { flex: 1; display: flex; flex-direction: column; gap: 30px; }

.query-builder-card, .results-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* ── Results Tabs ── */
.results-tabs {
    display: flex;
    gap: 0;
}
.view-tab {
    background: none;
    border: none;
    padding: 18px 25px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.view-tab:hover {
    color: var(--text);
    background: rgba(255,255,255,0.02);
}
.view-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

/* ── AI Chat Panel (Chat View) ── */
.ai-chat-panel {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.ai-chat-panel:focus-within {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.04);
}
.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--primary);
}
.ai-chat-body {
    display: flex;
    gap: 12px;
}
.ai-chat-body input {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
}
.btn-ai {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.btn-ai:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* ── Notebook Tabs ── */
.notebook-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.notebook-tab:hover { color: var(--text); }
.notebook-tab.active { 
    background: #e8e8ed; 
    color: var(--text); 
    font-weight: 600;
}

.query-editor-wrapper textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #1d1d1f;
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 1.05rem;
    resize: none;
    outline: none;
    line-height: 1.6;
}

/* ── Column Profiling (DuckDB-UI inspired) ── */
.profiler-row th {
    background: rgba(255,255,255,0.02);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    padding: 8px 15px;
    border-bottom: 2px solid var(--border);
}
.profile-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}
.profile-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.action-bar { display: flex; align-items: center; gap: 10px; margin-top: 0; padding: 14px 20px; flex-wrap: wrap; }

.btn {
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary { 
    background: var(--primary); 
    color: white; 
    border: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-secondary { background: #e8e8ed; color: #1d1d1f; border: none; }
.btn:hover { transform: scale(1.02); }

.ghost-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ghost-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--orange);
    border-color: var(--orange);
}

/* ── Admin Center Orange Override ── */





.table-container { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; padding: 12px 15px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 12px 15px; border-bottom: 1px solid var(--border); }

.dashboard-table {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.dashboard-table th {
    background: #f5f5f7;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 12px 15px;
    font-weight: 600;
}
.dashboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text);
}
.dashboard-table tr:last-child td { border-bottom: none; }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center; z-index: 100000;
}
.modal { background: #ffffff; border: 1px solid var(--border); border-radius: 24px; padding: 30px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); max-height: 90vh; overflow-y: auto; }
#upload-zone.drag-over {
    border-color: var(--primary); background: rgba(0, 0, 0, 0.05);
    color: var(--primary); transform: scale(1.02);
}

/* ── Settings Inputs ── */
.cfg-lbl {
    display: block; font-size: 0.7rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 5px;
}
.cfg-input {
    width: 100%; box-sizing: border-box;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 12px; color: var(--text);
    font-family: 'Outfit', sans-serif; font-size: 0.83rem;
    outline: none; transition: border-color 0.2s;
}
.cfg-input:focus { border-color: var(--primary); }
.conn-status {
    font-size: 0.75rem; border-radius: 8px; padding: 8px 12px;
    display: none; align-items: center; gap: 8px;
}
.conn-status.ok  { display:flex; background:rgba(0, 0, 0, 0.05); border:1px solid rgba(0, 0, 0, 0.15); color:#333333; }
.conn-status.err { display:flex; background:rgba(0, 0, 0, 0.05);  border:1px solid rgba(0, 0, 0, 0.15);  color:#000000; }
.conn-status.testing { display:flex; background:rgba(0, 0, 0, 0.05); border:1px solid rgba(139,92,246,0.3); color:var(--text-muted); }

/* ── Provider Cards ── */
.provider-card {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; transition: all 0.2s;
}
.provider-card:hover { border-color: var(--primary); background: var(--glass-heavy); }
.provider-card.provider-active { border-color: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.05); }
.provider-icon {
    color: #ffffff; border-radius: 8px; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.provider-status { font-size: 0.65rem; color: var(--text-muted); }
.provider-status.online { color: var(--success); }

/* ── Type Filter Pills ── */
.type-pill {
    background: var(--glass); border: 1px solid var(--border);
    color: var(--text-muted); border-radius: 20px; padding: 3px 10px;
    font-size: 0.68rem; font-family: 'Outfit', sans-serif; cursor: pointer;
    transition: all 0.18s; font-weight: 500;
}
.type-pill:hover { border-color: var(--primary); color: var(--text); }
.type-pill.active {
    background: var(--primary); border-color: var(--primary);
    color: #ffffff; font-weight: 600;
}

/* ── Type Filter Chips ── */
.type-chip {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 600;
}
.type-chip:hover {
    background: var(--glass-heavy);
    color: var(--text);
    border-color: var(--text-muted);
}
.type-chip.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}


/* ── Config Tabs ── */
.cfg-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--text-muted); padding: 14px 16px; font-size: 0.82rem;
    font-family: 'Outfit', sans-serif; cursor: pointer; transition: all 0.2s;
    white-space: nowrap; display: flex; align-items: center;
}
.cfg-tab:hover { color: var(--text); }
.cfg-tab.active { color: var(--text); border-bottom-color: var(--primary); }

/* ── Config Grid ── */
.cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.cfg-field { display: flex; flex-direction: column; gap: 6px; }
.cfg-field.cfg-full { grid-column: 1 / -1; }
.cfg-field label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.cfg-field input, .cfg-field select {
    background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 12px; color: var(--text); font-family: 'Outfit', sans-serif;
    font-size: 0.83rem; outline: none; transition: border-color 0.2s;
}
.cfg-field input:focus, .cfg-field select:focus { border-color: var(--primary); }
.cfg-field select option { background: #ffffff; }

/* ── Status Bar ── */
.cfg-status-bar {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    border-radius: 8px; background: rgba(0,0,0,0.2); border: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-muted); margin-bottom: 20px;
}
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.online  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.offline { background: #64748b; }
.status-dot.testing { background: #666666; box-shadow: 0 0 6px #666666; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ── Enterprise Login Overlay (Marketing Portal) ─────────────── */
#login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.login-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    width: 440px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Live Burn Pulsing ── */
@keyframes burn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.burn-pulse-effect {
    animation: burn-pulse 2s infinite;
}

.login-card h1 {
    font-size: 2.5rem;
    margin: 0;
    text-align: center;
    
    color: var(--text);
}

.login-card p {
    color: var(--text-muted);
    text-align: center;
    margin: -10px 0 20px;
    font-size: 0.9rem;
}

.login-card input {
    
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.login-card button {
    
    background: #000000;
    color: #ffffff;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

/* ── Target Cards ────────────────── */
.target-card {
    padding: 12px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}
.target-card.active {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}
.target-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; background: var(--glass-heavy);
}

.badge-gdrive {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 45%, #FBBC05 75%, #EA4335 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.badge-iceberg {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #7dd3fc 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.action-bar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto;
    white-space: nowrap;
}

#live-burn-meter {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

