* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
body {
  /* min-height: 100vh; */
  /* background: #f4f7fb; */
  background-size: cover;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
border-radius: 10px;
background-color: none;
backdrop-filter: blur(15px);
}

::-webkit-scrollbar
{
width: 6px;
background-color: none;
backdrop-filter: blur(15px);
}

::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
background-color: none;
backdrop-filter: blur(15px);
}

.device-checkbox[disabled] {
cursor: not-allowed;
}

.containers {
  display: flex;
  justify-content: center;
  align-items: center;
}

.alert {
  color: rgb(255, 82, 82);
}
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -990;
  overflow: hidden;
}
.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: moveSphere 20s infinite ease-in-out;
}
.sphere-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(45deg, #ff3366, #ff6b3d);
  top: -300px;
  left: -300px;
  animation-delay: -5s;
}
.sphere-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg, #4433ff, #3dceff);
  bottom: -250px;
  right: -250px;
  animation-delay: -2s;
}
.sphere-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #7400ff, #ff00d4);
  top: 50%;
  left: 30%;
  animation-delay: -8s;
}
@keyframes moveSphere {
  0%, 100% {
      transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
      transform: translate(100px, 50px) rotate(90deg) scale(1.1);
  }
  50% {
      transform: translate(50px, 100px) rotate(180deg) scale(1);
  }
  75% {
      transform: translate(-50px, 50px) rotate(270deg) scale(0.9);
  }
}
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: floatParticle 8s infinite linear;
}
@keyframes floatParticle {
  0% {
      transform: translateY(100vh) scale(0);
      opacity: 0;
  }
  50% {
      opacity: 1;
  }
  100% {
      transform: translateY(-100vh) scale(1);
      opacity: 0;
  }
}
/* .login-container {
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 3rem;
  color: black;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
  
position: absolute;
top: 20%;
left: 35%;
transform: translate(-50%, -50%);
} */
/* .login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
  );
  transform: skewX(-15deg);
  transition: 0.5s;
}
.login-container:hover::before {
  left: 100%;
} */


.media-header {
  position: relative;
  /* backdrop-filter: blur(20px); */
  height: 7vh;
  margin-top: 2%;

  display: flex;
  align-items: center;
  justify-content: space-around;
}


.Header {
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  height: 7vh;
  margin-bottom: 1%;
  z-index: 1000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3% 0 2%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.header-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.header-link:hover {
  color: #a78bfa;
}

.header-link.active {
  color: #6452a3;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
  color: #fff;
}

.account-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.account-toggle::after {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.6);
}

.suspended-banner {
  position: relative;
  z-index: 100;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.2) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fca5a5;
  font-size: 0.9rem;
}

.suspended-banner i {
  color: #f87171;
  font-size: 1.1rem;
}

.suspended-banner strong {
  color: #fca5a5;
}

.suspended-banner a {
  color: #60a5fa;
  text-decoration: none;
  margin-left: 8px;
  padding: 4px 12px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.suspended-banner a:hover {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.5);
}

.logo {
  width: 8%;
}

.account {
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
display: inline-block;
border: 1px solid rgba(255, 255, 255, 0.164);
}


.account img {
width: 100%;
height: 100%;
object-fit: cover;
}


.media-container {
  position: relative;
  z-index: 2;
  width: 30%;
  height: 85vh;
  margin: 1%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0rem;
  color: black;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
  -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}


.media-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent 30%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-container:hover::before {
  opacity: 1;
}

.playlist-container {
  position: relative;
  z-index: 2;
  width: 30%;
  height: 85vh;
  margin: 1%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0rem;
  color: black;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
  -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}

.playlist-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent 30%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.playlist-container:hover::before {
  opacity: 1;
}

.devices-container {
  position: relative;
  z-index: 2;
  width: 30%;
  height: 85vh;
  margin: 1%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0rem;
  color: black;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
  -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}


.devices-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent 30%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.devices-container:hover::before {
  opacity: 1;
}




@keyframes slideIn {
  to {
      transform: translateY(0);
      opacity: 1;
  }
}
.login-header {
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2.2rem);
}
.login-header h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(270deg, #d9ceff, #6452a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.login-header p {
  color: #c7b8ff;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.form-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  color: #f7f2ff;
  transition: all 0.3s ease;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}
.form-input:focus + .input-icon {
  color: #ffffff;
}
.submit-button {
  width: 100%;
  padding: 1rem;
  background: #6452a3;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.8),
      transparent
  );
  transition: 0.5s;
}
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}
.submit-button:hover::before {
  left: 100%;
}
.social-login {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.social-button {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(80, 80, 80, 0.05);
  color: black;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.social-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(58, 58, 58, 0.1);
  transform: translateY(100%);
  transition: 0.3s ease;
}
.social-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}
.social-button:hover::before {
  transform: translateY(0);
}
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: rgb(207 207 207);
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(207, 207, 207, 0.6);
}
.divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
}
.additional-options {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(207, 207, 207, 0.6);
  padding-bottom: 8px;
}
.additional-options a {
  color: black;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.additional-options a:hover {
  opacity: 0.8;
}
.error-message {
  color: #ff4477;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ripple {
  to {
      width: 300px;
      height: 300px;
      opacity: 0;
  }
}
@media (max-width: 480px) {
  .login-container {
      padding: 22px 16px 24px;
  }
  .divider {
      margin: 1.25rem 0;
  }
}




/* .media-list {
  padding: 1rem;
} */

.btnU {
  padding: 0.5rem;
  background: none;
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgb(143, 143, 143);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btnU::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      to right,
      transparent,
      rgba(196, 196, 196, 0.8),
      transparent
  );
  transition: 0.5s;
}
.btnU:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btnU:hover::before {
  left: 100%;
}




.media-library, .playlist-container, .devices-container {
display: flex;
flex-direction: column;
/* gap: 12px; */
}

.custom-header-text {
font-size: 1.5rem;
font-weight: bold;
color: white;
}

.media-item {
display: flex;
align-items: center;
padding: 10px 15px;
background: #f5f5f5;
border-radius: 10px;
margin-bottom: 12px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
cursor: grab;
}

.media-item img {
width: 106px;
height: 60px;
border-radius: 6px;
object-fit: contain;
margin-right: 15px;
background-color: black;
}

