/* ============================================================
   DeepIntel OSINT Platform - Global Stylesheet
   ============================================================ */

:root {
    --primary: #4338ca;
    --primary-light: #818cf8;
    --surface: #0c0c1e;
    --surface-2: #111128;
    --border: rgba(255, 255, 255, 0.08);
    --text-muted: #6b7280;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #060610;
    color: #e5e7eb;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4338ca; }

/* Selection */
::selection { background: rgba(99, 102, 241, 0.3); color: white; }

/* Navbar brand icon */
.brand-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}

/* Form controls override */
.form-control::placeholder { color: #4b5563 !important; }
.form-control:focus { outline: none !important; }

/* Buttons */
.btn { border-radius: 8px; font-weight: 500; }
.btn-primary {
    background: linear-gradient(135deg, #4338ca, #7c3aed) !important;
    border: none !important;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99,102,241,0.4) !important;
}

/* Cards */
.card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Badges */
.bg-primary-subtle { background: rgba(99,102,241,0.15) !important; }
.bg-success-subtle { background: rgba(34,197,94,0.15) !important; }
.bg-warning-subtle { background: rgba(245,158,11,0.15) !important; }
.bg-danger-subtle { background: rgba(239,68,68,0.15) !important; }
.bg-secondary-subtle { background: rgba(107,114,128,0.15) !important; }

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255,255,255,0.05);
}
.table-dark td, .table-dark th {
    color: #e5e7eb;
    vertical-align: middle;
}
.table-hover > tbody > tr:hover > * {
    background-color: rgba(99,102,241,0.05) !important;
}

/* Alerts */
.alert {
    border-radius: 10px;
}

/* Progress */
.progress {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
    100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
.pulse { animation: pulse-ring 2s ease-in-out infinite; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Module tab styles */
.module-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}
.module-tab.active {
    border-bottom-color: #818cf8;
    color: white !important;
}
.module-tab:hover {
    color: white !important;
    background: rgba(99,102,241,0.1);
    border-radius: 6px 6px 0 0;
}

/* Result type icons */
.text-purple { color: #a855f7 !important; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 2rem 0; }
    .search-box-container { padding: 1.5rem !important; }
}

/* List group dark */
.list-group-item {
    transition: all 0.2s;
}
.list-group-item:hover {
    border-color: rgba(99,102,241,0.3) !important;
    background: rgba(99,102,241,0.05) !important;
}

/* Monospace for URLs */
.url-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

/* Input group fixes */
.input-group-text {
    border-radius: 10px 0 0 10px !important;
}
.input-group .form-control {
    border-radius: 0 !important;
}
.input-group .btn {
    border-radius: 0 10px 10px 0 !important;
}
