/*
!* Sidebar *!
#sidebar {
    height: calc(100vh - 56px);
    position: fixed;
    top: 56px;
    left: 0;
    width: 250px;
    transition: all 0.3s ease;
    background-color: #000000;
    z-index: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

!* Sidebar Content Padding *!
#sidebar .position-sticky {
    padding-top: 20px;
}

!* Sidebar Item Styling *!
#sidebar .nav-item {
    margin-bottom: 5px;
}

!* ✅ 主菜单按钮：深灰 *!
#sidebar .nav-link {
    font-size: 16px;
    padding: 12px 15px;
    color: #ffffff;
    border: 1px solid #888888;
    border-radius: 4px;
    background-color: #495057;
    transition: background-color 0.2s ease, color 0.2s ease;
}

!* Hover Effect for 主菜单按钮 *!
#sidebar .nav-link:hover {
    background-color: #343a40;
    color: #ffffff;
    border-color: #5a6268;
}

!* Sidebar Minimized State *!
#sidebar.minimized {
    width: 60px;
    overflow: hidden;
}

#sidebar.minimized #stockManagementSubmenu {
    display: none !important;
}

#sidebar.minimized .sidebar-item {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

#sidebarToggle .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23FFFFFF' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

#sidebar.minimized .navbar-toggler {
    opacity: 1;
    visibility: visible;
}

!* Sidebar Toggle Button *!
#sidebarToggle {
    position: absolute;
    top: 25px;
    left: 10px;
    background-color: transparent;
    border: 1px solid #ffffff;
    padding: 8px;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
}

!* Main Content *!
#main-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding-top: 70px;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

!* When Sidebar is Minimized *!
#sidebar.minimized + #main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

!* Navbar *!
nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

!* Mobile View *!
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.minimized {
        margin-left: 0;
    }

    #sidebar.minimized + #main-content {
        margin-left: 0;
        width: 100%;
    }
}

!* Dropdown Styling *!
#stockManagementSubmenu {
    padding-left: 15px;
    display: none;
    transition: all 0.3s ease;
    margin-top: 5px;
}

#stockManagementSubmenu.show {
    display: block;
}

#stockManagementSubmenu:empty {
    display: none;
}

!* ✅ 子菜单按钮：浅灰 + 居中 + 美化 *!
#stockManagementSubmenu .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 0 15px;
    color: #212529;
    background-color: #dee2e6;
    border: 1px solid #adb5bd;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    margin-bottom: 6px;
    font-weight: 300;
    text-align: center;
}

!* Hover Effect for 子菜单按钮 *!
#stockManagementSubmenu .nav-link:hover {
    background-color: #ced4da;
    color: #000000;
    border-color: #adb5bd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}


!* Dropdown Icon Rotation *!
.dropdown-icon {
    transition: transform 0.2s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

!* Dashboard Header *!
.dashboard-header {
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 20px;
}

!* Dashboard 按钮风格：更深的灰色 + 圆角 + 居中对齐 *!
.dashboard-button {
    display: flex;
    width: 100%;
    padding: 6px 13px;
    background-color: #495057; !* 深灰 *!
    color: #ffffff;
    text-align: center;
    border: 1px solid #6c757d;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-button:hover {
    background-color: #6c757d; !* hover 更深一点 *!
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

!* Dashboard Section Titles *!
.dashboard-section-title {
    font-size: 25px;
    font-weight: 700; !* 加粗 *!
    margin-bottom: 15px;
    text-align: center;
    color: #212529;
}
.card {
    border: 1px solid #ccc !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

!* Dashboard Header Card 样式 *!
.dashboard-header-container {
    display: flex;
    justify-content: center;
}

.dashboard-header-card {
    background-color: #535963;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.dashboard-title {
    font-size: 35px;
    font-weight: 650;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle-button {
    background: none;
    border: none;
    padding: 4px 8px;
    margin-left: 4px;
    cursor: pointer;
}


.card-thick {
    border: 2px solid #adb5bd !important; !* 更粗的边框 *!
}

.icon-above {
    color: #495057;
    margin-bottom: 8px;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
}

!* When expanded, rotate the arrow *!
button[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}


#sidebar.minimized #quoteManagementSubmenu {
    display: none !important;
}

#sidebar.minimized #reportsSubmenu {
    display: none !important;
}



@media (max-width: 768px) {
    #sidebar {
        display: none !important;
    }

    #main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}
*/
