:root {
    --bg: linear-gradient(135deg, #2c3e50, #4ca1af);
    --text-color: white;
    --sidebar-bg: rgba(255, 255, 255, 0.06);
    --item-bg: rgba(255, 255, 255, 0.08);
    --item-hover: rgba(255, 255, 255, 0.25);
}

body.dark {
    --bg: linear-gradient(135deg, #1a1a1a, #333);
    --text-color: #fff;
    --sidebar-bg: rgba(255, 255, 255, 0.06);
    --item-bg: rgba(255, 255, 255, 0.08);
    --item-hover: rgba(255, 255, 255, 0.15);
}


body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* background: rgba(0, 0, 0, 0.2); */
    background: rgb(206 140 140 / 20%);
    backdrop-filter: blur(10px);
    z-index: 1100;
}

/* .logo {
            font-size: 20px;
            font-weight: bold;
            color: var(--text-color);
        } */

.logo img {
    height: 80px;
    top: 6px;
}

.menu-toggle,
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    font-size: 22px;
    padding: 10px 14px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-toggle.active {
    background: #2c3e50;
}

.button-group {
    display: flex;
    gap: 10px;
}

.sidebar-wrapper {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    transform: translateX(0);
    opacity: 0;
    transition: right 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 1000;
}

.sidebar-wrapper.show {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    height: 100vh;
    background: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 8px 32px rgba(0, 0, 0, 0.3);
    padding: 75px 20px 20px;
    /* display: flex; */
    flex-direction: column;
    align-items: stretch;
}

.menu-item {
    padding: 7px 15px;
    background: #2c3e50;
    border-radius: 15px;
    margin: 6px 0;
    color: var(--text-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    transform: translateY(-40px) rotateX(90deg);
    opacity: 0;
}

.menu-item.show {
    animation: itemDrop 0.4s ease-out forwards;
}

@keyframes itemDrop {
    0% {
        opacity: 0;
        transform: translateY(-40px) rotateX(90deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.menu-item i {
    font-size: 20px;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.menu-item:hover {
    background: var(--item-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.main-content {
    margin-top: 100px;
    padding: 20px;
    color: var(--text-color);
}











/* new css for sidebar last update */

html {
    scroll-behavior: smooth;
}

.sidebar a.menu-item {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
}

.sidebar a.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-wrapper {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    transition: right 0.4s ease;
    z-index: 1000;
}

.sidebar-wrapper.show {
    right: 0;
}

.sidebar {
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding-top: 120px;


    
}