/* Custom styles for Terniq AI */

/* Add some spacing to the body */
body {
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Increased to accommodate the larger floating navbar */
}

/* Make footer stick to bottom */
footer {
    margin-top: auto;
}

/* Custom card styling */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Navbar customization - Updated for new Terniq theme */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Button styling - Updated to work with Terniq theme */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* Custom badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Form elements - Updated for Terniq theme */
.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Animation for alert dismissal */
.alert.fade {
    transition: opacity 0.5s linear;
}

/* Dashboard Sidebar - Adjusted for new navbar */
#sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    z-index: 100;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: opacity 0.3s ease-in-out;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .nav-link span {
    flex: 1;
    transition: opacity 0.3s ease-in-out;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    border-left-color: #2563eb; /* Updated to use Terniq primary color */
}

.sidebar .nav-link.active {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
    border-left-color: #2563eb;
    font-weight: 600;
}

.sidebar .nav-link.nav-active {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
    border-left-color: #2563eb;
    font-weight: 600;
}

/* Active parent items */
.sidebar .nav-link[aria-expanded="true"].active,
.sidebar .nav-link[aria-expanded="true"].nav-active {
    background-color: rgba(37, 99, 235, 0.05);
    border-left-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
}

/* Submenu styling */
.sidebar .submenu {
    margin-left: 40px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sidebar .submenu .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #343a40;
    border-left: none;
    background-color: transparent !important;
}

.sidebar .submenu .nav-link:hover {
    color: #2563eb;
}

/* Submenu active items */
.sidebar .submenu .nav-link.active,
.sidebar .submenu .nav-link.nav-active {
    color: #2563eb;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.05) !important;
    position: relative;
}

/* Icon styling */
.sidebar .nav-link i:not(.submenu-toggle) {
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link.active i,
.sidebar .nav-link.nav-active i {
    color: #2563eb;
}

.sidebar .nav-link i:not(.submenu-toggle) {
    margin-right: 0.5rem;
    color: #6c757d;
    width: 1.25rem;
    text-align: center;
}

/* Submenu toggle icon animation */
.sidebar .nav-link .submenu-toggle {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.sidebar .nav-link[aria-expanded="true"] .submenu-toggle {
    transform: rotate(-180deg);
}

/* Alerts Dropdown Styling - Updated for Terniq theme */
.icon-circle {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.dropdown-list {
    padding: 0;
    border: none;
    overflow: hidden;
}

.dropdown-header {
    background-color: #2563eb;
    border: 1px solid #2563eb;
    padding: 0.75rem 1rem;
    color: white;
}

.dropdown-item {
    white-space: normal;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e3e6f0;
}

.dropdown-item:active {
    color: #fff;
    background-color: #2563eb;
}

/* Dashboard widgets and cards */
.dashboard-stats-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.dashboard-stats-card:hover {
    transform: translateY(-5px);
}

/* Custom colors - Updated for Terniq theme */
.bg-primary {
    background-color: #2563eb !important;
}

.text-primary {
    color: #2563eb !important;
}

/* Sidebar Toggle Button - Updated for Terniq theme */
#sidebarToggle {
    background-color: #fff;
    width: 2rem;
    height: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

#sidebarToggle:hover {
    background-color: #2563eb;
    color: #fff;
}

.sidebar-toggled #sidebarToggle i {
    transform: rotate(180deg);
}

#sidebarToggleTop {
    height: 2.5rem;
    width: 2.5rem;
    text-align: center;
    margin-right: 1rem;
}

/* AI Assistant Widget - Updated for Terniq theme */
.ai-assistant-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.ai-assistant-header {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-assistant-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.ai-message {
    background-color: #f0f7ff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    max-width: 80%;
}

.ai-message p {
    margin-bottom: 0;
}

.ai-input-area {
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #dee2e6;
}

.ai-assistant-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    z-index: 999;
    cursor: pointer;
}

/* Widget header styling */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.widget-title {
    margin-bottom: 0;
    font-weight: 500;
}

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

/* Search box styling */
.navbar-search .input-group {
    border-radius: 2rem;
    overflow: hidden;
}

.navbar-search .form-control {
    border-radius: 2rem 0 0 2rem;
    border: none;
}

.navbar-search .btn {
    border-radius: 0 2rem 2rem 0;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
}

/* Sidebar collapsed state */
.sidebar-toggled #sidebar {
    width: 6.5rem !important;
    overflow: visible; /* Allow tooltips to show */
}

.sidebar-toggled .nav-item .nav-link {
    text-align: center;
    padding: 0.75rem 0.5rem;
    width: 6.5rem;
    position: relative;
    justify-content: center;
    border-left: 3px solid transparent;
}

.sidebar-toggled .nav-item .nav-link span {
    display: none;
}

/* Hide badges in collapsed state */
.sidebar-toggled .nav-item .nav-link .badge {
    display: none;
}

.sidebar-toggled .submenu,
.sidebar-toggled .sidebar-heading,
.sidebar-toggled .nav-item .nav-link .submenu-toggle {
    display: none !important;
}

