:root {
    --page-bg: #f5f5f5;
    --white: #ffffff;
    --avatar-bg: #eaeaea;
    --edit-icon-bg: #fff;
    --text-secondary: #808080;
    --border-color: #E2E2E2;
    --stat-blue: #eaf2ff;
    --stat-orange: #fff3e5;
    --stat-green: #e8f8ef;
    --menu-text: #464646;
    --menu-border: #E6E6E6;
    --btn-dark: #000;
    --btn-light: #fff;
    --menu-bg-desktop: #f5f5f5;
    --font-main: "Plus Jakarta Sans", sans-serif;
    --sidebar-width: 240px;
    --navbar-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background: var(--page-bg);
    padding-bottom: 80px;
}

/* Main container for sidebar + content layout */
.main-container {
    display: flex;
}

.profile-page {
    max-width: 420px;
    margin: auto;
    padding: 24px 16px;
}

.profile-header {
    text-align: center;
    margin-bottom: 24px;
}
.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin: auto;
}
.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--avatar-bg);
}
.edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--edit-icon-bg);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    text-decoration: none;
}
.name {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
}
.email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}
.role {
    font-size: 15px;
    margin-top: 10px;
}
.profile-hr{
    border: 0.5px solid var(--border-color);
}

/* Hide edit button on mobile by default */
.edit-profile-btn {
    display: none;
}

.stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 24px 0;
}
.stat-card {
    flex: 1;
    background: var(--white);
    border-radius: 32px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.stat-icon.blue { background: var(--stat-blue); }
.stat-icon.orange { background: var(--stat-orange); }
.stat-icon.green { background: var(--stat-green); }
.stat-card h4 {
    font-size: 12px;
    font-weight: 800;
}
.stat-card p {
    font-size: 10px;
    color: var(--text-secondary);
}


.menu {
    background: var(--white);
    border-radius: 19px;
    overflow: hidden;
    padding: 22px 0px;
    margin-bottom: 8px;
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    text-decoration: none;
    color: var(--menu-text);
    font-size: 15px;
    font-weight: 600;
}
.menu-item img{
    margin-right: 8px;
    color: var(--menu-text);
}

.menu-item:last-child {
    border-bottom: none;
}
.arrow {
    font-size: 18px;
    color: var(--menu-text);
}
.menu hr {
    border: 0.5px solid var(--menu-border);
    margin: 0px 30px;
}
@media screen and (min-width: 768px) {
    .profile-page {
        flex: 1;
        max-width: 100%;
        margin-left: var(--sidebar-width);
        padding: 24px 30px;
    }
    body {
        padding-bottom: 0px;
    }
    
}
/* Tablet and Laptop view - horizontal layout */
@media screen and (min-width: 1024px) {
    .menu hr{
        border: 0.1px solid var(--border-color);
    }
 
    .main-container {
        display: flex;
        flex-direction: row;
    }
    
    .profile-page {
        flex: 1;
        max-width: 100%;
        /* margin: auto; */
        margin-left: var(--sidebar-width);
        padding: 50px 50px 30px 70px ;
    }
    
    .edit-icon {
        display: none;
    }
    
    .profile-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
        background: transparent;
        padding: 0;
        margin-bottom: 0;
    }
    
    .avatar-wrapper {
        flex-shrink: 0;
        width: 96px;
        height: 96px;
        margin: 0;
    }
    
    .profile-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .name {
        font-size: 18px;
        font-weight: 700;
        margin-top: 0;
    }
    
    .email {
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 4px;
    }
    
    .role {
        font-size: 15px;
        margin-top: 4px;
    }
    
    .edit-profile-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        background: #3A356B;
        color: var(--btn-light);
        border: none;
        border-radius: 40px;
        padding: 17px 25px;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        text-decoration: none;
    }
    .edit-profile-btn img{
        width: 13px;
        height: 12px;
    }
    
    .profile-hr{
        margin-top: 30px;
        margin-left: -70px;
        margin-right: -50px;
    }
    
    .stats {
        display: none;
    }
    
    .menu {
        background: var(--menu-bg-desktop);
        padding: 0;
        margin-top: 24px;
    }
    .menu-item {
        padding: 25px 0px;
    }
    .menu hr {
        margin: 0;
    }
}

/* Mobile - single column, no sidebar issues */
@media screen and (max-width: 1023px) {
    .main-container {
        display: block;
    }
}