@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0f172a;
    color: white;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}


.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.logo {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.logo span {
    color: #ec4899;
}

.menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu li {
    padding: 16px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.4s;
}

.menu li:hover,
.menu .active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.logout-btn {
    padding: 16px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: 0.4s;
}

.logout-btn:hover {
    background: #ec4899;
}


.main {
    margin-left: 280px;
    padding: 35px;
    width: 100%;
}


.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.topbar h1 {
    font-size: 38px;
    margin-bottom: 8px;
}

.topbar p {
    color: #cbd5e1;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    width: 320px;
    height: 58px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 12px;
}

.search-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
}

.profile img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ec4899;
}


.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px;
    border-radius: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s;
}

.dashboard-card:hover {
    transform: translateY(-8px);
}

.dashboard-card h3 {
    color: #cbd5e1;
    margin-bottom: 12px;
    font-weight: 500;
}

.dashboard-card h1 {
    font-size: 38px;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.green {
    background: linear-gradient(135deg, #10b981, #22c55e);
}


.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.activity-box,
.profile-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
}

.box-title {
    margin-bottom: 25px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    margin-bottom: 18px;
}

.activity-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.activity-text h3 {
    margin-bottom: 5px;
}

.activity-text p {
    color: #cbd5e1;
    font-size: 14px;
}


.profile-card {
    text-align: center;
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ec4899;
    margin-bottom: 20px;
}

.profile-card h2 {
    margin-bottom: 8px;
}

.profile-card p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.profile-info h3 {
    margin-bottom: 6px;
}

.profile-info span {
    color: #cbd5e1;
    font-size: 14px;
}

.profile-card button {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    font-size: 16px;
    cursor: pointer;
}


@media(max-width:1000px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width:850px) {

    .sidebar {
        width: 90px;
        padding: 30px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .logo span {
        display: none;
    }

    .menu li,
    .logout-btn {
        justify-content: center;
        font-size: 0;
    }

    .menu li i,
    .logout-btn i {
        font-size: 22px;
    }

    .main {
        margin-left: 90px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .top-right {
        width: 100%;
    }

}

@media(max-width:600px) {

    .main {
        padding: 20px;
    }

    .topbar h1 {
        font-size: 28px;
    }

    .dashboard-card h1 {
        font-size: 28px;
    }

}