/* Global styles */
html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
    font-family: "Inter";
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: 100vh !important;
    margin: 0;
    padding: 0;
}

body {
    background-color: #161b22; /* Match sidebar color */
    color: #f0f6fc; /* Slightly softer white for better readability */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes up at least the full viewport height */
}

body.sidebar-open {
    overflow-x: hidden;
}


text {
    color: white !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #f0f6fc; /* Match body text color */
    font-weight: 600; /* Slightly bolder headers */
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.6rem; }
    h4 { font-size: 1.4rem; }
    h5 { font-size: 1.2rem; }
    h6 { font-size: 1rem; }
}

section {
    font-size: 1rem;
    line-height: 1.5;
}

.form-label {
    color: #c9d1d9; /* Softer white for form labels */
    font-weight: 500; /* Slightly bolder */
}

/* App Logo */
.app-logo .logo-img {
    width: 30px;
    height: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Menu */
#menu {
    width: 100% !important;
    height: 100% !important;
    background-color: inherit;
    overflow-y: hidden;
}

#menu .e-menu-item:not(.e-separator) {
    height: 100% !important;
    padding: 5px 0;
}

#menu .e-menu-item {
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#menu .e-menu-item:hover {
    background-color: rgba(88, 166, 255, 0.1); /* Subtle blue highlight on hover */
    border-radius: 6px; /* Rounded corners for modern look */
}

#menu .e-menu-item a {
    width: 100% !important;
    color: #c9d1d9; /* Softer text color for better readability */
    font-weight: 400;
    box-sizing: border-box;
    height: 30px;
    padding: 0 12px; /* Add some horizontal padding */
}

.e-anchor-wrap {
    width: 100% !important;
}

#menu .e-anchor-wrap {
    display: inline-block;
}

#menu .e-menu-item .e-anchor-wrap span.e-menu-icon {
    color: #65da41; /* Green for icons */
}

#menu .e-menu-item.e-separator {
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    color: #65da41; /* Match icon color */
    padding: 15px 10px 5px;
    margin-top: 10px;
    letter-spacing: 0.5px; /* Better readability for headings */
}

#menu .e-menu-item.e-separator:not(:first-child) {
    background-color: inherit;
}

/* Dropdowns */
#menu .e-menu-item .e-ul {
    padding: 0;
    margin: 0;
    top: 0;
    left: 100%;
    min-width: 200px;
}

.e-menu-icon {
    margin-right: 12px !important;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    color: #65da41; /* Green for icons */
}

/* Main Content & Sidebar */
.main-container {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%; /* Full width */
    min-height: calc(100vh - 56px); /* Full viewport height minus navbar */
    flex: 1;
}

.main-content {
    padding-top: 70px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: all 300ms ease-in-out;
    flex: 1;
    min-height: calc(100vh - 56px); /* Full viewport height minus navbar */
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Ensure no max-width constraints */
}

/* Sidebar overlay behavior */
#sidebar {
    position: fixed;
    width: 250px !important;
    top: 56px; /* Start below navbar height */
    height: calc(100vh - 56px); /* Full viewport height minus navbar height */
    background-color: #161b22; /* Match body background color */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    z-index: 1030;
    border-right: 2px solid rgba(48, 54, 61, 0.8); /* More subtle border */
    will-change: transform; /* Optimize for animations */
    backface-visibility: hidden; /* Prevent flickering in some browsers */
}

/* Apply transitions only when toggling, not on page load */
.sidebar-toggling #sidebar {
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing for natural feel */
}

/* Default state (closed) */
#sidebar:not(.e-open) {
    left: -250px; 
    transform: translateX(0);
}

/* Open state */
.sidebar-open #sidebar, 
.sidebar-open-desktop #sidebar,
#sidebar.e-open {
    left: 0 !important;
    transform: translateX(0) !important;
}

/* Responsive sidebar state classes */
@media (min-width: 768px) {
    .sidebar-open-desktop #sidebar {
        left: 0 !important;
        transform: translateX(0) !important;
    }
}

@media (max-width: 767px) {
    .sidebar-open-desktop #sidebar {
        left: -100% !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
    }
}

    #sidebar.e-open {
        transform: translateX(0);
    }
    
    #sidebar.transitioning {
        visibility: visible !important; /* Prevent flickering during transition */
        -webkit-transform: translate3d(0, 0, 0); /* Hardware acceleration for smoother transitions */
        transform: translate3d(0, 0, 0);
    }

