.slider-container {
  position: relative;
  width: 100%;
  height: 3px;
  background: #e7e7e7; /* Light grey track */
  border-radius: 1.5px;
}
.slider-fill {
  height: 100%;
  background: #bdbdbd; /* Darker grey for filled portion */
  border-radius: 1.5px;
  transition: width 0.2s ease;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #ffffff; /* White thumb */
  border: 2px solid #bdbdbd; /* Grey border */
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.slider-thumb:hover {
  transform: translate(-50%, -50%) scale(1.2);
}
.slider-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #bdbdbd; /* Grey dot */
  border-radius: 50%;
}

.diagonal-line {
  position: relative;
  width: 100%;
  height: 85%;
  overflow: hidden;
}
.diagonal-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 141.42%;
  height: 1px;
  background: #000000;
  transform: rotate(45deg);
  transform-origin: top left;
}

.custom-shadow {
  box-shadow: 0 4px 3px 0px rgba(130, 132, 134, 0.3);
}

.custom-shadow2 {
  box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.3);
}

input:focus {
  outline: none;
  box-shadow: none;
}

.dual-gradient {
  background: linear-gradient(
      to bottom right,
      rgba(239, 246, 255, 0.9),
      rgba(161, 180, 204, 0.9)
    ),
    linear-gradient(
      to top right,
      rgba(239, 246, 255, 0.9),
      rgba(161, 180, 204, 0.9)
    );
}

.peer:checked ~ .peer-checked\:bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: #585a96;
}

/* Teams Chat Panel Styles */
.chat-panel {
  width: 360px;
  min-width: 360px;
  height: calc(100% - 8px);
  margin: 4px 4px 4px 0;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.active {
  display: flex;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #E0E0E0;
  background: #FAFAFA;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-title {
  font-size: 14px;
  font-weight: 600;
  color: #242424;
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  color: #616161;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.chat-header-btn:hover {
  background: #E8E8E8;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}

.chat-welcome-icon {
  width: 48px;
  height: 48px;
}

.chat-welcome-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-welcome-title {
  font-size: 14px;
  font-weight: 600;
  color: #242424;
}

.chat-welcome-subtitle {
  font-size: 12px;
  color: #616161;
}

.chat-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.chat-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5B5FC7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.chat-message-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 44px);
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-message-sender {
  font-size: 12px;
  font-weight: 600;
  color: #242424;
}

.chat-message-time {
  font-size: 11px;
  color: #616161;
}

.chat-message-text {
  font-size: 14px;
  color: #242424;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message.sent {
  flex-direction: row-reverse;
}

.chat-message.sent .chat-message-content {
  align-items: flex-end;
}

.chat-message.sent .chat-message-header {
  flex-direction: row-reverse;
}

.chat-input-container {
  border-top: 1px solid #E0E0E0;
  padding: 8px;
  background: #FAFAFA;
}

.chat-input-toolbar {
  display: flex;
  gap: 2px;
  padding: 4px 8px;
  border-bottom: 1px solid #E8E8E8;
  margin-bottom: 8px;
}

.chat-toolbar-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  color: #616161;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.chat-toolbar-btn:hover {
  background: #E8E8E8;
  color: #242424;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  padding: 8px 12px;
}

.chat-input-wrapper:focus-within {
  border-color: #5B5FC7;
  box-shadow: 0 0 0 1px #5B5FC7;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: #242424;
}

.chat-input::placeholder {
  color: #A0A0A0;
}

.chat-send-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #5B5FC7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.chat-send-btn:hover {
  background: #E8EBFA;
}

.chat-send-btn:disabled {
  color: #A0A0A0;
  cursor: default;
}

.chat-send-btn:disabled:hover {
  background: transparent;
}

/* Chat toggle active state */
#chat-toggle.chat-active {
  background: #E8EBFA;
  border-radius: 4px;
  padding: 4px 8px;
  margin: -4px -8px;
}

#chat-toggle.chat-active svg {
  color: #5B5FC7;
}

#chat-toggle.chat-active span {
  color: #5B5FC7;
}

@media only screen and (max-width: 430px) {
  .container {
    width: 95% !important;
    min-height: 744px;
  }

  .button-container {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media only screen and (max-width: 745px) {
  .icon5 {
    display: none !important;
  }
}

@media only screen and (max-width: 700px) {
  .icon2 {
    display: none !important;
  }
}

@media only screen and (max-width: 635px) {
  .icon1 {
    display: none !important;
  }
}

@media only screen and (max-width: 585px) {
  .icon4 {
    display: none !important;
  }
}

@media only screen and (max-width: 530px) {
  .icon3 {
    display: none !important;
  }
}

@media only screen and (max-width: 485px) {
  .icon-text {
    display: none !important;
  }
}

@media only screen and (max-width: 485px) {
  .icon-row {
    gap: 12px;
  }
  #time {
    font-size: 12px;
  }
  .time-container {
    gap: 12px;
  }
}

/* Chat panel responsive */
@media only screen and (max-width: 900px) {
  .chat-panel {
    position: absolute;
    right: 4px;
    top: 64px;
    height: calc(100% - 68px);
    z-index: 100;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  }
}

@media only screen and (max-width: 500px) {
  .chat-panel {
    width: calc(100% - 8px);
    min-width: unset;
    left: 4px;
    right: 4px;
    top: auto;
    bottom: 4px;
    height: 50%;
    max-height: 320px;
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .chat-messages {
    padding: 12px;
  }
  
  .chat-welcome {
    padding: 20px 12px;
  }
  
  .chat-welcome-icon {
    width: 36px;
    height: 36px;
  }
  
  .chat-welcome-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .chat-input-toolbar {
    display: none;
  }
}