.device-item {
display: flex;
align-items: center;
padding: 10px 15px;
background-color: rgb(241 237 243 / 13%);
color: white;
border-radius: 10px;
margin-bottom: 12px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.media-info {
flex: 1;
}

.meta {
font-size: 0.85rem;
color: #cfcfcf;
}

.edit-menu-btn {
border: none;
background: #007bff;
color: white;
border-radius: 50%;
margin-left: 1%;
margin-right: 1%;
width: 35px;
height: 35px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.edit-menu-btn:hover {
background: #0056b3;
}

.edit-btn {
border: none;
background: #007bff;
color: white;
border-radius: 50%;
width: 35px;
height: 35px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.edit-btn:hover {
background: #0056b3;
}

.info-btn {
border: none;
background: #ffa600;
color: white;
border-radius: 50%;
margin-right: 1%;
width: 35px;
height: 35px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.info-btn:hover {
background: #af7200;
}

.watch-btn {
border: none;
background: #8400ff;
color: white;
border-radius: 50%;
margin-right: 1%;
width: 35px;
height: 35px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.watch-btn:hover {
background: #5a00af;
}


.swal2-input.swal-input-custom {
margin: 4px 0 !important;     /* Reduce margin */
}




/* Toggle Switch Styles */
.switch {
position: relative;
display: inline-block;
width: 42px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #4caf50;
}
input:checked + .slider:before {
transform: translateX(18px);
}






.power-btn {
border: none;
color: white;
border-radius: 50%;
margin-left: 1%;
margin-right: 1%;
width: 35px;
height: 35px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.power-on {
background: #47ce4d;
}

.power-on:hover {
background: #47ce4d;
}

.power-off {
background: #ce4747;
}

.power-off:hover {
background: #ce4747;
}



















  .playlists-container {
      display: flex;
      flex-direction: column;
      gap: 15px;
  }
  
  .playlist {
      background: rgba(0,0,0,0.1);
      border-radius: 8px;
      overflow: hidden;
  }
  
  .playlist-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 15px;
      background-color: rgba(0,0,0,0.2);
      cursor: pointer;
      transition: 0.5s all;
  }
  
  .playlist-header:hover {
      background-color: rgba(0,0,0,0.25);
  }
  
  .playlist-content {
      display: none;
      padding: 10px;
  }
  
  .playlist-content.active {
      display: block;
  }
  
  .media-item {
      cursor: move;
      transition: transform 0.2s;
      background: rgba(255,255,255,0.05);
      margin-bottom: 8px;
      border-radius: 4px;
      padding: 8px;
  }
  
  .media-item.dragging {
      opacity: 0.5;
      transform: scale(0.95);
  }
  
  .playlist-content.drop-zone {
      background-color: rgba(128, 0, 255, 0.1);
      border: 2px dashed rgba(168, 85, 247, 0.5);
  }
  
  .playlist-actions {
      display: flex;
      gap: 10px;
  }
  
  .playlist-actions button {
      background: none;
      border: none;
      color: #fff;
      cursor: pointer;
      font-size: 14px;
      opacity: 0.7;
      transition: opacity 0.2s;
  }
  
  .playlist-actions button:hover {
      opacity: 1;
  }
  
  .new-playlist-form {
      display: none;
      padding: 15px;
      background: rgba(0,0,0,0.2);
      border-radius: 8px;
      margin-bottom: 15px;
  }
  
  .new-playlist-form.active {
      display: block;
  }
  
  .new-playlist-form input {
      width: 100%;
      padding: 8px 12px;
      margin-bottom: 10px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: white;
      border-radius: 4px;
  }
  
  .form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
  }

  .media-list.drop-zone {
      background-color: rgba(128, 0, 255, 0.1);
      border: 2px dashed rgba(168, 85, 247, 0.5);
      border-radius: 8px;
  }


  .draggable-mirror {
      opacity: 0.5;
      transform: scale(0.95);
      z-index: 1000;
  }



  .media-playlist.drop-zone {
      background-color: rgba(128, 0, 255, 0.08);
      border: 2px dashed rgba(168, 85, 247, 0.4);
      border-radius: 10px;
      transition: 0.2s ease;
  }

  .media-item.placeholder {
      background-color: rgba(168, 85, 247, 0.15);
      border: 2px dashed rgba(168, 85, 247, 0.5);
      font-style: italic;
      text-align: center;
      color: rgba(255, 255, 255, 0.6);
  }





.title {
color: #e5e0e8;
padding: 0;
margin: 0;
font-weight: 400;
}

p {
color: #1e1028;
}

.draggable-container {
background-color: #1e1028;
padding: 3rem;
margin: 1rem 0;
width: 70%;
border-radius: 5px;
box-shadow: 10px 15px 20px #1e192844;
}

.shallow-draggable, .playlist-item {
background-color: rgb(241 237 243 / 13%);
color: white;
padding: 0.3rem 1rem;
border-radius: 5px;
transition: opacity 200ms ease;
}

.dragging {
opacity: 0.5;
transition: opacity 1s ease;
}


.drop-zone-highlight {
border: 2px dashed rgba(168, 85, 247, 0.45);
background-color: rgba(128, 0, 255, 0.08);
border-radius: 8px;
transition: 0.3s ease;
}

.drag-over {
background: rgba(128, 0, 255, 0.1) !important;
outline: 2px dashed rgba(168, 85, 247, 0.5);
outline-offset: -2px;
border-radius: 8px;
}















/* .shallow-draggable.dragging {
opacity: 0.5;
}

.draggable-container {
min-height: 100px;
border: 2px dashed #ccc;
padding: 10px;
margin: 10px 0;
}

.draggable-container h1 {
margin-top: 0;
} */











.edit-btn, .edit-btn * {
pointer-events: auto !important;
cursor: pointer !important;
}

.play-list {
  padding: 1rem;
}








.dragTo {
margin-bottom: 15px;
border-radius: 10px;
overflow: hidden;
transition: all 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
backdrop-filter: blur(6px);
border: 1px solid transparent;
}
.dragTo:not(.collapsed) {
box-shadow: 0 3px 16px rgba(128, 0, 255, 0.12);
border-color: rgba(168, 85, 247, 0.15);
}
.dragTo .playlist-header {
cursor: pointer;
background: rgba(255, 255, 255, 0.08);
color: white;
display: flex;
align-items: center;
padding: 10px 18px;
font-weight: bold;
font-size: 1.12em;
user-select: none;
transition: background 0.3s ease;
}
.dragTo .toggle-btn {
margin-left: auto;
font-size: 1.2em;
transition: transform .2s;
}
.dragTo.collapsed .toggle-btn { transform: rotate(0deg);}
.dragTo:not(.collapsed) .toggle-btn { transform: rotate(45deg);}
.dragTo .playlist-content {
padding: 16px;
display: block;
}
.dragTo.collapsed .playlist-content {
display: none;
}
.dragTo .playlist-content .playlist-item {
margin-bottom: 10px;
transition: opacity 0.2s ease, transform 0.2s ease;
}











.play-list, .media-list, .device-list {
  overflow-y: scroll;
  height: 67vh;
  padding: 1rem;
}






#custom-context-menu li.ctx-action:hover {
background: #f4f8fa;
}











.pulse-circle {
position: relative;
width: 40px;
height: 40px;
display: inline-block;
margin-right: 15px;
}

.pulse-core-off {
position: absolute;
width: 40px;
height: 40px;
background: #e53935;
border-radius: 50%;
left: 0;
top: 0;
z-index: 2;
box-shadow: 0 0 12px #e5393588;
}

.pulse-ring-off {
position: absolute;
left: 0; top: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(229, 57, 53, 0.45);
z-index: 1;
animation: pulse-anim 1.4s cubic-bezier(0.5,0,0.5,1) infinite;
}

.pulse-core-sleep {
position: absolute;
width: 40px;
height: 40px;
background: #a7a7a7;
border-radius: 50%;
left: 0;
top: 0;
z-index: 2;
box-shadow: 0 0 12px #90909088;
}

.pulse-ring-sleep {
position: absolute;
left: 0; top: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(159, 159, 159, 0.45);
z-index: 1;
animation: pulse-anim 1.4s cubic-bezier(0.5,0,0.5,1) infinite;
}

.pulse-core-on {
position: absolute;
width: 40px;
height: 40px;
background: #35e535;
border-radius: 50%;
left: 0;
top: 0;
z-index: 2;
box-shadow: 0 0 12px #49e53588;
}

.pulse-ring-on {
position: absolute;
left: 0; top: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(53, 229, 82, 0.45);
z-index: 1;
animation: pulse-anim 1.4s cubic-bezier(0.5,0,0.5,1) infinite;
}

.pulse-core-new {
position: absolute;
width: 40px;
height: 40px;
background: #7835e5;
border-radius: 50%;
left: 0;
top: 0;
z-index: 2;
box-shadow: 0 0 12px #8735e588;
}

.pulse-ring-new {
position: absolute;
left: 0; top: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(120, 53, 229, 0.45);
z-index: 1;
animation: pulse-anim 1.4s cubic-bezier(0.5,0,0.5,1) infinite;
}

.pulse-core-error {
position: absolute;
width: 40px;
height: 40px;
background: #e5d335;
border-radius: 50%;
left: 0;
top: 0;
z-index: 2;
box-shadow: 0 0 12px #e5d93588;
}

.pulse-ring-error {
position: absolute;
left: 0; top: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(229, 226, 53, 0.45);
z-index: 1;
animation: pulse-anim 1.4s cubic-bezier(0.5,0,0.5,1) infinite;
}

@keyframes pulse-anim {
0% {
  transform: scale(1);
  opacity: 1;
}
70% {
  transform: scale(2.2);
  opacity: 0;
}
100% {
  transform: scale(2.2);
  opacity: 0;
}
}




















.circle-checkbox {
display: inline-flex;
align-items: center;
cursor: pointer;
user-select: none;
margin-right: 12px;
}

.circle-checkbox input[type="checkbox"] {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}

.circle-checkbox .checkmark {
display: inline-block;
width: 35px;
height: 35px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: all 0.25s ease;
box-sizing: border-box;
position: relative;
box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.circle-checkbox .checkmark:hover {
border-color: rgba(139, 92, 246, 0.5);
background: rgba(139, 92, 246, 0.1);
}

.circle-checkbox input[type="checkbox"]:checked + .checkmark {
border-color: #8b5cf6;
background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.circle-checkbox .checkmark::after {
content: "";
display: block;
width: 17px;
height: 17px;
border-radius: 50%;
background: #fff;
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%) scale(0.2);
opacity: 0;
transition: opacity 0.14s, transform 0.17s;
}

.circle-checkbox input[type="checkbox"]:checked + .checkmark::after {
background: #fff;
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}


.dropdown-toggle {
cursor: pointer;
}

.dropdown-toggle::after {
margin-right: .255em;
}

.dropdown-item .fas {
margin-right: 8%;
}

.dropdown-item {
color: white;
}

.dropdown-item-dummy {
display: block;
width: 100%;
padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
clear: both;
font-weight: 400;
color: white;
text-align: inherit;
text-decoration: none;
white-space: nowrap;
background-color: transparent;
border: 0;
border-radius: var(--bs-dropdown-item-border-radius, 0);
}















.circle-choice {
display: inline-flex;
align-items: center;
cursor: pointer;
user-select: none;
margin-right: 12px;
}

.circle-choice input[type="radio"] {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}

.circle-choice .checkmark {
display: inline-block;
width: 26px;
height: 26px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: all 0.25s ease;
box-sizing: border-box;
position: relative;
box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.circle-choice .checkmark:hover {
border-color: rgba(139, 92, 246, 0.5);
background: rgba(139, 92, 246, 0.1);
}

.circle-choice input[type="radio"]:checked + .checkmark {
border-color: #8b5cf6;
background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* White dot in the middle when selected */
.circle-choice .checkmark::after {
content: "";
display: block;
width: 10px;
height: 10px;
border-radius: 50%;
background: #fff;
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%) scale(0.2);
opacity: 0;
transition: opacity 0.14s, transform 0.17s;
}

.circle-choice input[type="radio"]:checked + .checkmark::after {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}













.account-container {
  display: flex;
  align-items: center;
  position: relative;
}

.account-name {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}





.media-title {
  display: block;
  max-width: 14vw; /* Adjust to fit your layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-header:hover {
filter: brightness(1.05);
transition: 0.5s all;
}








/* Modal overlay */
.edit-menu-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(10, 12, 20, 0.6);
backdrop-filter: blur(14px);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;

opacity: 0;
pointer-events: none;
transition: opacity 0.35s ease;
}

.edit-menu-modal.show {
opacity: 1;
pointer-events: auto;
}

/* Modal box */
.edit-menu-content {
background: rgba(15, 23, 42, 0.78);
backdrop-filter: blur(18px);
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 24px;
padding: 24px;
max-width: 400px;
width: 90%;
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
transform: scale(0.95);
opacity: 0;
transition: transform 0.35s ease, opacity 0.35s ease;
}

.edit-menu-modal.show .edit-menu-content {
transform: scale(1);
opacity: 1;
}

/* Grid layout */
.edit-menu-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 16px;
}

/* Button styles */
.edit-btn-tile {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 16px;
height: 110px;
border-radius: 20px;
font-size: 14px;
color: #f8fafc;
font-weight: 500;
cursor: pointer;
backdrop-filter: blur(12px);
transition: transform 0.2s ease, background 0.3s ease;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255, 255, 255, 0.18);
width: 100%;
}

.edit-btn-tile:hover {
transform: translateY(-4px);
filter: brightness(1.08);
}

.edit-btn-tile i {
font-size: 24px;
margin-bottom: 8px;
}

.edit-btn-tile span {
word-break: break-word;
overflow-wrap: break-word;
text-align: center;
line-height: 1.2;
max-width: 100%;
font-size: 13px;
}

/* Optional: Close on background click */
.edit-menu-modal:has(.edit-menu-content):not(.show) {
pointer-events: none;
}

.close-btn {
margin-top: 10px;
background: rgba(255, 255, 255, 0.08);
color: #f8fafc;
border: 1px solid rgba(255, 255, 255, 0.25);
padding: 6px 20px;
border-radius: 10px;
cursor: pointer;
font-weight: bold;
}

.edit-menu-content h5 {
color: #f8fafc;
text-align: center;
padding-bottom: 10px;
}

.edit-menu-close-container {
display: flex;
justify-content: center;
margin-top: 24px;
}

.edit-menu-close-btn {
padding: 10px 24px;
border: 1px solid rgba(255, 255, 255, 0.22);
background: rgba(255, 255, 255, 0.08);
color: #f8fafc;
font-size: 15px;
border-radius: 14px;
backdrop-filter: blur(12px);
cursor: pointer;
transition: background 0.3s ease, transform 0.2s;
}

.edit-menu-close-btn:hover {
background: rgba(255, 255, 255, 0.16);
transform: scale(1.05);
}

/* Color variants with glassy backgrounds */
.bg-red    { background: linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(239, 68, 68, 0.08)); border-color: rgba(239, 68, 68, 0.45); }
.bg-blue   { background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08)); border-color: rgba(59, 130, 246, 0.45); }
.bg-green  { background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.08)); border-color: rgba(34, 197, 94, 0.45); }
.bg-yellow { background: linear-gradient(135deg, rgba(234, 179, 8, 0.24), rgba(234, 179, 8, 0.08)); border-color: rgba(234, 179, 8, 0.5); }
.bg-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(139, 92, 246, 0.1)); border-color: rgba(139, 92, 246, 0.5); }
.bg-orange { background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(249, 115, 22, 0.08)); border-color: rgba(249, 115, 22, 0.5); }