.e-sidebar.e-left.e-close {
    visibility: visible !important;
    transform: translateX(-250px) !important;
    left: -250px !important;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) !important; /* Match sidebar transition */
}

/* Main content */
.main-content,
.main-content-logged-in,
#content-container {
    width: 100%;
    margin-left: 0;
    will-change: transform, margin, width;
    backface-visibility: hidden; /* Prevent flickering */
    min-height: calc(100vh - 56px); /* Full viewport height minus navbar */
}

/* Apply transitions only when toggling, not on page load */
.sidebar-toggling .main-content,
.sidebar-toggling .main-content-logged-in,
.sidebar-toggling #content-container {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); /* Match sidebar transition timing */
}

/* Initial state without transitions - applied by JavaScript */
.no-transition, 
.no-transition * {
    transition: none !important;
}

#outer-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px); /* Full viewport height minus navbar */
    background-color: #161b22; /* Match body background */
}

#main-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    min-height: calc(100vh - 56px); /* Full viewport height minus navbar */
}

@media (min-width: 768px) {
    /* Center the container when sidebar is closed */
    #outer-container,
    #main-container,
    #content-container {
        margin-left: auto;
        margin-right: auto;
        transition: all 300ms ease-in-out;
    }
}
    
}

/* Sidebar */
#sidebar .e-menu-wrapper {
    background-color: #161b22 !important; /* Match sidebar background */
}

#sidebar .e-content-template {
    padding-top: 8px;
    padding-left: 12px;
    padding-right: 12px;
    height: 100% !important;
    overflow-y: auto; /* Enable scrolling if content is too long */
}

.e-menu-wrapper, .e-menu-container {
    border-radius: 0px !important;
    background-color: #161b22 !important; /* Match sidebar background */
}

#sidebar-toggler, #desktop-sidebar-toggler {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
}

#desktop-sidebar-toggler {
    font-size: 1.5rem;
    margin-left: 10px;
}

#sidebar-toggler {
    padding: 10px;
    display: inline-block;
    height: 40px;
    width: 40px;
}
/* Mobile specific adjustments */
@media (max-width: 767px) {
    #sidebar {
        height: calc(100vh - 56px); /* Consistent height on mobile */
        top: 56px; /* Start below navbar */
        width: 100% !important; /* Full width on mobile */
        transform: translateX(-100%); /* Start off-screen */
        z-index: 1029;
    }
    
    #sidebar.e-open {
        transform: translateX(0); /* Show when open */
    }
    
    /* Hide content overflow when sidebar is open */
    body.sidebar-open {
        overflow-x: hidden;
    }
}

/* Backdrop for mobile sidebar - disabled */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    z-index: -1; /* Move it below everything */
}

body.sidebar-open .sidebar-backdrop {
    opacity: 0;
    visibility: hidden;
}

/* Desktop */
@media (min-width: 768px) {
    #sidebar {
        left: -250px; /* Start off-screen */
        width: 250px !important;
        background-color: #161b22; /* Match body background color */
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
        transform: translateX(-250px); /* Always start collapsed */
        transition: transform 300ms ease-in-out;
        z-index: 1000;
        position: fixed; /* Keep it fixed */
        top: 56px; /* Start below navbar */
        height: calc(100vh - 56px); /* Full viewport height minus navbar height */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .e-sidebar.e-left.e-close {
        visibility: visible !important;
        transform: translateX(-250px) !important; /* Force it to be hidden when closed */
        left: -250px !important; /* Ensure it stays off-screen when closed */
    }

    .e-sidebar.e-left.e-open {
        transform: translateX(0) !important; /* Show when explicitly opened */
        left: 0 !important; /* Move to visible position when open */
    }

    /* For desktop, use a simpler approach with padding */
    .main-content,
    .main-content-logged-in {
        width: 100%;
        max-width: 100%; /* Full width */
        margin-left: 0;
        margin-right: 0;
        transition: all 300ms ease-in-out;
        padding-left: 0; /* Start with no padding */
        padding-right: 0;
    }
    
    /* Initial state for desktop - sidebar visible by default */
    html.desktop-view .main-content,
    html.desktop-view .main-content-logged-in {
        margin-left: 0;
    }

    /* When sidebar is open, adjust the position of main content */
    html.sidebar-open .main-content,
    html.sidebar-open .main-content-logged-in,
    body.sidebar-open .main-content,
    body.sidebar-open .main-content-logged-in,
    html.sidebar-open-desktop .main-content,
    html.sidebar-open-desktop .main-content-logged-in,
    body.sidebar-open-desktop .main-content,
    body.sidebar-open-desktop .main-content-logged-in {
        margin-left: 250px !important; /* Match the sidebar width exactly */
        margin-right: 0;
        width: calc(100% - 250px) !important; /* Subtract sidebar width from total width */
    }
        max-width: none; /* Remove any max-width constraints */
        transition: margin 0.3s ease-in-out, width 0.3s ease-in-out;
    }

}

