@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== Layout ===== */
.dashboard {
    border-top: 2px solid #ff0066;
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 226px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    padding: 18px 6px;
}

.sidebar h4 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 5px solid #88888870;
}

.sidebar a {
    color: #343a40;
    font-size: 14px;
    font-weight: 600;
    font-family: math;
    text-transform: uppercase;
}

.sidebar a:hover {
    transform: translateX(1px);
    color: #ff0066;
    padding-left: 8px;
}

/* ===== Main ===== */
.main {
    flex: 1;
    padding: 30px;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 30px;
}

.title-name {
    font-size: 24px;
    font-weight: 600;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 5px;
    color: #fff;
    transition: 0.3s;
    box-shadow: 0 68px 77px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #888;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card h4 {
    font-weight: 400;
    opacity: 0.85;
}

.card p {
    font-size: 32px;
    font-weight: 600;
    margin-top: 10px;
}

/* ===== Chart Box ===== */
.chart {
    background: rgba(255, 255, 255, 0.2);
    color: #000;
}

.user-icon {
    font-size: 20px;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #000;
    background: #000;
    box-shadow: 0px 0px 15px #160f0f;
    animation: blink .5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0px 0px 15px #fff;
    }

    50% {
        opacity: 0.6;
        box-shadow: 0px 0px 15px #fff;
    }
}

#toggleButton {
    display: none;
}

.toggleLink {
    display: block;
}

/* ===== Mobile ===== */
@media(max-width:768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar h2 {
        display: none;
    }

    .toggleLink {
        width: 100%;
        display: none;
    }

    #toggleButton {
        display: block;
        float: right;
        margin-left: 30px;
        margin-bottom: 5px;
        font-size: 12px;
        border: 1px solid #ccc;
        padding: 0 5px;
        background: #ff0066;
        color: #fff;
        width: 100%;
    }

}

/*----------Toggle mwnus---------------------*/