.but {
color: rgb(255, 255, 255);
transition: all 0.1s ease-in-out;
}

.but.active {
color: #6452a3;
}

.but:hover {
color: #6452a3;
}







.overlay {
background-color: rgba(128, 128, 128, 0.5);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
}
#upload-trigger:hover .overlay {
opacity: 1;
}





.settings-widget-icon {
color: #6452a3;
text-shadow: 0px 0px 70px #6452a3;
}






/* Example for a custom class .no-decoration */
a.no-decoration {
text-decoration: none !important;
}
/* Optional: keep no underline even on hover/focus */
a.no-decoration:hover,
a.no-decoration:focus {
text-decoration: none !important;
}









  .bg-pic {
    height: 200px;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
  }
  .profile-info {
    background: linear-gradient(0deg, #ffffff2e, #ffffff00);
    margin-top: -100px;
    text-align: center;
  }
  .profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    background-color: #f5f5f5;
  }
  .section {
    padding: 20px;
    height: 100%;
  }
  .users-status-pic {
    border: 0.5px solid rgb(221, 221, 221);
    object-fit: cover;
  }
  .list-overflow {
    overflow-y: scroll;
    height: 85%;
  }
  .online-system {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
  }
  .account-system {
    /* background-color: white;
    border: 3px solid #eff2f5; */
    
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
    color: white;
  }
  .account-system input {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
    border: none;
    color: rgb(226, 226, 226);
  }
  #contentForm input {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
    border: none;
    color: rgb(226, 226, 226);
  }
  /* .account-system .form-label {
    color: rgb(226, 226, 226);
  } */
  .modal-body input {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
    border: none;
    color: rgb(226, 226, 226);
  }
  .form-container input {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
    border: none;
    color: rgb(226, 226, 226);
  }
  .account-system input:disabled {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
    border: none;
    color: rgb(226, 226, 226);
  }
  .account-system select {
background: rgba(255, 255, 255, 0.1) 
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e2e2e2' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.658l-4.796 5.482a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") 
            no-repeat right 0.75rem center / 1rem auto;
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
    border: none;
    color: rgb(226, 226, 226);
  }

  .account-system select option {
    background-color: #222; /* default background for options */
    color: #e2e2e2; /* text color */
  }