/* Mobile */
@media (max-width: 767px) {
    #sidebar {
        position: fixed;
        height: calc(100vh - 56px);
        top: 56px;
        width: 100% !important; /* Full width on mobile */
        left: -100% !important; /* Ensure it's off-screen when closed */
        z-index: 1029;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1); /* Match desktop transition */
        visibility: hidden; /* Initially hidden on mobile */
    }

    .e-sidebar.e-left.e-close {
        visibility: visible !important;
        transform: translateX(-100%) !important; /* Force it to be hidden when closed */
        left: -100% !important; /* Ensure it stays off-screen when closed */
        width: 100% !important; /* Full width on mobile */
    }

    .e-sidebar.e-left.e-open {
        transform: translateX(0) !important; /* Show when explicitly opened */
        left: 0 !important; /* Move to visible position when open */
        width: 100% !important; /* Full width on mobile when open */
        visibility: visible !important; /* Ensure visibility */
    }
    
    /* Force sidebar to be visible when open on mobile */
    body.sidebar-open #sidebar,
    body.sidebar-open .mobile-sidebar,
    body.sidebar-open .e-sidebar {
        transform: translateX(0) !important;
        left: 0 !important;
        width: 100% !important;
        visibility: visible !important;
        z-index: 1029 !important;
    }
    
    #menu {
        padding-top: 20px !important;
    }
}


nav.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: #21262d; /* Updated navbar color for better hierarchy */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    width: 100% !important;
    z-index: 1030; /* Ensure navbar is above other elements */
    height: 56px; /* Fixed height for navbar */
}

/* Center navbar content */
nav.navbar .container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Main content body container */
.main-content-body {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
}

/* Adjust main content body when sidebar is open */
@media (min-width: 768px) {
    body.sidebar-open .main-content-body {
        padding-left: 15px; /* Standard padding */
        padding-right: 15px; /* Standard padding */
        width: 100%; /* Full width within its parent */
        max-width: 100%;
    }
}


.navbar-nav {
    height: 100%; /* Make the navbar-nav the same height as the navbar */
    display: flex;
    align-items: center; /* Center items vertically */
}

.navbar-icon:hover {
    transform: none !important;
    transition: none !important; /* Disable any transition effects */
}

nav.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
    overflow-y: hidden;
}

nav.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

nav.navbar .nav-link {
    color: rgba(255, 255, 255, 0.55);
    padding: 0.5rem 1rem;
}

    nav.navbar .nav-link:hover,
    nav.navbar .nav-link:focus {
        color: rgba(255, 255, 255, 0.75);
    }

nav.navbar i {
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

    nav.navbar i:hover,
    nav.navbar img:hover {
        cursor: pointer;
        background-color: #48545f14;
        transform: scale(1.05) translateZ(0px);
    }

@media (max-width: 991.98px) {
    nav.navbar .navbar-collapse {
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        background-color: rgba(18, 22, 29, 0.9);
        overflow-y: hidden; /* Hide the scrollbar */
        transition: 0.3s;
    }

        nav.navbar .navbar-collapse.show {
            opacity: 1;
            transform: translateY(0);
            overflow-y: hidden; /* Ensure scrollbar is hidden when shown */
        }

    nav.navbar .navbar-nav {
        display: flex;
        flex-direction: column;
    }

    nav.navbar .nav-item {
        width: 100%;
    }

    .d-flex.flex-column.flex-lg-row {
        flex-direction: column !important;
    }
}


/* Profile */
img.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.profile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 15px;
    margin: 0 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
}

