:root{
  --bg: #f5f5f5;
  --panel: #ffffff;
  --muted: #525252;
  --surface: #e5e5e5;
}

.new-code-design-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 99998;
}
.new-code-design-overlay[data-open="true"]{
  opacity: 1;
  pointer-events: auto;
}

.new-code-design-sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 85vw;
  background: var(--panel);
  transform: translateX(-110%);
  transition: transform .28s cubic-bezier(.2,.9,.3,1);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  color: #262626;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  font-family: Inter, sans-serif;
}
.new-code-design-sidebar[data-open="true"]{
  transform: translateX(0);
}

.new-code-design-sidebar-inner{
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* --- HEADER CHANGES START --- */
.new-code-design-header{
  background: #ffffff; /* Changed to White */
  padding: 20px;
  padding-bottom: 24px;
  position: relative;
  color: #000000; /* Changed to Black text */
  border-bottom: 1px solid #f0f0f0; /* Added subtle separator */
}

.new-code-design-icon-btn{
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f3f4f6; /* Light grey background */
  border: 0;
  border-radius: 8px;
  padding: 6px;
  color: #000; /* Black icon */
  cursor: pointer;
  transition: background 0.2s;
}
.new-code-design-icon-btn:hover{
  background: #e5e7eb;
}

.new-code-design-user{
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.new-code-design-avatar-wrap{
  position: relative;
  width: 64px;
  height: 64px;
}
.new-code-design-avatar{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e5e5e5; /* Light grey border instead of white */
}
.new-code-design-online-dot{
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
}

.new-code-design-user-info{
  flex: 1;
}
.new-code-design-username{
  font-size: 16px;
  font-weight: 700;
  color: #000;
}
.new-code-design-useremail{
  font-size: 13px;
  color: #666; /* Grey text */
  margin-bottom: 4px;
}
.new-code-design-profile-btn{
  margin-top: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  border: 0;
  background: #000000; /* Black button */
  color: #fff; /* White text */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.new-code-design-profile-btn:hover{
  opacity: 0.8;
}
/* --- HEADER CHANGES END --- */


.new-code-design-body{
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.new-code-design-section-title{
  font-size: 11px;
  color: var(--muted);
  padding-left: 6px;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.new-code-design-row{
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-align: start;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.new-code-design-row:hover{
  background: #f0f0f0;
  transform: translateY(-1px);
}
.new-code-design-row-icon{
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f0f0f0;
}
.new-code-design-row-text{flex: 1;}
.new-code-design-row-title{font-size: 14px;font-weight: 600;}
.new-code-design-row-sub{font-size: 12px;color: var(--muted);}
.new-code-design-row-chevron{font-size: 20px;color: #a3a3a3;}


.new-code-design-pill{
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #16a34a;
  background: rgba(22,163,74,0.1);
}
.new-code-design-pill-new{
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;    
  color: #e11d48;
  background: rgba(220,38,38,0.1);
}

.new-code-design-account{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
}
.new-code-design-logout{
  color: #e11d48;
}

.new-code-design-footer{
  padding: 16px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}
.new-code-design-footer-text{
  font-size: 12px;
  color: var(--muted);
}
.new-code-design-footer-meta{
  font-size: 11px;
  margin-top: 4px;
  color: #737373;
}