.btn-close {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}






  
.form-control {
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid #ccd6f6;
  padding: 10px 12px;
}

label {
  font-weight: 500;
  color: #b1b1b1;
  margin-bottom: 6px;
}

.form-check-label {
  font-weight: 500;
  color: #b1b1b1;
}

/* Optional: if you want a smoother instant effect */
.form-check-input {
transition: background-color 0.15s ease, border-color 0.15s ease;
}

.form-check-input:checked {
background-color: #667eea !important; /* Your desired color */
border-color: #667eea !important;
box-shadow: none !important;
}

/* Also keep it styled when focused & checked */
.form-check-input:checked:focus {
background-color: #667eea !important;
border-color: #667eea !important;
}

/* Mute toggle - red when checked */
#muteToggle:checked,
#muteToggle:checked:focus {
background-color: #f87171 !important;
border-color: #f87171 !important;
}

/* Stretched toggle - teal when checked */
#stretchedToggle:checked,
#stretchedToggle:checked:focus {
background-color: #2dd4bf !important;
border-color: #2dd4bf !important;
}

.abilities-group {
  margin-bottom: 20px;
  padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
  border: none !important;
  border-radius: 10px;
}

.abilities-group strong {
  font-size: 1rem;
  color: #e7e7e7 !important;
}

.abilities-group .form-check {
  margin-bottom: 10px;
}













/* Defs */
@property --angle-1 {
syntax: "<angle>";
inherits: false;
initial-value: -75deg;
}

@property --angle-2 {
syntax: "<angle>";
inherits: false;
initial-value: -45deg;
}

:root {
--global--size: clamp(2rem, 4vw, 5rem);
--anim--hover-time: 400ms;
--anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}






/* Button Wrap Container */
.button-wrap {
position: relative;
z-index: 2;
border-radius: 999vw;
background: transparent;
pointer-events: none;
transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

/* Button Shadow Container */
.button-shadow {
--shadow-cuttoff-fix: 2em;
position: absolute;
width: calc(100% + var(--shadow-cuttoff-fix));
height: calc(100% + var(--shadow-cuttoff-fix));
top: calc(0% - var(--shadow-cuttoff-fix) / 2);
left: calc(0% - var(--shadow-cuttoff-fix) / 2);
filter: blur(clamp(2px, 0.125em, 12px));
-webkit-filter: blur(clamp(2px, 0.125em, 12px));
-moz-filter: blur(clamp(2px, 0.125em, 12px));
-ms-filter: blur(clamp(2px, 0.125em, 12px));
overflow: visible;
pointer-events: none;
}

/* Shadow */
.button-shadow::after {
content: "";
position: absolute;
z-index: 0;
inset: 0;
border-radius: 999vw;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
top: calc(var(--shadow-cuttoff-fix) - 0.5em);
left: calc(var(--shadow-cuttoff-fix) - 0.875em);
padding: 0.125em;
box-sizing: border-box;
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
mask-composite: exclude;
transition: all var(--anim--hover-time) var(--anim--hover-ease);
overflow: visible;
opacity: 1;
}

/* ========== BUTTON BASE STYLES ========== */

.glass-button {
/* Basic Styling */
--border-width: clamp(1px, 0.0625em, 4px);
all: unset;
cursor: pointer;
position: relative;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
pointer-events: auto;
z-index: 3;
background: linear-gradient(
  -75deg,
  rgba(255, 255, 255, 0.05),
  rgba(255, 255, 255, 0.2),
  rgba(255, 255, 255, 0.05)
);
border-radius: 999vw;
box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
  inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
  0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
  0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
  0 0 0 0 rgba(255, 255, 255, 1);
backdrop-filter: blur(clamp(1px, 0.125em, 4px));
-webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
-moz-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
-ms-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.glass-button:hover {
transform: scale(0.975);
backdrop-filter: blur(0.01em);
-webkit-backdrop-filter: blur(0.01em);
-moz-backdrop-filter: blur(0.01em);
-ms-backdrop-filter: blur(0.01em);
box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
  inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
  0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
  0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
  0 0 0 0 rgba(255, 255, 255, 1);
}

/* Button Text */
.glass-button span {
position: relative;
display: block;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
letter-spacing: -0.05em;
font-weight: 500;
font-size: 1em;
color: rgb(255, 255, 255);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1);
transition: all var(--anim--hover-time) var(--anim--hover-ease);
padding-inline: 1.5em;
padding-block: 0.875em;
}

.glass-button:hover span {
text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);
}