.profile-wrapper .profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-wrapper .titles {
    line-height: 1;
}

/* Widgets */
.widget {
    border-radius: 0.75rem;
    background-color: #1c2128; /* Slightly lighter than body background */
    border: 1px solid rgba(48, 54, 61, 0.5); /* Subtle border */
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.widget.summary > div:first-child {
    background-color: #21262d; /* Slightly darker than the widget */
    padding: 1.25rem;
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.widget.summary > div:first-child i {
    font-weight: bold;
}

.widget.income > div:first-child {
    color: #238636; /* GitHub-style green */
}

.widget.expense > div:first-child {
    color: #f85149; /* GitHub-style red */
}

.widget.balance > div:first-child {
    color: #58a6ff; /* Match other accent colors */
}

.widget.chart {
    padding: 5px;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .widget.summary {
        flex-direction: column;
    }

    .widget.summary > div:last-child {
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        padding: 1rem;
    }

    .widget .lead {
        font-size: 1rem;
    }

    .widget .display-6 {
        font-size: 1.5rem;
    }

    .widget h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .widget .p-5 {
        padding: 1rem !important;
    }

    h5.fw-bold {
        font-size: 1.25rem !important;
    }

    #treemap, #bar-chart, #stacked-column-chart, #bubble-chart, #monthly-trend-chart, #stacked-area-chart {
        height: 100% !important;
    }
}

@media (max-width: 768px) {
    h5.fw-bold {
        font-size: 1.5rem !important;
    }

    #treemap, #bar-chart, #stacked-column-chart, #bubble-chart, #monthly-trend-chart, #stacked-area-chart {
        height: 100% !important;
    }
}

@media (min-width: 992px) {
    h5.fw-bold {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 1200px) {
    h5.fw-bold {
        font-size: 2rem !important;
    }
}

.ejs-accumulationchart {
    margin: auto;
}

/* Buttons */
a.btn-custom {
    color: #fff !important;
}

.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none;
}

.responsive-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .responsive-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Breadcrumb */
.breadcrumb-container {
    background-color: #1c2128;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(48, 54, 61, 0.5);
    overflow-x: auto; /* Enable horizontal scrolling on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    max-width: 100%;
}

.e-breadcrumb {
    visibility: visible !important;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevent wrapping of breadcrumb items */
    min-width: max-content; /* Ensure all breadcrumb items are visible */
}

