.error{
    color: red  !important;
}
.spinner-border{
    width: 14px !important;
    height: 14px !important;
}
.hideClass{
    display: none !important;
}

/* Full-screen overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Black transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  /* Loader styling */
  .loader {
        border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 70px;
    height: 70px;
    animation: spin 2s linear infinite;
  }

  /* Keyframes for loader animation */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .time-widget {
    background-image: url('../images/logo-bg.svg');
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  }
  .date-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
  }
  .time-text {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
  }
  
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .media-popup {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 90%;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: red;
  }

  .audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-controls button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.audio-controls svg {
    width: 40px;
    height: 40px;
}

audio {
    outline: none;
}


.write-response {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.form-control-write {
  border: none;
  outline: none;
  flex: 1;
  font-size: 16px;
  padding: 8px;
  background: transparent;
}

.icon-button {
  background: #f5f5f5;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  color: black;
}

.icon-button:hover {
  background: #e0e0e0;
}

.mic-button {
  background: black;
  color: white;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mic-button:hover {
  background: #333;
}

#send-btn img {
  width: 24px;
  height: 24px;
}
/* Style for the mic button */
.btn-dark.rounded-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: black;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.btn-dark.rounded-circle:hover {
    background-color: #333;
    transform: scale(1.1);
}

/* Active (clicked) effect */
.btn-dark.rounded-circle:active {
    transform: scale(0.95);
}

/* Focus outline */
.btn-dark.rounded-circle:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* SVG Styling */
#voice-btn {
    transition: transform 0.2s ease;
}

/* Animate the SVG on hover */
.btn-dark.rounded-circle:hover #voice-btn {
    transform: rotate(10deg);
}

/* Mic icon animation when button is clicked */
.btn-dark.rounded-circle:active #voice-btn {
    transform: scale(0.9);
}

.chart-container {
  max-width: 500px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.chart-wrapper {
  display: flex;
  align-items: center;
}
.custom-legend {
  margin-left: 20px;
}