/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
    background-color: #2D2D2D;
    color: white;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-link:hover, .menu-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.has-submenu .menu-link .dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.has-submenu.active .dropdown-icon {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    padding-left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.has-submenu.active .submenu {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.submenu a {
    display: block;
    padding: 10px 20px 10px 50px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.submenu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.logout-btn {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    color: white;
}

/* Main Content Styles */
.main-content {
    width: calc(100% - 280px);
    margin-left: 280px;
    transition: all 0.3s;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.bg-orange {
    background-color: #FF6B35 !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

/* Toggle Button */
#toggleSidebar {
    display: none;
}

@media (max-width: 992px) {
    #toggleSidebar {
        display: block;
    }
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
    background-color: #2D2D2D;
    color: white;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-link:hover, .menu-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.has-submenu .menu-link .dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.has-submenu.active .dropdown-icon {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    padding-left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.has-submenu.active .submenu {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.submenu a {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 50px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.submenu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.submenu a i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 0.8rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.logout-btn {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    color: white;
}

/* Main Content Styles */
.main-content {
    width: calc(100% - 280px);
    margin-left: 280px;
    transition: all 0.3s;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.bg-orange {
    background-color: #FF6B35 !important;
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s;
    border-left: 4px solid #FF6B35;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card i {
    margin-bottom: 1rem;
}

.stat-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-card .card-text {
    color: #5a5c69;
    font-size: 0.9rem;
}

/* Chart Containers */
canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

/* Toggle Button */
#toggleSidebar {
    display: none;
}

@media (max-width: 992px) {
    #toggleSidebar {
        display: block;
    }
}

/* Button Group */
.btn-group {
    display: inline-flex;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 0.5rem 0 rgba(58, 59, 69, 0.2);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.35rem;
    border-bottom-left-radius: 0.35rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.35rem;
    border-bottom-right-radius: 0.35rem;
}