.e-breadcrumb-item {
    color: #c9d1d9;
    max-width: 200px; /* Increased width for desktop */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.e-breadcrumb-item-wrapper {
    display: inline-flex;
    align-items: center;
}

.e-breadcrumb a {
    color: #58a6ff !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.e-breadcrumb a:hover {
    color: #79b8ff !important;
    text-decoration: underline !important;
}

.e-breadcrumb-separator {
    color: #8b949e;
    margin: 0 0.5rem;
    flex-shrink: 0; /* Prevent separator from shrinking */
}

.e-breadcrumb-item.e-active {
    color: #e6edf3;
    font-weight: 500;
}

/* Breadcrumb icon styling */
.e-breadcrumb .e-breadcrumb-item .e-breadcrumb-icon {
    margin-right: 5px;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Mobile-specific breadcrumb styling */
@media (max-width: 576px) {
    .breadcrumb-container {
        padding: 0.5rem;
    }
    
    .e-breadcrumb {
        font-size: 0.85rem;
    }
    
    .e-breadcrumb-item {
        max-width: 120px;
    }
    
    .e-breadcrumb-separator {
        margin: 0 0.25rem;
    }
}

/* Medium screens - adjust breadcrumb sizing */
@media (min-width: 577px) and (max-width: 992px) {
    .e-breadcrumb-item {
        max-width: 180px;
    }
}

/* Radio Button Group */
.e-btn-group.custom-rbt-group {
    width: 100%;
}

.e-btn-group.custom-rbt-group .e-btn {
    width: 50%;
}

.custom-rbt-group label.e-btn {
    box-shadow: none !important;
    background-color: rgb(34 43 51);
    color: #fff;
}

.e-btn-group.custom-rbt-group input:checked + label.e-btn {
    background-color: #fff;
    color: #212b36;
    border: 1px solid #fff;
}

/* Grid */
.e-grid {
    border: 0;
    border-radius: 5px;
}

.e-gridcontent tbody {
    border: 1px solid #fff;
}

.e-grid .e-gridcontent,
.e-grid .e-table {
    background-color: #1a222b;
}

.e-grid .e-gridheader {
    border: 5px;
    padding: 0px !important;
    background-color: #222b33;
}

.e-headercontent {
    border-right-width: 0px !important;
}

.e-grid .e-gridheader .e-headercell {
    background-color: #222b33;
    margin: 15px !important;
    padding: 15px !important;
}

.e-grid .e-gridpager {
    background-color: #1a222b;
}

.e-grid .e-pagercontainer {
    border: none;
    background-color: #1a222b;
}

.e-content {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    height: 100% !important;
}

.e-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.e-pagercontainer .e-icons {
    background-color: #1a222b;
    border: none !important;
}

.e-pager .e-numericitem {
    color: #adb5bd;
    background-color: #1a222b;
    padding: 15px !important;
}

.e-pager .e-numericitem:not(.e-currentitem) {
    border: none !important;
}

.e-pager .e-numericitem:hover {
    color: #fff;
}

.e-pager .e-numericitem.e-currentitem {
    color: #fff;
    border: none !important;
    background-color: #31373d;
}

.e-pager div.e-icons:not(.e-disable) {
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.e-grid .e-pager {
    padding: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.e-grid .e-headercell,
.e-grid .e-rowcell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .e-grid-header .e-headercell,
    .e-grid-content .e-rowcell {
        white-space: normal;
        word-wrap: break-word;
        padding: 20px;
    }
}

.e-grid-header {
    white-space: normal;
    padding: 20px;
}

.e-grid .e-toolbar {
    background-color: #222b33;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border: none;
    padding: 8px;
}

.e-grid .e-toolbar .e-toolbar-items {
    background-color: #222b33;
}

.e-grid .e-toolbar .e-toolbar-item.e-search-wrapper {
    margin-left: auto;
}

.e-grid .e-toolbar .e-search .e-input-group {
    background-color: #fff;
    border-radius: 4px;
}

.e-grid .e-toolbar .e-search .e-input-group .e-input {
    height: 30px;
    padding: 4px 8px;
    font-size: 14px;
    color: #333;
}

.e-grid .e-toolbar .e-search .e-input-group .e-input-group-icon {
    color: #999;
}

.action-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.action-icons .btn {
    padding: 5px;
    font-size: 14px;
}

.action-icons a,
.action-icons button {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    margin-right: 5px;
}

.action-icons a:hover,
.action-icons button:hover {
    border-color: #fff;
}

.action-icons a:hover i,
.action-icons button:hover i {
    color: inherit;
}

/* Miscellaneous */
/* Footer positioning fixes */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#app-wrapper {
    flex: 1 0 auto;
}

.footer {
    margin-top: auto;
    width: 100%;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    font-size: 0.9rem;
    background-color: #21262d;
    flex-shrink: 0;
}



*:not(.fa-solid):not(.fa):not(.e-icons) {
    font-family: "Inter";
}

.no-a-decoration,
.no-a-decoration:hover {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 767px) {
    .lead {
        font-size: 1rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .p-4 {
        padding: 1rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

.text-truncate-custom {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    #username-container {
        max-width: 100px; /* Adjust as necessary */
    }
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: var(--bs-nav-pills-link-active-color);
    background-color: #222b33;
    color: black;
}

.custom-nav-link {
    color: rgb(171, 163, 152) !important;
    font-weight: bold;
    padding: 18px;
    background-color: #222b33;
}

.custom-nav-link:hover {
    background-color: #222b33 !important;
    color: white !important;
}

.custom-nav-item {
    margin-bottom: 10px;
}

a {
    color: #58a6ff; /* Match other accent colors */
    text-decoration: none;
}

.custom-button-color {
    background-color: #238636; /* GitHub-style green button */
    color: white;
    border: none;
}

.custom-button-color:hover {
    background-color: #2ea043; /* Lighter on hover */
    color: white;
}

.card-header .nav-item .nav-link {
    color: #58a6ff; /* Match other accent colors */
}

/* Make sidebar and parent elements consistent */
.e-control.e-sidebar.e-lib.e-left,
.e-control.e-sidebar.e-lib.e-left.e-transition,
.e-control.e-sidebar.e-lib.e-left.e-transition.e-open,
.e-control.e-sidebar.e-lib.e-left.e-transition.e-open.e-push {
    background-color: #161b22 !important; /* Match sidebar background */
    border-right: 1px solid rgba(48, 54, 61, 0.8) !important; /* Subtle border */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2) !important; /* Softer shadow */
    height: calc(100vh - 56px) !important; /* Full viewport height minus navbar */
    top: 56px !important; /* Start below navbar */
}

/* Additional mobile sidebar styling */
@media (max-width: 767px) {
    .e-control.e-sidebar.e-lib.e-left,
    .e-control.e-sidebar.e-lib.e-left.e-transition,
    .e-control.e-sidebar.e-lib.e-left.e-transition.e-open,
    .e-control.e-sidebar.e-lib.e-left.e-transition.e-open.e-push,
    .mobile-sidebar,
    #sidebar {
        width: 100% !important; /* Full width on mobile */
    }
    
    /* On mobile, ensure the sidebar is visible when open */
    .e-sidebar.e-open {
        visibility: visible !important;
        transform: translateX(0) !important;
        left: 0 !important;
        width: 100% !important;
        position: fixed !important;
    }
    
    /* For mobile, make the sidebar overlay content instead of pushing it */
    body.sidebar-open .main-content,
    body.sidebar-open .main-content-logged-in,
    body.sidebar-open #outer-container,
    body.sidebar-open #main-container,
    body.sidebar-open #content-container {
        margin-left: 0 !important; /* Don't move content when sidebar opens */
        transform: none !important; /* Prevent content squeeze */
        width: 100% !important;
        max-width: 100% !important;
        transition: none !important; /* Disable transitions for content on mobile */
    }
    
    /* Change on all levels to ensure nothing moves */
    .main-content,
    .main-content-logged-in,
    #outer-container,
    #main-container,
    #content-container {
        transition: none !important; /* Disable all transitions on mobile */
    }
}

