/* Modern sleek styles for Build inSite - Premium Glass-Morphism Edition */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Brand Colors - Exact match from marketing site */
    --primary-blue: #0077cc; /* --primary-accent from marketing */
    --dark-navy: #1f2a40;   /* --primary-dark from marketing */
    --white: #ffffff;
    --light-gray: #f4f6f9;  /* --background-gray from marketing */
    --lighter-gray: #fafbfc;
    --text-gray: #333333;   /* --dark-gray from marketing */
    --text-muted: #6c757d;
    --border-gray: #e0e0e0; /* --light-gray from marketing */
    --accent-blue: #3a97e6;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    
    /* Layout Dimensions */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --sidebar-compact-width: 70px;
    --header-height: 70px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Override Bootstrap Variables */
    --bs-primary: var(--primary-blue);
    --bs-dark: var(--dark-navy);
    --bs-success: var(--success-green);
    --bs-warning: var(--warning-yellow);
    --bs-danger: var(--danger-red);
    --bs-border-color: var(--border-gray);
    --bs-border-radius: 0.5rem;
}

/* Core Styling */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.modern-ui {
    font-weight: 400;
    letter-spacing: 0.01rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-dark-navy {
    background-color: var(--dark-navy) !important;
}

/* Interactive Elements */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.nav-link:not(.active):hover {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: var(--white);
    background-color: rgba(0, 119, 204, 0.2);
    font-weight: 600;
}

/* Modern Shadow Effects */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Content Containers */
.content-container {
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.success {
    background-color: var(--success-green);
}

.status-indicator.warning {
    background-color: var(--warning-yellow);
}

.status-indicator.danger {
    background-color: var(--danger-red);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar - Ultra Modern Design */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-navy) 0%, #151e2e 100%);
    z-index: 1030;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding-top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.closed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.closed .nav-link span,
.sidebar.closed .user-info div,
.sidebar.closed .brand-logo span {
    display: none;
}

.sidebar.closed .user-info {
    justify-content: center;
}

.sidebar.closed .nav-link {
    justify-content: center;
    padding: 0.75rem 0;
}

.sidebar.closed .nav-link i {
    margin-right: 0;
    font-size: 1.25rem;
}

.sidebar .brand-logo {
    background: linear-gradient(135deg, var(--primary-blue), #005aa0);
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sidebar .brand-logo a {
    text-decoration: none;
    display: block;
}

.sidebar .brand-logo h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
    color: white;
    font-size: 1.5rem;
}

.sidebar .brand-logo h3 span {
    font-weight: 400;
}

.sidebar .brand-logo p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 0;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar .user-info {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .user-info .avatar {
    background: linear-gradient(45deg, var(--primary-blue), #0092ff);
    box-shadow: 0 4px 10px rgba(0, 119, 204, 0.3);
    font-weight: 600;
    letter-spacing: -1px;
}

.sidebar .nav-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.sidebar .nav-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    margin: 0.3rem 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.sidebar .nav-link:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    color: var(--white);
    background: linear-gradient(90deg, rgba(0, 119, 204, 0.25), rgba(0, 119, 204, 0.05));
    box-shadow: inset 3px 0 0 var(--primary-blue);
    font-weight: 600;
}

.sidebar .nav-link i {
    min-width: 20px;
    text-align: center;
    font-size: 1rem;
    margin-right: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar .nav-link:hover i, 
.sidebar .nav-link.active i {
    color: var(--primary-blue);
}

/* Header - Premium Glass-Morphism Design */
.header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(230, 230, 230, 0.5);
    z-index: 1020;
    padding: 0 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--dark-navy);
}

.sidebar.closed ~ .header {
    left: var(--sidebar-collapsed-width);
}

/* Header components */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lighter-gray);
    border: none;
    color: var(--dark-navy);
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

.user-dropdown {
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown:hover {
    opacity: 0.9;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 240px;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

.dropdown-item i {
    margin-right: 0.75rem;
    opacity: 0.7;
}

/* Main content - Sleek Modern Layout */
.content-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 2rem;
    transition: all 0.3s ease;
    background-color: var(--light-gray);
    min-height: calc(100vh - var(--header-height));
}

.sidebar.closed ~ .content-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

.page-container {
    max-width: 1600px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 80%;
    margin-bottom: 0;
}

/* Glass-Morphism Elements */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    padding: 0.5rem;
}

/* Icon Box Styling */
.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Data Visualization Components */
.risk-meter {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--success-green), var(--warning-yellow), var(--danger-red));
}

