
/* Custom Dashboard Styles */
.custom-dashboard {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    background-color: #f9fafb;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.dashboard-logo {
    width: 100%;
    margin-bottom: 20px;
    transition: width 0.3s ease;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

.content {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.content h2 {
    color: #2d3748;
    margin-bottom: 10px;
}

.content p {
    color: #4a5568;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2d3748;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Logo Positioning */
.mobile-logo {
    display: none;
    width: 50px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-dashboard {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 250px;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        background-color: #ffffff;
        padding-top: 60px;
        /* Add padding to avoid overlap with the menu icon */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .dashboard-logo {
        display: none;
        /* Hide the logo inside the sidebar on mobile */
    }

    .mobile-logo {
        display: block;
        /* Show the logo in the top-right corner */
    }

    .menu-toggle {
        display: block;
    }

    .content {
        width: 100%;
        margin-top: 60px;
        /* Space for the menu toggle button */
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #2d3748;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}