/* Mobile sidebar full height */
@media (max-width: 767px) {
    .e-control.e-sidebar.e-lib.e-left,
    .e-control.e-sidebar.e-lib.e-left.e-transition,
    .e-control.e-sidebar.e-lib.e-left.e-transition.e-open,
    .e-control.e-sidebar.e-lib.e-left.e-transition.e-open.e-push {
        height: calc(100vh - 56px) !important;
        top: 56px !important;
    }
}

/* Desktop sidebar matches main content */
@media (min-width: 768px) {
    .e-control.e-sidebar.e-lib.e-left,
    .e-control.e-sidebar.e-lib.e-left.e-transition,
    .e-control.e-sidebar.e-lib.e-left.e-transition.e-open,
    .e-control.e-sidebar.e-lib.e-left.e-transition.e-open.e-push {
        height: calc(100% - 56px) !important;
        top: 56px !important;
        margin-top: 0 !important;
    }
}

/* Login/Register Form Styling */
.login-logout-card {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(48, 54, 61, 0.8);
    transition: all 0.3s ease;
}

.login-logout-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.login-logout-card .card-header {
    background-color: #21262d;
    border-bottom: 1px solid rgba(48, 54, 61, 0.8);
}

.login-logout-card .card-body {
    padding: 2rem;
}

/* Style the form inputs */
.login-logout-card .e-input-group,
.widget .e-input-group {
    margin-bottom: 1.5rem;
}

.login-logout-card .form-floating,
.widget .form-floating {
    margin-bottom: 1.5rem;
}