.sidebar-toggled .nav-item .nav-link i:not(.submenu-toggle) {
    font-size: 1.1rem;
    margin: 0;
    color: #6c757d;
    transition: color 0.2s ease;
}

/* Active state for collapsed nav links */
.sidebar-toggled .nav-item .nav-link.active,
.sidebar-toggled .nav-item .nav-link.nav-active {
    background-color: rgba(26, 155, 215, 0.1);
    border-left-color: #1a9bd7;
}

.sidebar-toggled .nav-item .nav-link.active i,
.sidebar-toggled .nav-item .nav-link.nav-active i {
    color: #1a9bd7;
}

/* Hover state for collapsed nav links */
.sidebar-toggled .nav-item .nav-link:hover {
    background-color: #f8f9fa;
    border-left-color: #1a9bd7;
}

.sidebar-toggled .nav-item .nav-link:hover i {
    color: #1a9bd7;
}

/* Tooltips for collapsed sidebar */
.sidebar-toggled .nav-item .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(33, 37, 41, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1050;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.sidebar-toggled .nav-item .nav-link::before {
    content: '';
    position: absolute;
    left: calc(100% + 5px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(33, 37, 41, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1050;
}

.sidebar-toggled .nav-item .nav-link:hover::after,
.sidebar-toggled .nav-item .nav-link:hover::before {
    opacity: 1;
    visibility: visible;
}

.sidebar-toggled .sidebar-brand .sidebar-brand-icon {
    display: block;
}

.sidebar-toggled .sidebar-brand .sidebar-brand-text {
    display: none;
}

/* Mobile Touch Enhancements - Updated for Terniq theme */
.menu-touch-highlight {
    background-color: rgba(37, 99, 235, 0.2);
    transition: background-color 0.3s;
}

.nav-link.touched {
    position: relative;
}

.nav-link.touched::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #2563eb;
    border-radius: 50%;
}

.nav-link.touch-active {
    background-color: rgba(37, 99, 235, 0.15);
}

.nav-link.scrollactive {
    border-left-color: #2563eb !important;
    color: #2563eb !important;
}

#backToTop {
    transition: all 0.2s;
    width: 80%;
    max-width: 200px;
    border-radius: 20px;
}

#backToTop:hover, #backToTop:active {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* Responsive adjustments - Updated for new navbar */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Consistent with desktop for floating navbar */
    }
    
    #sidebar {
        width: 100%;
        max-width: 280px;
        position: fixed;
        top: 80px; /* Adjusted for floating navbar height */
        bottom: 0;
        left: 0;
        z-index: 1000;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    #sidebar.show {
        transform: translateX(0);
    }
    
    #content {
        width: 100%;
    }
    
    .ai-assistant-widget {
        width: 300px;
        height: 400px;
    }
    
    .sidebar-toggled #sidebar {
        width: 0 !important;
    }
    
    .sidebar-brand {
        display: none;
    }
    
    /* Enhanced mobile navigation */
    #sidebar .nav-link {
        padding: 0.85rem 1.25rem;
        font-size: 1.05rem;
    }
    
    #sidebar .submenu .nav-link {
        padding: 0.7rem 1rem 0.7rem 2.5rem;
    }
    
    #sidebar .nav-link i:not(.submenu-toggle) {
        width: 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Improved touch feedback */
    #sidebar .nav-link:active {
        background-color: rgba(37, 99, 235, 0.15);
    }
    
    /* Increase spacing between items for better touch targets */
    #sidebar .nav-item {
        margin-bottom: 2px;
    }
    
    /* Fixed navbar shadow on mobile */
    .fixed-top.shadow-sm {
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    }
    
    /* Adjust searchbar on mobile */
    .navbar-search {
        margin: 0.25rem 0;
    }
    
    /* Show the backdrop on mobile when needed */
    .sidebar-backdrop.show {
        display: block;
    }
    
    /* Improved mobile sidebar close button */
    #sidebarClose {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.05);
        transition: background-color 0.2s;
    }
    
    #sidebarClose:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Hide breadcrumb on small screens */
    .breadcrumb {
        display: none;
    }
}

/* Animation for sidebar transitions */
.animated--grow-in {
    animation-name: growIn;
    animation-duration: 0.2s;
    animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
}

@keyframes growIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* For tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar-toggled.sidebar-fixed .sidebar {
        width: 6.5rem!important;
    }
    
    .sidebar-toggled.sidebar-fixed .sidebar .nav-item .nav-link {
        width: 6.5rem!important;
        text-align: center;
        padding: 0.75rem 0.5rem;
        justify-content: center;
    }
    
    .sidebar-toggled.sidebar-fixed .sidebar .nav-item .nav-link span {
        display: none;
    }
    
    .sidebar-toggled.sidebar-fixed .sidebar .nav-item .nav-link i:not(.submenu-toggle) {
        margin: 0;
        font-size: 1.1rem;
    }
}

