/* CSS VARIABLES & THEMES */
        :root {
            --primary: #52796F;
            --primary-hover: #354F52;
            --bg-body: #F8F7F4;
            --sidebar: rgba(202, 210, 197, 0.5);
            --card: #FFFFFF;
            --text-main: #1A1C1B;
            --text-muted: #6B7280;
            --border: #E5E7EB;
            --radius-xl: 1.5rem;
            --radius-lg: 1rem;
            --transition: 0.3s ease;
        }

        html.dark {
            --bg-body: #1A1C1B;
            --sidebar: rgba(47, 62, 70, 0.4);
            --card: #242625;
            --text-main: #F3F4F6;
            --text-muted: #9CA3AF;
            --border: #2D2F2E;
        }

.learn-press-message {
	position: absolute !important;
	top: 12px;
	z-index: 999;
	width: 50% !important;
	left: 20px;
	box-shadow: 0 5px 10px -3px #00000024;
}
.lp-profile-user-bio {
	max-height: 120px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.3;
	border: 1px solid #ededed;
	padding: 3px;
	margin-bottom: 10px;
	min-height: auto;
	height: auto;
}
        /* RESET */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            transition: background-color var(--transition), color var(--transition);
            min-height: screen;
            overflow-x: hidden;
        }

        h1, h2, h3, .font-display { font-family: 'Playfair Display', serif; }

        /* LAYOUT */
        .app-container { display: flex; 
            /* min-height: 100vh;  */
            position: relative; }

        /* SIDEBAR */
        .sidebar {
            width: 280px;
            background: #CAD2C5E0;
            /* backdrop-filter: blur(8px); */
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            position: fixed;
            height: 400vh;
            z-index: 100;
            left:  0;
            transition: transform var(--transition);
        }

        .sidebar-header { padding: 2rem; text-align: center; }
        /* .sidebar-header .lp-profile-left img { width: 96px; height: 96px; border-radius: 50%; object-cover: cover; border: 4px solid rgba(255,255,255,0.5); margin-bottom: 1rem; } */
        
        .nav-list { list-style: none; padding: 0 1rem; flex: 1; }
        .nav-item { margin-bottom: 0.5rem; }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 1rem;
            text-decoration: none;
            color: var(--text-main);
            border-radius: var(--radius-lg);
            transition: var(--transition);
        }
        .nav-link.active { background: var(--primary); color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
        .nav-link:not(.active):hover { background: rgba(255,255,255,0.3); }

        /* MAIN CONTENT */
        .main-content {
            flex: 1;
            max-width: 1400px;
        }

#learn-press-profile:before {
  content: '';
  height: 100%;
  width: 100%;
  background: linear-gradient(100deg, transparent 0%, #F2ECEEBD 10%, #F2ECEEE3 20%, #F2ECEEF2 29%);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 1;
}
        header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
        .lp-button,.btn-logout { background: var(--primary) !important; color: white !important;  border: none !important;  padding: 0.75rem 1.5rem !important;  border-radius: 8px !important;  cursor: pointer !important;  font-weight: 600 !important;  }
        
        /* GRIDS */
        .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; width: 100%; }
        .content-grid { display: block; grid-template-columns: 2fr 1fr; gap: 2rem;  width: 100%;}
        .content-grids { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem;  width: 100%;}
        .courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
        .courses-grids {
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; 
        }
        /* CARDS */
        .card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .btn-logout:hover { color: #fff}
.lp-archive-courses ul {
	width: 100%;
	margin: 0 !important;
}
        .stat-card { display: flex; align-items: center; gap: 1.25rem; }
        .stat-icon { padding: 0.75rem; border-radius: 1rem; display: flex; align-items: center; }

        .course-card { overflow: hidden; padding: 0; transition: transform 0.2s; }
        .course-card:hover { transform: translateY(-5px); }
        .course-card img { width: 100%; height: 160px; object-fit: cover; }
        .course-card-body { padding: 1.5rem; }

        /* PROGRESS BARS */
        .progress-container { height: 6px; background: #E5E7EB; border-radius: 10px; margin: 10px 0; overflow: hidden; }
        .progress-bar { height: 100%; background: var(--primary); border-radius: 10px; }

        /* THEME TOGGLE */
        .theme-toggle {
            margin-top: 2rem;
            background: var(--card);
            border: 1px solid var(--border);
            padding: 0.75rem;
            border-radius: 50%;
            cursor: pointer;
            color: var(--text-muted);
        }

        /* MOBILE OVERRIDES */
        .mobile-menu-btn { display: none; background: var(--primary); color: white; border: none; padding: 10px; border-radius: 8px; cursor: pointer; }

        @media (max-width: 1024px) {
            .content-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            .main-content { margin-left: 0; padding: 1.5rem; }
            .courses-grids,
            .courses-grid { grid-template-columns: 1fr; }
            header { flex-direction: column; gap: 1rem; }
            
            
            .lp-user-profile .lp-profile-nav-tabs li a {
                flex-direction: row !important;
                display: flex !important;
            }
            #learn-press-profile::before {
                background: linear-gradient(100deg, transparent -30%, #F2ECEEF7 10%, #F2ECEEF7 20%, #F2ECEEF2 29%) !important;
            }
        }

        :root {
            --primary: #52796F;
            --primary-hover: #354F52;
            --bg-body: #F8F7F4;
            --sidebar: #CAD2C5;
            --card: #FFFFFF;
            --text-main: #1A1C1B;
            --text-muted: #6B7280;
            --border: rgba(0,0,0,0.05);
            --radius: 1rem;
        }

        html.dark {
            --bg-body: #1A1C1B;
            --sidebar: #2F3E46;
            --card: #242625;
            --text-main: #F3F4F6;
            --text-muted: #9CA3AF;
            --border: rgba(255,255,255,0.05);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            transition: all 0.3s ease;
        }

.lp-profile-footer p {
  font-size: 20px;
  text-align: center;
  padding-bottom: 35px;
  padding-top: 15px;
}

.lp-profile-footer:before {
  content: '';
  position: absolute;
  left: -100px;
  top: 0;
  width: 500%;
  height: 2px;
  background: #DFE4DC;
  z-index: 1;
}
.lp-profile-footer {
  position: relative;
}
.learn-press-profile {
  overflow: hidden;
}

.lp-content-area.sa-lp-profile-tab-not-logged-in {
  display: block !important;
  top: 0;
  position: relative;
}
.lp-content-area.sa-lp-profile-tab-not-logged-in .learn-press-form {
  margin: 0;
  top: 0;
  position: relative;
  float: left;
  margin-right: 20px;
}

.sidebar-header .lp-profile-right h2 {
	font-size: 20px !important;
	font-weight: 600;
	color: #000;
}

.sidebar-header .lp-profile-left .user-avatar .lp-btn-to-edit-avatar {
  top: 50px !important;
  width: 30px !important;
  height: 30px !important;
}
.sidebar-header .lp-profile-left .user-avatar .lp-btn-to-edit-avatar:before {
  font-size: 16px !important;
}
        .sidebar-header {
            padding: 2.5rem 1.5rem;
            text-align: center;
        }
.sidebar-header .lp-profile-left, .sidebar-header .lp-profile-right,  .sidebar-header .lp-profile-right h2 {
	width: 100% !important;
	min-width: 100% !important;
	padding: 0 !important;
	text-align: center;
	display: flex !important;
	justify-content: center;
}
.lp-user-profile .lp-profile-content {
	width: 100% !important;
}
        .sidebar-header .lp-profile-left .user-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid white;
            margin-bottom: 1rem;
            object-fit: cover;
        }

        /* Nav List */
        .lp-profile-nav-tabs {
            list-style: none;
            padding: 0 1rem !important;
        }

        .lp-profile-nav-tabs li {
            margin-bottom: 0.4rem !important;
            border: none !important;
        }
.lp-user-profile .lp-profile-nav-tabs li.active {
    background: none !important;
}
        .lp-profile-nav-tabs a {
            display: flex !important;
            align-items: center;
            gap: 12px !important;
            padding: 12px 16px !important;
            text-decoration: none !important;
            color: var(--text-main);
            border-radius: 12px;
            font-weight: 500 !important;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

.lp-profile-nav-tabs a i {
  font-size: 22px;
  color: #1A1C1B !important;
}
.lp-profile-nav-tabs > li.active > a > i{
  color: #fff !important;
}
.lp-profile-nav-tabs li:hover {
  background: none !important;
}

.profile-tab-sections {
  background: #CAD2C5 !important;
  padding: 12px !important;
  border-radius: 12px;
  border: 1px solid #ededed;
  box-shadow: 0 5px 12px -5px #00000045 !important;
}
.profile-tab-sections li a {
  font-size: 14px !important;
  color: #1A1C1B !important;
  border: none !important;
}
.profile-tab-sections li a i {
  font-size: 18px !important;
  color: #1A1C1B !important;
}
.profile-tab-sections li.active a i,.profile-tab-sections li.active a {
  color: #fff !important;
}

/* .lp-user-profile .lp-profile-nav-tabs li > ul {
  background: #CAD2C5;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #ededed;
  box-shadow: 0 12px 15px -5px #00000047 !important;
} */
.profile-tab-sections li a:hover, .lp-profile-nav-tabs a:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .lp-profile-nav-tabs li.active > a {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(82, 121, 111, 0.2);
        }

        /* Nested Settings Menu */
        .profile-tab-sections {
            list-style: none;
            margin-left: 2rem;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            border-left: 1px solid rgba(0,0,0,0.1);
        }

        .has-child.open .profile-tab-sections {
            max-height: 300px; /* Adjust based on content */
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .profile-tab-sections a {
            font-size: 0.85rem;
            padding: 8px 16px;
            color: var(--text-muted);
        }

        .profile-tab-sections a:hover {
            color: var(--primary);
            background: transparent;
        }

        .lp-icon-chevron {
            margin-left: auto;
            font-size: 18px;
            transition: transform 0.3s;
        }

        .has-child.open .lp-icon-chevron {
            transform: rotate(180deg);
        }

        /* Logout Style */
        .logout a i,
        .logout a {
            color: #d63031 !important;
            margin-top: 2rem;
        }

        /* MAIN CONTENT */
        .main-content {
            padding: 3rem;
            width: 100%;
        }
.stat-icon span {
	font-size: 24px;
}
.lp-custom-profile-wrapper.lp-profile-tab-my-courses {
	min-height: 100vh;
}
.sidebar.open .sidebar-closed {
    display: flex;
}

.learnpress-profile .lp-content-area {
  max-width: 100% !important;
  margin-left: 280px;
  overflow: hidden;
}
.lp-profile-nav-tabs li a {
	display: flex !important;
	flex-direction: row !important;
}
.sidebar-closed {
  position: absolute;
  top: 0;
  right: -15px;
  height: 30px;
  width: 30px;
  align-items: center;
  justify-content: center;
  background: #52796F;
  color: #fff;
  border-radius: 100%;
  font-size: 17px;
  font-weight: 700;
  display: none;
  cursor: pointer;
}
.lp-user-profile.current-user.guest {
  background: #fff !important;
}
.lp-user-profile.current-user.guest:before {
  background: #fff !important;
}
.lp-user-profile.current-user.guest:before,
body.learnpress-profile {
	background-color: #fff;
}
p {
    margin: 0 !important;
}
.lp-icon-total_course::before {
    content: "\f518";
}
.lp-icon-total_student::before {
    content: "\f501";
}
/* single course page style */




/* Responsive Tablet */

@media all and (max-width: 990px){
    
    .lp-user-profile .lp-profile-nav-tabs {
        flex-direction: column;
    }
    .lp-user-profile .lp-profile-nav-tabs li a {
        display: flex;
        flex-direction: row;
    }
    
    .mobile-menu-btn { display: block; }
    .learnpress-profile .lp-content-area {
        margin-left: 0;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .sidebar.open { transform: translateX(0); }
    .sidebar { transform: translateX(-100%); }
    #sidebar {
        top: 0;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
@media all and (max-width: 576px){
    .content-grids {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 40px 0;
    }
    
}

