/* Navigation Bar */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --bg-color: #feffee;
    --sidebar-bg: #0e223e;
    --text-color: #1a1a1a;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --muted-text: #888;
    --stat-card-bg: #f5f5f3;
    --link-color: #185fa5;
    --input-bg: #ffffff;
    --input-color: #333;
    --link:  #001f5b;
    /* Cytoscape map colours */
    --cy-node-bg: #0e223e;
    --cy-edge-color: #4a5568;
    --cy-edge-label-bg: #feffee;
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --sidebar-bg: #0a0f1e;
    --text-color: #e2e8f0;
    --card-bg: #16213e;
    --card-border: #2d3748;
    --muted-text: #94a3b8;
    --stat-card-bg: #0f172a;
    --link-color: #38bdf8;
    --input-bg: #0f172a;
    --input-color: #e2e8f0;
    --link: #a9a9aa;
    /* Cytoscape map colours */
    --cy-node-bg: #1e3a5f;
    --cy-edge-color: #9db8dd;
    --cy-edge-label-bg: #1a1a2e;
}

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.wrapper{
    display: flex;
}

.fw-semibold {
    color: var(--link-color);
}

.fw-bold {
    color: var(--link);
}

.main{
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: var(--bg-color);
}

#sidebar{
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    display: flex;
    flex-direction: column;
    background-color: var(--sidebar-bg);
    padding-bottom: 2.5rem;
}

#sidebar.expand{
    width: 260px;
    min-width: 260px;
}

#toggle-btn{
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem
}

#toggle-btn i{
    font-size: 1.5;
    color: #fff;
}

.sidebar-logo{
    margin: auto 0;
}

.sidebar-logo a{
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span{
    display: none;
}

.sidebar-nav{
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link{
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i{
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover{
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-avatar-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    display: block;
    padding: .625rem 1.625rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

#sidebar:not(.expand) .logout-btn span {
    display: none;
}

.logout-btn:hover{
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0e223e;
    color: white;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 9999;
}

[data-theme="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-color);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--card-border);
}

[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--card-border);
}

[data-theme="dark"] .text-muted {
    color: var(--muted-text) !important;
}