/* sidebar-view.css */
 
 /* Sidebar ***************************************************************************************/
  




  .sidebar-chat-text {
    color: var(--text-color);
    font-weight: 600;
    font-size: 13px;
  }

  .brand {
    font-weight:700;
    letter-spacing: -0.02em;
    font-size: 14px; 
    color: var(--text-color);
    padding-bottom: 2px;
    padding-left: 8px;
  }

   .reg-text {
    font-weight:700;
    letter-spacing: -0.02em;
    font-size: 14px; 
    color: white;
    padding-bottom: 2px;
    padding-left: 8px;
  }

   .conversations {
    position: relative;
    width: 400px;
    height: 300px;
    border: 2px solid #ccc;
    padding: 10px;
    overflow: hidden;
  }

   .conv-item {
    width: 180px;
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: grab;
    position: absolute; /* important: allows free movement */
    user-select: none;
  }

.conv-item:active {
    cursor: grabbing;
  }


  .conv-dot {
    width:36px; height:36px; border-radius:8px; background:#eef2ff; display:inline-flex; align-items:center; justify-content:center; font-weight:600; color:#4f46e5;
  }
  .new-chat {
    margin-top:auto;
    display:flex;
    gap:8px;
  }
/* BUTTONS ****************************************************************************************/ .btn {
  color: transparent;
}

.btn img {
    width: 1.1rem;
  height: 1.1rem;
    /* initial filter (black) */
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
  }

/* .btn div {
    font-weight:400; 
    letter-spacing: -0.02em; 
    font-size: 15.5px; 
    filter: brightness(0) invert(0);
} */



  #sidebar-chats .btn {
  padding: 9px 9px;
  border-radius: 8px;
  border: none;
  cursor: pointer; 
  display: flex;
  align-items: center;
  background: var(--sidebar-color); /* initial background */
  transition: background 0.2s;      
}


#main-function-buttons .btn {
  width: 100%;
  display: flex;            /* so the icon + text stay horizontal */
  align-items: center;      /* vertically center icon & text */
  gap: 4px;                 /* optional spacing between icon and text */
  margin-bottom: 4px;       /* adjust vertical spacing between buttons */
  box-sizing: border-box;   /* includes padding in width */
}

/* BUTTONS ****************************************************************************************/

/* This #save is so the save on the top right of the screen works*/
#save {

  position: absolute;
  right: 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}


 /* Sidebar ***************************************************************************************/

 /* Collapsed sidebar */
  .sidebar-collapsed {
    background: var(--collapsed-sb-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 11px;
    gap: 7px;
    border-right: 0.1px solid var(--primary-lighter);
  }

  .sidebar-collapsed button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
  }

 

  /* Full sidebar */
  .sidebar {
    background:var(--sidebar-color);
    display: flex;
    flex-direction: column;
    padding-left: 6px;
    /* padding-right: 15px; */
    padding-top: 14px;
    width: 260px;
    overflow-y: auto;
  }

  .sidebar.hidden {
    display: none;
    padding-left: 20px;
  }



  .sidebar .btn {
    padding: 10px;
    background: var(--sidebar-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
  }

 .sb-header{
    display: flex;
    align-items: center;
    padding-bottom: 10px;

  }

 .custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.custom-row .label {
  font-size: 14px;
  color: var(--text-color, #fff);
}


/* SCROLL BAR WITH UI COLOR TEXT/PREVIEW ******************** */
.custom-row2{
  display: flex;
  align-items: center;
  gap: 16px; /* space between preview and slider column */
}



.settings-text2 {
  font-size: 13px;
  font-weight:600;
  letter-spacing: -0.02em;
  font-size: 15px; 
  color: rgb(193, 193, 193);
  padding-left: 3px;
}
.slider-column {
  display: flex;
  flex-direction: column;
}


.slider-container {
    margin-top: 20px;
  }

  .grayscale-control {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: flex-start;
  gap: 8px; /* space between rows */
}

  #grayRange {
  width: 150px;
}
/* SCROLL BAR WITH UI COLOR TEXT/PREVIEW ******************** */



  .back-button {
  margin-left: auto;
  color: white;
  width: 30px;
  height: 30px;
  margin-right: 20px;
  display: flex; 
  align-items: center;
  justify-content: center; 
  border-radius: 25%;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  margin-top: 3px;
  
}



.gray-section{
    margin-top: 20px;
    width: 100%;
    background-color: color-mix(in lab, var(--sidebar-color) 99%, white);
    border-radius: 2%;
    gap: 5px;
}

.settings-text {
  font-weight:600;
    letter-spacing: -0.02em;
    font-size: 15px; 
    color: rgb(193, 193, 193);
    padding-bottom: 6px;
    padding-top: 12px;
    padding-left: 13px;
}

.custom-content {
  margin-top: 10px;
  padding: 16px;
  background: color-mix(in srgb, var(--sidebar-color) 90%, black);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section Titles */
.section-title {
  font-size: 13px;
  font-weight: 700;
  /* text-transform: uppercase; */
  letter-spacing: 0.04em;
  color: rgb(180, 180, 180);
  margin-top: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 4px;
  max-width: calc(100% - 20px);
}

.setting-column {
  display: flex;
  justify-content: column;
  
}
/* Each Row */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}



/* Label Text */
.setting-label {
  color: rgb(210, 210, 210);
  font-size: 14px;
  font-weight: 500;
}

/* Color Pickers */
.color-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}