.login-logout-card .btn,
.widget .btn,
.widget .e-btn {
    padding: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Form widget styling */
.form-widget {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.form-widget:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.form-widget h3 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Custom radio button group styling */
.custom-rbt-group {
    width: 100%;
    margin-top: 0.5rem;
}

.custom-rbt-group .e-btn {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

/* Form field spacing */
.widget .mb-4 {
    margin-bottom: 1.5rem !important;
}

.widget .form-label {
    font-weight: 500;
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}

/* Button styling in forms */
.widget .e-btn {
    min-height: 38px;
}

/* Grid toolbar styling */
.e-grid .e-toolbar {
    background-color: #212b36;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    padding: 10px;
}

.e-grid .e-toolbar .e-btn {
    background-color: #238636;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.e-grid .e-toolbar .e-btn:hover {
    background-color: #2ea043;
}

.e-grid .e-toolbar .e-tbar-btn-text {
    font-weight: 500;
}

.e-grid .e-toolbar .e-btn .e-icons.e-btn-icon {
    color: white;
}

/* Move add button to the left */
.e-grid .e-toolbar .e-toolbar-items {
    background-color: #212b36;
}

.e-grid .e-toolbar .e-toolbar-items .e-toolbar-item:first-child {
    margin-right: auto;
}

.e-grid .e-toolbar .e-toolbar-item.e-search-wrapper {
    margin-left: 0;
}

/* Vertical divider styling */
.vr {
    height: 24px;
    opacity: 0.3;
    align-self: center;
}

/* New Dashboard Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-tabs {
    background-color: transparent;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    margin-bottom: 1.5rem;
}

.dashboard-tabs .nav-link {
    color: #8b949e;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
}

.dashboard-tabs .nav-link:hover {
    color: #c9d1d9;
    background-color: rgba(255, 255, 255, 0.05);
}

.dashboard-tabs .nav-link.active {
    color: #58a6ff;
    background-color: transparent;
    border-bottom: 2px solid #58a6ff;
}

.dashboard-tabs .nav-link i {
    font-size: 1rem;
}

/* Metric Cards */
.metric-card {
    background-color: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.metric-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-icon.income {
    background-color: rgba(35, 134, 54, 0.15);
    color: #3fb950;
}

.metric-icon.expense {
    background-color: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.metric-icon.balance {
    background-color: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: #8b949e;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.metric-value {
    color: #e6edf3;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.metric-subtext {
    color: #7d8590;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Chart Styling */
.chart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: #8b949e;
}

.chart-body {
    padding: 1rem;
}

/* Budget Cards */
.budget-card {
    background-color: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.budget-period {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 1rem;
}

.budget-metrics {
    flex: 1;
}

.budget-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.budget-metric:last-child {
    border-bottom: none;
}

.budget-metric .metric-label {
    margin-bottom: 0;
}

.budget-metric .metric-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.budget-metric .metric-value.income {
    color: #3fb950;
}

.budget-metric .metric-value.expense {
    color: #f85149;
}

.budget-metric .metric-value.positive {
    color: #3fb950;
}

.budget-metric .metric-value.negative {
    color: #f85149;
}

.budget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
}

.budget-stats .stat {
    text-align: center;
}

.budget-stats .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.budget-stats .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
}

.budget-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    text-align: center;
}

.transactions-count {
    font-size: 0.875rem;
    color: #8b949e;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 1.25rem;
}

.category-name {
    flex: 1;
    font-weight: 500;
    color: #e6edf3;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.category-amount {
    font-weight: 600;
    color: #e6edf3;
}

.category-percentage {
    color: #8b949e;
}

.category-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(48, 54, 61, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background-color: #58a6ff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Savings Rate Card */
.savings-rate-card {
    text-align: center;
    padding: 2rem;
}

.savings-rate-display {
    margin-top: 1.5rem;
}

.savings-percentage {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.savings-percentage.positive {
    color: #3fb950;
}

.savings-percentage.negative {
    color: #f85149;
}

.savings-description p {
    color: #8b949e;
    margin: 0;
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.3);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    border-color: rgba(88, 166, 255, 0.3);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.transaction-icon.income {
    background-color: rgba(35, 134, 54, 0.15);
    color: #3fb950;
}

.transaction-icon.expense {
    background-color: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.transaction-details {
    flex: 1;
}

.transaction-category {
    font-weight: 500;
    color: #e6edf3;
    margin-bottom: 0.25rem;
}

.transaction-note {
    font-size: 0.875rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.75rem;
    color: #7d8590;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.125rem;
}

.transaction-amount.income {
    color: #3fb950;
}

.transaction-amount.expense {
    color: #f85149;
}

/* Tab content spacing */
.tab-content {
    min-height: 600px;
    padding-bottom: 2rem;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .dashboard-tabs .nav-item {
        flex: 1 0 25%;
    }
    
    .dashboard-tabs .nav-link {
        padding: 0.75rem 0.5rem;
        margin-right: 0;
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
        border-radius: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 60px;
    }
    
    .dashboard-tabs .nav-link i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .metric-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .budget-stats {
        grid-template-columns: 1fr;
    }
    
    .savings-percentage {
        font-size: 2.5rem;
    }
}

/* Extra small screens - hide tab text on very small devices */
@media (max-width: 480px) {
    .dashboard-tabs .nav-link {
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }
    
    .dashboard-tabs .nav-link i {
        font-size: 1.5rem;
    }
}

/* Vertical divider styling */
.vr {
    height: 24px;
    opacity: 0.3;
    align-self: center;
}

/* New Dashboard Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-tabs {
    background-color: transparent;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    margin-bottom: 1.5rem;
}

.dashboard-tabs .nav-link {
    color: #8b949e;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
}

.dashboard-tabs .nav-link:hover {
    color: #c9d1d9;
    background-color: rgba(255, 255, 255, 0.05);
}

.dashboard-tabs .nav-link.active {
    color: #58a6ff;
    background-color: transparent;
    border-bottom: 2px solid #58a6ff;
}

.dashboard-tabs .nav-link i {
    font-size: 1rem;
}

/* Metric Cards */
.metric-card {
    background-color: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.metric-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-icon.income {
    background-color: rgba(35, 134, 54, 0.15);
    color: #3fb950;
}

.metric-icon.expense {
    background-color: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.metric-icon.balance {
    background-color: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: #8b949e;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.metric-value {
    color: #e6edf3;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.metric-subtext {
    color: #7d8590;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Chart Styling */
.chart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: #8b949e;
}

.chart-body {
    padding: 1rem;
}

/* Budget Cards */
.budget-card {
    background-color: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.budget-period {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 1rem;
}

.budget-metrics {
    flex: 1;
}

.budget-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.budget-metric:last-child {
    border-bottom: none;
}

.budget-metric .metric-label {
    margin-bottom: 0;
}

.budget-metric .metric-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.budget-metric .metric-value.income {
    color: #3fb950;
}

.budget-metric .metric-value.expense {
    color: #f85149;
}

.budget-metric .metric-value.positive {
    color: #3fb950;
}

.budget-metric .metric-value.negative {
    color: #f85149;
}

.budget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
}

.budget-stats .stat {
    text-align: center;
}

.budget-stats .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.budget-stats .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
}

.budget-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    text-align: center;
}

.transactions-count {
    font-size: 0.875rem;
    color: #8b949e;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 1.25rem;
}

.category-name {
    flex: 1;
    font-weight: 500;
    color: #e6edf3;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.category-amount {
    font-weight: 600;
    color: #e6edf3;
}

.category-percentage {
    color: #8b949e;
}

.category-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(48, 54, 61, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background-color: #58a6ff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Savings Rate Card */
.savings-rate-card {
    text-align: center;
    padding: 2rem;
}

.savings-rate-display {
    margin-top: 1.5rem;
}

.savings-percentage {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.savings-percentage.positive {
    color: #3fb950;
}

.savings-percentage.negative {
    color: #f85149;
}

.savings-description p {
    color: #8b949e;
    margin: 0;
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.3);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    border-color: rgba(88, 166, 255, 0.3);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.transaction-icon.income {
    background-color: rgba(35, 134, 54, 0.15);
    color: #3fb950;
}

.transaction-icon.expense {
    background-color: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.transaction-details {
    flex: 1;
}

.transaction-category {
    font-weight: 500;
    color: #e6edf3;
    margin-bottom: 0.25rem;
}

.transaction-note {
    font-size: 0.875rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.75rem;
    color: #7d8590;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.125rem;
}

.transaction-amount.income {
    color: #3fb950;
}

.transaction-amount.expense {
    color: #f85149;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-tabs .nav-link {
        padding: 0.5rem 1rem;
        margin-right: 0.5rem;
        font-size: 0.875rem;
    }
    
    .metric-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .budget-stats {
        grid-template-columns: 1fr;
    }
    
    .savings-percentage {
        font-size: 2.5rem;
    }
}