/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1263b3; /* Dark Blue */
    text-align: center;
    color: #ffffff;
    padding-top: 60px; /* Adjust this to match header height */
}

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    background-color: #f1f1f1; /* Light grey */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
    z-index: 1000;
}

header h1 {
    font-size: 2em;
    margin: 0;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    table {
        font-size: 12px; /* Even smaller font */
    }
    th, td {
        padding: 3px;
    }
}

/* Main Container */
.container {
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    background: #2C2C2C; /* Darker gray for depth */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 74, 74, 0.3); /* Subtle red glow */
    text-align: left;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    word-wrap: break-word;
    border: none;
}

@media (max-width: 600px) {
    .top-right-menu {
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }
  }
  

/* Buttons */
.button-group {
    text-align: center;
    margin-bottom: 20px;
}

button {
    font-size: 18px;
    padding: 12px 24px;
    margin: 10px;
    background-color: #FF4A4A; /* Converspeech Red */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover:not(:disabled) {
    background-color: #D93C3C; /* Darker Red */
    transform: scale(1.05);
}

button:disabled {
    background-color: #555; /* Disabled Gray */
    cursor: not-allowed;
}

/* Stop Button */
button#stopButton:enabled {
    background-color: #F44336; /* Strong Red */
}

#logoutBtn {
    margin-top: 0 !important;  /* ✅ Remove extra spacing */
    vertical-align: middle;    /* ✅ Align it properly */
}

#dashboardOverlay {
    display: none !important;
}

/* Recognition Status */
#recognitionStatus {
    height: auto;
    min-height: 50px;
    font-size: 18px;
    margin-top: 20px;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-y: auto;
    max-height: 300px;
    background: #1B1B1B;
    padding: 10px;
    border-radius: 8px;
    color: white;
    border-left: 5px solid #FF4A4A;
}

/* ✅ Ensure the graph is centered */
#emotionChartContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#emotionGraph {
    max-width: 50%; /* ✅ Make the graph smaller */
    max-height: 200px; /* ✅ Limit graph height */
    display: none; /* ✅ Hide graph initially */
}


@keyframes turboSpin {
  0%   { transform: rotate(0deg);     animation-timing-function: ease-in; }
  50%  { transform: rotate(180deg);   animation-timing-function: ease-out; }
  100% { transform: rotate(360deg);   animation-timing-function: ease-in; }
}

.turbo-spinner {
  font-size: 48px; /* smaller than jumbo */
  animation: turboSpin 1s infinite;
  display: inline-block;
}


/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

footer a {
    color: #FF4A4A;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/* Simple hover tooltip */
.has-tip {
  position: relative;
  cursor: help;
}

.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  white-space: pre-line;     /* allows \n line breaks */
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;
  min-width: 180px;
  max-width: 280px;
}

.has-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 115%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,0.85);
  opacity: 0;
  transition: opacity .15s ease;
}

.has-tip:hover::after,
.has-tip:hover::before {
  opacity: 1;
}