/* Sliders */
.slider-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-control input[type="range"] {
  margin-left: 12px;
  max-width: 130px;
  cursor: pointer;
  accent-color: color-mix(in lab, var(--primary-color) 60%, white);
}

.preview-box {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}


/* PROFILE CIRCLE ******************************************************* */
.profile-container {
  position: absolute;
  bottom: 15px;
  left: 9.25px;
}

.profile-container-top {
  position: absolute;
  top: 18px;
  left: 11px;
}

.profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--primary-color); /* highlighted by default */
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  transform: scale(1.08); /* slightly enlarged by default */
}

.profile-pic-top {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--primary-color); /* highlighted by default */
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  transform: scale(1.08); /* slightly enlarged by default */
}

.profile-pic:hover {
  transform: scale(1); /* shrink back to normal on hover */
  border-color: rgba(255,255,255,0.3); /* less highlighted */
  opacity: 0.8; /* optional: slight fade */
}
.profile-pic-top:hover {
  transform: scale(1); /* shrink back to normal on hover */
  border-color: rgba(255,255,255,0.3); /* less highlighted */
  opacity: 0.8; /* optional: slight fade */
}
/* --- Popup Menu --- */
.profile-menu {
  position: absolute;
  bottom: 48px; /* appears just above profile circle */
  left: 0;
  background: var(--secondary-color);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  padding: 8px 0;
  display: none; /* hidden by default */
  animation: menuFade 0.15s ease-out;
  z-index: 9997;
}

.profile-menu-top {
  position: absolute;
  top: 48px; /* appears just above profile circle */
  left: 0;
  background: var(--secondary-color);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  padding: 8px 0;
  display: none; /* hidden by default */
  animation: menuFade 0.15s ease-out;
  z-index: 9997;
}

@keyframes menuFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-email {
  color: #ddd;
  font-size: 13px;
  padding: 6px 12px;
  word-wrap: break-word;
}

.profile-email2 {
  color: #ddd;
  font-size: 13px;
  padding: 6px 12px;
  word-wrap: break-word;
}

.menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 6px 0;
}

.menu-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #e6edf3;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-item:hover {
  background: var(--primary-color-highlight);
}

.menu-item.logout {
  color: #ff6b6b;
}
/* PROFILE CIRCLE ******************************************************* */