/* Text */
.glass-button span::after {
content: "";
display: block;
position: absolute;
z-index: 1;
width: calc(100% - var(--border-width)); /* Prevent overlapping border */
height: calc(100% - var(--border-width));
top: calc(0% + var(--border-width) / 2);
left: calc(0% + var(--border-width) / 2);
box-sizing: border-box;
border-radius: 999vw;
overflow: clip;
background: linear-gradient(
  var(--angle-2),
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.5) 40% 50%,
  rgba(255, 255, 255, 0) 55%
);
z-index: 3;
mix-blend-mode: screen;
pointer-events: none;
background-size: 200% 200%;
background-position: 0% 50%;
background-repeat: no-repeat;
transition: background-position calc(var(--anim--hover-time) * 1.25)
    var(--anim--hover-ease),
  --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.glass-button:hover span::after {
background-position: 25% 50%;
}

.glass-button:active span::after {
background-position: 50% 15%;
--angle-2: -15deg;
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
.glass-button span::after,
.glass-button:active span::after {
  --angle-2: -45deg;
}
}

/* ========== BUTTON OUTLINE ========== */

/* Outline */
.glass-button::after {
content: "";
position: absolute;
z-index: 1;
inset: 0;
border-radius: 999vw;
width: calc(100% + var(--border-width));
height: calc(100% + var(--border-width));
top: calc(0% - var(--border-width) / 2);
left: calc(0% - var(--border-width) / 2);
padding: var(--border-width);
box-sizing: border-box;
background: conic-gradient(
    from var(--angle-1) at 50% 50%,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0) 5% 40%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0) 60% 95%,
    rgba(0, 0, 0, 0.5)
  ),
  linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
mask-composite: exclude;
transition: all var(--anim--hover-time) var(--anim--hover-ease),
  --angle-1 500ms ease;
box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

.glass-button:hover::after {
--angle-1: -125deg;
}

.glass-button:active::after {
--angle-1: -75deg;
}

@media (hover: none) and (pointer: coarse) {
.glass-button::after,
.glass-button:hover::after,
.glass-button:active::after {
  --angle-1: -75deg;
}
}

/* Shadow Hover */
.button-wrap:has(.glass-button:hover) .button-shadow {
filter: blur(clamp(2px, 0.0625em, 6px));
-webkit-filter: blur(clamp(2px, 0.0625em, 6px));
-moz-filter: blur(clamp(2px, 0.0625em, 6px));
-ms-filter: blur(clamp(2px, 0.0625em, 6px));
transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap:has(button:hover) .button-shadow::after {
top: calc(var(--shadow-cuttoff-fix) - 0.875em);
opacity: 1;
}

/* Rotation */
.button-wrap:has(button:active) {
transform: rotate3d(1, 0, 0, 25deg);
}

.button-wrap:has(button:active) button {
box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
  inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
  0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
  0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
  0 0.225em 0.05em 0 rgba(0, 0, 0, 0.05),
  0 0.25em 0 0 rgba(255, 255, 255, 0.75),
  inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15);
}

.button-wrap:has(button:active) .button-shadow {
filter: blur(clamp(2px, 0.125em, 12px));
-webkit-filter: blur(clamp(2px, 0.125em, 12px));
-moz-filter: blur(clamp(2px, 0.125em, 12px));
-ms-filter: blur(clamp(2px, 0.125em, 12px));
}

.button-wrap:has(button:active) .button-shadow::after {
top: calc(var(--shadow-cuttoff-fix) - 0.5em);
opacity: 0.75;
}

.button-wrap:has(button:active) span {
text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.12);
}




/* Change placeholder color */
input::placeholder {
color: rgb(226, 226, 226) !important; /* Light gray, change as you like */
opacity: 1; /* Needed for Firefox */
}

/* Optional: for all inputs inside Bootstrap form-control */
.form-control::placeholder {
color: rgb(226, 226, 226) !important;
opacity: 1;
}

/* Change background color when input is focused */
input:focus, 
.form-control:focus {
background-color: rgba(255, 255, 255, 0.2) !important; /* Light blue */
outline: none !important; /* Remove browser outline */
box-shadow: none !important; /* Remove Bootstrap shadow */
}


/* ===== Select background when focused ===== */
select:focus,
.form-select:focus {
background: rgba(255, 255, 255, 0.2) 
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e2e2e2' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.658l-4.796 5.482a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") 
            no-repeat right 0.75rem center / 1rem auto;
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
outline: none !important;
box-shadow: none !important;
color: rgb(226, 226, 226);
}






.dropdown-menu {
    background: rgba(30, 30, 40, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    z-index: 1050;
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu .dropdown-item i {
    width: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-menu .dropdown-item:hover i {
    color: #a78bfa;
}

.dropdown-menu .dropdown-item:active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dropdown-menu .dropdown-item.text-danger {
    color: #f87171;
}

.dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.dropdown-menu .dropdown-item.text-danger i {
    color: #f87171;
}

.dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

.dropdown-item-dummy {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- Language Switcher ---- */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-toggle::after {
    display: none;
}

.lang-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-arrow {
    font-size: 0.55rem;
    opacity: 0.7;
    transition: transform 0.2s;
    order: -1;
}

.lang-toggle[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    min-width: 160px;
}

.lang-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.lang-option .lang-flag {
    width: 22px;
    height: 15px;
}

.lang-option.active {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #fff !important;
}

.lang-check {
    margin-left: auto;
    font-size: 0.75rem;
    color: #818cf8;
}

















.page-title {
  font-weight: 700;
  font-size: 1.8rem;
  color: #d8d8d8;
}


.card {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
  border-radius: 14px;
  border: none;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #c0c0c0;
}

.card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  max-height: 150px;
  overflow-y: auto;
}

.card ul li {
  font-size: 0.92rem;
  padding: 3px 0;
  color: #d1d1d1;
}

.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  
    background: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
    backdrop-filter: blur(15px);
}

.modal-header {
  border-bottom: none;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.modal-title {
  font-weight: 700;
  color: #cfcfcf;
  font-size: 1.3rem;
}

.modal-body {
    background-color: transparent !important;
  padding: 30px;
  border-top: 1px solid #4d4d4d;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding-bottom: 0 !important;
}

.modal-footer {
padding-top: 0 !important;
border-top: none;
}



.profile-info h4 {
color: white;
}

.profile-info p {
color: rgb(172, 172, 172);
}





.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  margin: 0;
}

.login-container {
  position: relative;
  z-index: 2;
  width: min(92vw, 440px);
  max-width: 440px;
  height: auto;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 28px 22px 30px;
  color: #f7f2ff;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
  -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}

.login-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent 30%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-container:hover::before {
  opacity: 1;
}


.login-container #loginForm {
    padding: 0;
}

.Photo {
  display: flex;
  justify-content: center;
  padding: 0 0 16px;
}

.Photo img {
    width: min(20%, 180px);
}

@media (max-width: 600px) {
  .auth-page {
    align-items: center;
  }

  .login-container {
    padding: 24px 18px 26px;
  }

  .Photo img {
    width: min(70%, 160px);
  }
}


#page-loader {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  background: linear-gradient(45deg, #ffffff, rgb(127, 127, 127));
  z-index: 9999;            /* above everything */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#page-loader .loader-image {
  width: 80px;              /* adjust as you like */
  height: auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}