.risk-indicator {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 3px solid var(--warning-yellow);
    border-radius: 50%;
    top: -4px;
    transition: all 0.3s ease;
}

/* Card styling - Elevated Modern Design */
.card {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-gray);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 119, 204, 0.1);
    color: var(--primary-blue);
}

.card-header h5, .card-header h4, .card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--dark-navy);
}

.card-header-actions {
    display: flex;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-gray);
    padding: 1rem 1.5rem;
}

/* Card variations */
.card-accent-primary {
    border-top: 4px solid var(--primary-blue);
}

.card-accent-success {
    border-top: 4px solid var(--success-green);
}

.card-accent-warning {
    border-top: 4px solid var(--warning-yellow);
}

.card-accent-danger {
    border-top: 4px solid var(--danger-red);
}

.card-hover-reveal .card-hover-content {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.card-hover-reveal:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* Service card style from marketing site */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Button styling to match marketing site */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #0065b0;
    border-color: #0065b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 204, 0.2);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 204, 0.1);
}

.btn-dark {
    background-color: var(--dark-navy);
    border-color: var(--dark-navy);
}

.btn-dark:hover {
    background-color: #283550;
    border-color: #283550;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

/* Auth container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    padding: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%231f2a40' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-card {
    max-width: 450px;
    width: 100%;
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border-top: 4px solid var(--primary-blue);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header h1 span.brand-primary {
    color: var(--primary-blue);
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

/* Dashboard widgets */
.stat-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 0.75rem;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card .icon {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.15;
}

.stat-card .stat-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-description {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
}

.chatbot-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
}

.chatbot-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: var(--bs-dark);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
}

.message {
    max-width: 80%;
    margin-bottom: 1rem;
    clear: both;
}

.user-message {
    float: right;
}

.bot-message {
    float: left;
}

.message-content {
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.user-message .message-content {
    background-color: var(--bs-primary);
    color: white;
    border-top-right-radius: 0;
}

.bot-message .message-content {
    background-color: var(--bs-dark-bg-subtle);
    border-top-left-radius: 0;
}

/* Compact Sidebar Icon Alignment Fix */
.sidebar-compact {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-navy) 0%, #172033 100%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-compact, .user-compact, .nav-compact, .nav-compact-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
}

.brand-compact {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-compact {
    margin-bottom: 1.5rem;
}

.nav-compact {
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

.nav-icon.active {
    background: linear-gradient(135deg, var(--primary-blue), #005aa0);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 119, 204, 0.3);
}

.nav-icon i {
    font-size: 1.1rem;
}

.avatar-compact {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-blue), #0092ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.brand-compact a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), #005aa0);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Mobile Sidebar Styling */
    .sidebar {
        display: none; /* Hide desktop sidebar on mobile */
    }
    
    /* Mobile Navigation Toggle Button */
    .mobile-nav-toggle {
        display: block;
        z-index: 1050;
    }
    
    /* Mobile Offcanvas Menu */
    .offcanvas-body .nav-link {
        padding: 0.85rem 1rem;
        margin: 0.3rem 0;
        color: rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
    }
    
    .offcanvas-body .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--white);
    }
    
    .offcanvas-body .nav-link.active {
        color: var(--white);
        background: linear-gradient(90deg, rgba(0, 119, 204, 0.25), rgba(0, 119, 204, 0.05));
        box-shadow: inset 3px 0 0 var(--primary-blue);
        font-weight: 600;
    }
    
    /* Adjust header and content for mobile */
    .header, .content-wrapper {
        left: 0 !important;
        margin-left: 0 !important;
        width: 100%;
    }
    
    /* Container padding adjustment */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Content wrapper padding */
    .content-wrapper {
        padding: 1rem;
    }
    
    /* Responsive typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    /* Adjust card padding */
    .card-header, .card-body, .card-footer {
        padding: 1rem;
    }
}
    
    .chatbot-panel {
        width: 300px;
        height: 450px;
    }
}
/* Layout Fixes for Scrolling Issues */
html, body {
    overflow-x: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

.container-fluid {
    margin-left: 70px !important;
    padding: 1rem !important;
    width: calc(100vw - 70px) !important;
    max-width: calc(100vw - 70px) !important;
    box-sizing: border-box !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.main-content, .content-wrapper {
    margin-left: 70px !important;
    padding: 1rem !important;
    width: calc(100vw - 70px) !important;
    max-width: calc(100vw - 70px) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.card {
    margin-bottom: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.card-body {
    padding: 1rem !important;
}

/* Prevent horizontal expansion */
* {
    box-sizing: border-box;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.col, .col-*, [class*="col-"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}