/* Add backdrop when sidebar is open */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s;
}

/* Breadcrumb styling - Updated for Terniq theme */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.1rem;
    font-weight: 400;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #2563eb;
    font-weight: 600;
}

/* Page title that gets updated by breadcrumb */
.page-title {
    color: #343a40;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Breadcrumb home icon */
.breadcrumb-item:first-child i {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* Dashboard Card Component */
.dashboard-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(50px, auto);
    gap: 1rem;
    padding: 1rem;
    position: relative;
    min-height: 500px;
}

.dashboard-grid .dashboard-card-container {
    grid-column: span 3; /* Default 3 columns (1/4 of grid) */
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 100px;
}

.dashboard-grid .dashboard-card-container.col-span-3 {
    grid-column: span 3; /* 1/4 width */
}

.dashboard-grid .dashboard-card-container.col-span-4 {
    grid-column: span 4; /* 1/3 width */
}

.dashboard-grid .dashboard-card-container.col-span-6 {
    grid-column: span 6; /* 1/2 width */
}

.dashboard-grid .dashboard-card-container.col-span-12 {
    grid-column: span 12; /* Full width */
}

.dashboard-grid .dashboard-card-container.is-dragging {
    opacity: 0.8;
    z-index: 100;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    cursor: grabbing;
}

.dashboard-grid.drag-active .dashboard-grid-placeholder {
    background-color: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff;
    border-radius: 0.5rem;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
}

.dashboard-card .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.dashboard-card .widget-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
    font-weight: 600;
}

.dashboard-card .card-body {
    flex-grow: 1;
    position: relative;
    padding: 1rem;
}

.dashboard-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
}

.dashboard-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a9bd7;
}

.dashboard-card .card-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.dashboard-card .card-resize-handle {
    position: absolute;
    right: 5px;
    bottom: 5px;
    cursor: nwse-resize;
    color: #dee2e6;
    font-size: 12px;
    opacity: 0.5;
    transition: opacity 0.2s;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.dashboard-card .card-resize-handle:hover {
    opacity: 1;
    color: #1a9bd7;
}

.dashboard-grid .dashboard-card.card-resizing {
    opacity: 0.8;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    transition: none;
    z-index: 100;
}

.dashboard-grid .dashboard-card-container.is-resizing {
    z-index: 100;
}

.dashboard-card .resize-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    cursor: nwse-resize;
}

/* Size indicators for resize operation */
.resize-size-indicator {
    position: absolute;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Card sizes classes */
.dashboard-grid .dashboard-card-container.card-size-xs {
    grid-column: span 3; /* 1/4 width */
}

.dashboard-grid .dashboard-card-container.card-size-sm {
    grid-column: span 4; /* 1/3 width */
}

.dashboard-grid .dashboard-card-container.card-size-md {
    grid-column: span 6; /* 1/2 width */
}

.dashboard-grid .dashboard-card-container.card-size-lg {
    grid-column: span 8; /* 2/3 width */
}

.dashboard-grid .dashboard-card-container.card-size-xl {
    grid-column: span 12; /* Full width */
}

.dashboard-grid .dashboard-card-container.card-height-sm {
    grid-row: span 1;
}

.dashboard-grid .dashboard-card-container.card-height-md {
    grid-row: span 2;
}

.dashboard-grid .dashboard-card-container.card-height-lg {
    grid-row: span 3;
}

/* Card states */
.dashboard-card.card-minimized .card-body,
.dashboard-card.card-minimized .card-footer {
    display: none;
}

.dashboard-card.card-maximized {
    position: fixed;
    top: 60px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: auto;
    z-index: 9999;
    transform: none !important;
}

.dashboard-card-container.is-dragging {
    z-index: 100;
    opacity: 0.8;
}

/* Card animations */
.dashboard-card.animate-in {
    animation: cardFadeIn 0.3s ease-in;
}

.dashboard-card.animate-out {
    animation: cardFadeOut 0.3s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Media queries for responsive cards */
@media (max-width: 768px) {
    .dashboard-card .widget-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-card .widget-actions {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}

/* Add CSS to ensure submenus stay open when active */
#sidebar .submenu.show {
    display: block !important;
}

#sidebar .nav-link[aria-expanded="true"] .submenu-toggle {
    transform: rotate(-180deg);
    transition: transform 0.3s ease;
}

#sidebar .nav-link .submenu-toggle {
    transition: transform 0.3s ease;
}

/* Fix for submenus containing active items - only for the submenu containing the active item */
#sidebar .submenu:has(.nav-link.active) {
    display: block !important;
}

/* Alternative fix for older browsers */
#sidebar .submenu-active {
    display: block !important;
}

/* Make sure submenu parent indicators are correct */
#sidebar .nav-link[aria-expanded="false"] .submenu-toggle {
    transform: rotate(0deg);
}

/* Parent menu indicator when not active */
#sidebar .nav-link[aria-expanded="false"]:not(.active):not(.nav-active) {
    color: #333;
    background-color: transparent;
} 