.bg-purple-full {
  background-color: #3f1b91 !important;
  color: white !important;
  transition: 0.2s;
  }
  
  .bg-purple-full:hover {
  background-color: #240c5e;
  color: white;
  }
  
  
  
  
  
  
  
  
  
  /* Basic modal */
  .sync-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  }
  
  .sync-modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  }
  
  .sync-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 32, 0.75);
  backdrop-filter: blur(12px);
  }
  
  .sync-modal-panel {
  position: relative;
  background: rgba(34, 24, 52, 0.92);
  width: min(720px, 92vw);
  margin: 0;
  padding: 24px 26px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #f7f2ff;
  z-index: 10;
  }
  
  /* close */
  .sync-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  }
  
  .sync-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  }
  
  .sync-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  }
  
  /* Steps */
  .sync-steps { display:flex; gap: 10px; align-items: center; margin-bottom: 18px; user-select: none; flex-wrap: wrap; padding-right: 56px; }
  .sync-step { flex:1 1 0; display:flex; align-items:center; gap:12px; padding: 10px 12px; border-radius:10px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); transition: background .15s, border .15s; min-width: 0; height: 56px; }
  .sync-step .step-circle { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:600; background: rgba(255, 255, 255, 0.2); color: #fff; flex-shrink: 0; }
  .sync-step .step-label { font-size: 14px; color: #e7dcff; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sync-step.active { background: linear-gradient(120deg, rgba(217, 206, 255, 0.25), rgba(100, 82, 163, 0.22)); border-color: rgba(255, 255, 255, 0.2); }
  .hidden { display: none; }
  
  .sync-step.active .step-circle {
  background: linear-gradient(180deg, #d9ceff, #6452a3);
  color: #fff;
  }
  /* content pages */
  /* .sync-content { min-height: 160px; } */
  .sync-page { display:block; }
  .sync-page.hidden { display:none; }
  .sync-page h2 { margin: 0 0 8px; font-size: 1.4rem; color: #fff; }
  .sync-page p { margin: 0 0 14px; color: #d6cdef; }
  
  .license-box { margin: 14px 0; }
  .license-value { background: rgba(16, 10, 28, 0.9); color: #e6ddff; padding: 12px; border-radius:10px; white-space: pre-wrap; overflow-x:auto; max-height: 140px; border: 1px solid rgba(255, 255, 255, 0.12); }
  
  .sync-note { font-size: 13px; color:#cbbfe8; margin-bottom:10px; }
  
  .sync-actions { display:flex; gap:10px; margin-top: 12px; flex-wrap: wrap; }
  .sync-modal .btn { padding: 10px 16px; border-radius:10px; border: none; cursor:pointer; background: linear-gradient(270deg, #d9ceff, #6452a3); color:white; font-weight: 600; }
  .sync-modal .btn-muted { background: rgba(255, 255, 255, 0.12); color:#f3efff; border: 1px solid rgba(255, 255, 255, 0.2); }
  .sync-modal .btn-disabled { opacity: 0.6; cursor: not-allowed; }


/* ========== SWEETALERT2 DARK GLASSY THEME ========== */
.swal2-popup {
  background: rgba(30, 30, 40, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.swal2-title {
  color: #fff !important;
  font-weight: 600 !important;
}

.swal2-html-container,
.swal2-content {
  color: rgba(255, 255, 255, 0.8) !important;
}

.swal2-html-container p,
.swal2-html-container span,
.swal2-html-container strong {
  color: rgba(255, 255, 255, 0.88) !important;
}

.swal2-html-container code {
  color: #e9d5ff !important;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.swal2-html-container .license-eye {
  color: #c4b5fd;
}

.swal2-confirm {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
  transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

.swal2-cancel {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  color: #fff !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.swal2-deny {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 10px !important;
  color: #f87171 !important;
  font-weight: 500 !important;
}

.swal2-deny:hover {
  background: rgba(239, 68, 68, 0.3) !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 12px 16px !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.swal2-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.swal2-footer a {
  color: #a78bfa !important;
}

.swal2-footer a:hover {
  color: #c4b5fd !important;
}

.swal2-icon {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.swal2-icon.swal2-success {
  border-color: #4ade80 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(74, 222, 128, 0.3) !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: #4ade80 !important;
}

.swal2-icon.swal2-error {
  border-color: #f87171 !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  background-color: #f87171 !important;
}

.swal2-icon.swal2-warning {
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
}

.swal2-icon.swal2-info {
  border-color: #60a5fa !important;
  color: #60a5fa !important;
}

.swal2-close {
  color: rgba(255, 255, 255, 0.5) !important;
}

.swal2-close:hover {
  color: #fff !important;
}

.swal2-timer-progress-bar {
  background: rgba(139, 92, 246, 0.5) !important;
}

.swal2-validation-message {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border-radius: 8px !important;
}


/* ========== UPLOAD PROGRESS BAR ========== */
.upload-progress-container {
  width: 100%;
  margin: 15px 0;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.upload-progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 10px;
  transition: width 0.3s ease;
  position: relative;
}

.upload-progress-bar .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.upload-progress-text {
  text-align: center;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.progress {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  height: 8px !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa) !important;
  border-radius: 10px !important;
  transition: width 0.3s ease !important;
}


/* ========== SELECT OPTION STYLING ========== */
select,
.form-select {
  background: rgba(255, 255, 255, 0.1)
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e2e2e2' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.658l-4.796 5.482a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E")
              no-repeat right 0.75rem center / 1rem auto !important;
  box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 6px inset;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: rgb(226, 226, 226) !important;
  padding: 10px 40px 10px 14px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

select:hover,
.form-select:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

select option,
.form-select option {
  background-color: #1e1e2e !important;
  color: #e2e2e2 !important;
  padding: 10px !important;
}

select option:hover,
.form-select option:hover,
select option:checked,
.form-select option:checked {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  color: #fff !important;
}


/* ========== DEVICE GLASSY BUTTONS ========== */
.device-action-btn,
.btn-device {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 8px 16px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.device-action-btn:hover,
.btn-device:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

.btn-outline-primary {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  color: #a78bfa !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.btn-outline-primary:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  color: #c4b5fd !important;
}

.btn-outline-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
}

.btn-outline-success {
  background: rgba(74, 222, 128, 0.1) !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
  color: #4ade80 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.btn-outline-success:hover {
  background: rgba(74, 222, 128, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
  color: #86efac !important;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
  transition: all 0.2s ease !important;
}

.btn-danger:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3) !important;
  transition: all 0.2s ease !important;
}

.btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
}


/* ========== NATIVE PROGRESS ELEMENT (Upload Progress on Home) ========== */
progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
  border-radius: 10px;
  transition: width 0.3s ease;
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
  border-radius: 10px;
}

#progressContainer {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#progressText {
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 10px;
}


/* ========== CONTEXT MENU DARK THEME ========== */
#custom-context-menu {
  z-index: 99999 !important;
}

#custom-context-menu ul,
#contextMenuList {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px !important;
  background: rgba(30, 30, 40, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  min-width: 160px !important;
}

#custom-context-menu li,
#contextMenuList li {
  padding: 0 !important;
  margin: 2px 0 !important;
}

#custom-context-menu li a,
#custom-context-menu li button,
#custom-context-menu li.ctx-action,
#contextMenuList li a,
#contextMenuList li button {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: 100% !important;
}

#custom-context-menu li a:hover,
#custom-context-menu li button:hover,
#custom-context-menu li.ctx-action:hover,
#contextMenuList li a:hover,
#contextMenuList li button:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #fff !important;
}

#custom-context-menu li a i,
#custom-context-menu li button i,
#contextMenuList li a i,
#contextMenuList li button i {
  width: 18px !important;
  text-align: center !important;
  color: #a78bfa !important;
}

#custom-context-menu li.ctx-danger a,
#custom-context-menu li.ctx-danger button,
#contextMenuList li.ctx-danger a {
  color: #f87171 !important;
}

#custom-context-menu li.ctx-danger a:hover,
#custom-context-menu li.ctx-danger button:hover,
#contextMenuList li.ctx-danger a:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
}

#custom-context-menu li.ctx-danger i,
#contextMenuList li.ctx-danger i {
  color: #f87171 !important;
}

#custom-context-menu hr,
#contextMenuList hr {
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin: 6px 0 !important;
}


/* ========== LIBRARY UPLOAD BUTTON ========== */
.btn-glass-upload {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.3) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2) !important;
}

.btn-glass-upload:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.4) 100%) !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3) !important;
  color: #fff !important;
}

