/* ==========================================================================
   OSINT Intelligence Platform - application styles
   Direction-agnostic: relies on Bootstrap's RTL/LTR logical properties, plus a
   few custom components. Works identically in Arabic (RTL) and English (LTR).
   ========================================================================== */

:root {
    --osint-sidebar-bg: #0f172a;
    --osint-sidebar-hover: #1e293b;
    --osint-accent: #2563eb;
}

body.osint-app {
    background: #f1f5f9;
    min-height: 100vh;
}

/* Sidebar ---------------------------------------------------------------- */
.osint-sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--osint-sidebar-bg);
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.osint-sidebar .sidebar-brand {
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
}

.osint-sidebar .brand-text {
    font-size: .9rem;
    line-height: 1.2;
}

.osint-sidebar .nav-link {
    border-radius: .5rem;
    margin-bottom: .15rem;
    padding: .6rem .85rem;
    font-size: .92rem;
    opacity: .85;
    transition: background .15s ease, opacity .15s ease;
}

.osint-sidebar .nav-link:hover,
.osint-sidebar .nav-link.active {
    background: var(--osint-sidebar-hover);
    opacity: 1;
}

.main-area {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Stat cards ------------------------------------------------------------- */
.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Guest / login ---------------------------------------------------------- */
.osint-guest {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.guest-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 1rem;
    padding: 2.25rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
}

/* Small screens: collapse the sidebar to icons ---------------------------- */
@media (max-width: 768px) {
    .osint-sidebar { width: 64px; }
    .osint-sidebar .brand-text,
    .osint-sidebar .nav-link span { display: none; }
}