.btn-glass-upload:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

.btn-glass-upload i {
  color: #c4b5fd !important;
}

.dropdown-menu-glass {
  background: rgba(30, 30, 40, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.dropdown-menu-glass .dropdown-item {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.dropdown-menu-glass .dropdown-item:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #fff !important;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
  border-radius: 10px;
  transition: width 0.3s ease;
  position: relative;
}

.upload-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}


/* ========== DEVICE PAGE GLASSY ACTION BUTTONS ========== */
/* Scoped to devices page only (.full-device-item) */
.full-device-item .info-btn {
  border: none !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.3) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #fbbf24 !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.full-device-item .info-btn:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.4) 100%) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3) !important;
}

.full-device-item .watch-btn {
  border: none !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.3) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #a78bfa !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.full-device-item .watch-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.4) 100%) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3) !important;
}

.full-device-item .edit-btn {
  border: none !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #60a5fa !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.full-device-item .edit-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.4) 100%) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

.full-device-item .power-btn {
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.full-device-item .power-btn.power-on {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(34, 197, 94, 0.3) 100%) !important;
  color: #4ade80 !important;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2) !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

.full-device-item .power-btn.power-on:hover {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.3) 0%, rgba(34, 197, 94, 0.4) 100%) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.3) !important;
}

.full-device-item .power-btn.power-off {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.3) 100%) !important;
  color: #f87171 !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.full-device-item .power-btn.power-off:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.4) 100%) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL PAGE ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes pageEnterUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pageEnterScale {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pageEnterLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pageEnterRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Main page containers ───────────────────────────────────────────────── */

.containers {
    animation: pageEnterUp 0.5s ease-out both;
}

.containers > .media-container {
    animation: pageEnterLeft 0.45s ease-out 0.08s both;
}

.containers > .playlist-container {
    animation: pageEnterUp 0.45s ease-out 0.15s both;
}

.containers > .devices-container {
    animation: pageEnterRight 0.45s ease-out 0.22s both;
}

/* ── Devices page ───────────────────────────────────────────────────────── */

.col.full-device-item {
    animation: pageEnterScale 0.4s ease-out both;
}

.col.full-device-item:nth-child(1)  { animation-delay: 0.03s; }
.col.full-device-item:nth-child(2)  { animation-delay: 0.06s; }
.col.full-device-item:nth-child(3)  { animation-delay: 0.09s; }
.col.full-device-item:nth-child(4)  { animation-delay: 0.12s; }
.col.full-device-item:nth-child(5)  { animation-delay: 0.15s; }
.col.full-device-item:nth-child(6)  { animation-delay: 0.18s; }
.col.full-device-item:nth-child(7)  { animation-delay: 0.21s; }
.col.full-device-item:nth-child(8)  { animation-delay: 0.24s; }
.col.full-device-item:nth-child(9)  { animation-delay: 0.27s; }
.col.full-device-item:nth-child(10) { animation-delay: 0.30s; }
.col.full-device-item:nth-child(n+11) { animation-delay: 0.33s; }

/* ── Users / Logs / System Checks pages ─────────────────────────────────── */

.users-container,
.logs-page-container,
.system-checks-container {
    animation: pageEnterUp 0.5s ease-out both;
}

.users-card,
.logs-card {
    animation: pageEnterScale 0.45s ease-out 0.1s both;
}

.stat-badge {
    animation: pageEnterScale 0.35s ease-out both;
}

.stat-badge:nth-child(1) { animation-delay: 0.05s; }
.stat-badge:nth-child(2) { animation-delay: 0.1s; }
.stat-badge:nth-child(3) { animation-delay: 0.15s; }
.stat-badge:nth-child(4) { animation-delay: 0.2s; }

/* ── Settings page ──────────────────────────────────────────────────────── */

.settings-widget {
    animation: pageEnterScale 0.4s ease-out both;
}

.settings-widget:nth-child(1) { animation-delay: 0.05s; }
.settings-widget:nth-child(2) { animation-delay: 0.10s; }
.settings-widget:nth-child(3) { animation-delay: 0.15s; }
.settings-widget:nth-child(4) { animation-delay: 0.20s; }
.settings-widget:nth-child(5) { animation-delay: 0.25s; }
.settings-widget:nth-child(6) { animation-delay: 0.30s; }

/* ── Account page ───────────────────────────────────────────────────────── */

.account-page .col-md-4,
.account-page .col-md-8 {
    animation: pageEnterUp 0.45s ease-out both;
}

.account-page .col-md-4:nth-child(1) { animation-delay: 0.05s; }
.account-page .col-md-4:nth-child(2) { animation-delay: 0.12s; }
.account-page .col-md-8              { animation-delay: 0.08s; }

/* ── Media items staggered entrance ─────────────────────────────────────── */

.media-item {
    animation: pageEnterScale 0.3s ease-out both;
}

.media-item:nth-child(1)  { animation-delay: 0.02s; }
.media-item:nth-child(2)  { animation-delay: 0.04s; }
.media-item:nth-child(3)  { animation-delay: 0.06s; }
.media-item:nth-child(4)  { animation-delay: 0.08s; }
.media-item:nth-child(5)  { animation-delay: 0.10s; }
.media-item:nth-child(6)  { animation-delay: 0.12s; }
.media-item:nth-child(7)  { animation-delay: 0.14s; }
.media-item:nth-child(8)  { animation-delay: 0.16s; }
.media-item:nth-child(n+9) { animation-delay: 0.18s; }

/* ── Playlist items staggered ───────────────────────────────────────────── */

.dragTo {
    animation: pageEnterUp 0.35s ease-out both;
}

.dragTo:nth-child(1) { animation-delay: 0.05s; }
.dragTo:nth-child(2) { animation-delay: 0.10s; }
.dragTo:nth-child(3) { animation-delay: 0.15s; }
.dragTo:nth-child(4) { animation-delay: 0.20s; }
.dragTo:nth-child(5) { animation-delay: 0.25s; }
.dragTo:nth-child(n+6) { animation-delay: 0.28s; }

/* ── Table rows staggered entrance ──────────────────────────────────────── */

.users-card tbody tr,
.logs-card tbody tr {
    animation: pageEnterUp 0.3s ease-out both;
}

.users-card tbody tr:nth-child(1),
.logs-card tbody tr:nth-child(1) { animation-delay: 0.05s; }
.users-card tbody tr:nth-child(2),
.logs-card tbody tr:nth-child(2) { animation-delay: 0.08s; }
.users-card tbody tr:nth-child(3),
.logs-card tbody tr:nth-child(3) { animation-delay: 0.11s; }
.users-card tbody tr:nth-child(4),
.logs-card tbody tr:nth-child(4) { animation-delay: 0.14s; }
.users-card tbody tr:nth-child(5),
.logs-card tbody tr:nth-child(5) { animation-delay: 0.17s; }
.users-card tbody tr:nth-child(n+6),
.logs-card tbody tr:nth-child(n+6) { animation-delay: 0.20s; }

/* ── Cards generic entrance ─────────────────────────────────────────────── */

.card {
    animation: pageEnterScale 0.4s ease-out 0.05s both;
}

/* ── Nav links polish ───────────────────────────────────────────────────── */

.nav-link {
    position: relative;
    transition: all 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2196F3, #64B5F6);
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

/* ── Button press micro-interaction ─────────────────────────────────────── */

.btn,
button:not(.swal2-styled):not(.device-pill) {
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active,
button:not(.swal2-styled):not(.device-pill):active {
    transform: scale(0.97);
}

/* ── Tooltip / hover cards lift ─────────────────────────────────────────── */

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ── SweetAlert entrance only (do NOT override hide animations) ─────────── */

.swal2-popup.swal2-show {
    animation: pageEnterScale 0.3s ease-out;
}

/* ── Smooth focus rings ─────────────────────────────────────────────────── */

input:focus,
select:focus,
textarea:focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ── Respect prefers-reduced-motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   Device Settings Modal
   ══════════════════════════════════════════════════════════════════════════ */

.ds-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.ds-modal.show {
    display: flex;
}

.ds-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: dsFadeIn 0.2s ease;
}

.ds-modal-panel {
    position: relative;
    z-index: 1;
    width: 94%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: rgba(30, 30, 50, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: dsSlideUp 0.3s ease;
    overflow: hidden;
}

.ds-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-modal-header h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ds-modal-header h5 i {
    color: #a78bfa;
    font-size: 18px;
}

.ds-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}
.ds-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.ds-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.ds-section {
    margin-bottom: 20px;
}

.ds-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-bottom: 8px !important;
}

.ds-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.ds-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.ds-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.ds-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ds-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* Availability pills */
.ds-pills {
    display: flex;
    gap: 10px;
}
.ds-pill {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.ds-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}
.ds-pill.active[data-mode="always_on"] {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.12);
    color: #81C784;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.1);
}
.ds-pill.active[data-mode="custom_schedule"] {
    border-color: #42A5F5;
    background: rgba(33, 150, 243, 0.12);
    color: #90CAF9;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.1);
}

/* Schedule section */
.ds-schedule-section {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ds-timezone {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}
.ds-timezone i {
    margin-right: 6px;
    color: #a78bfa;
}

.ds-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ds-preset {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ds-preset:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

/* Day rows */
.ds-days {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ds-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}
.ds-day-row:hover {
    background: rgba(255, 255, 255, 0.06);
}
.ds-day-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    min-width: 40px;
}
.ds-time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ds-time-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ds-time-group label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35) !important;
    margin: 0 !important;
    text-transform: uppercase;
}
.ds-time-input {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    width: 110px;
}
.ds-time-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12);
}
.ds-time-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* Footer */
.ds-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ds-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}
.ds-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.ds-btn-save {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.ds-btn-save:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

/* Animations */
@keyframes dsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes dsSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Light theme overrides */
body[data-theme="light"] .ds-modal-panel {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}
body[data-theme="light"] .ds-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .ds-modal-header h5 {
    color: #1e1e2e;
}
body[data-theme="light"] .ds-close-btn {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.4);
}
body[data-theme="light"] .ds-label {
    color: rgba(0, 0, 0, 0.5) !important;
}
body[data-theme="light"] .ds-input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e1e2e;
}
body[data-theme="light"] .ds-row {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .ds-hint {
    color: rgba(0, 0, 0, 0.4);
}
body[data-theme="light"] .ds-pill {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.5);
}
body[data-theme="light"] .ds-day-row {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}
body[data-theme="light"] .ds-day-name {
    color: #1e1e2e;
}
body[data-theme="light"] .ds-time-input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e1e2e;
}
body[data-theme="light"] .ds-time-sep {
    color: rgba(0, 0, 0, 0.2);
}
body[data-theme="light"] .ds-preset {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.5);
}
body[data-theme="light"] .ds-btn-cancel {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .ds-modal-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .ds-timezone {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.45);
}
body[data-theme="light"] .ds-time-group label {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Mobile responsive */
@media (max-width: 540px) {
    .ds-modal-panel {
        width: 98%;
        max-height: 95vh;
        border-radius: 16px;
    }
    .ds-pills {
        flex-direction: column;
    }
    .ds-time-inputs {
        flex-wrap: wrap;
        gap: 4px;
    }
    .ds-day-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ds-presets {
        gap: 6px;
    }
}

