:root {
  --video-grid-max-width: 100%;
}

body {
  max-width: 100%;
  margin: 1rem;
  padding: 0;
  background: #eeeeee;
}

button.btn--green {
  color: #fff;
  color: var(--md-button-join-text-color, #fff);
  background-color: #00ab50;
  background-color: var(--md-button-join-bg-color, #00ab50);
  border-color: transparent;
}

button.btn--green:disabled {
  opacity: 0.5;
}

button.btn--red {
  color: #fff;
  color: var(--md-button-cancel-text-color, #fff);
  background-color: #f7644a;
  background-color: var(--md-button-cancel-bg-color, #f7644a);
  border-color: transparent;
}

.btn--red:disabled,
.btn--green:disabled {
  opacity: 0.5;
}

button.btn-code {
  font-family: Consolas, Liberation Mono, Courier, monospace;
}

.container {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.box {
  max-width: 70rem; 
  margin-inline: auto;
  margin-bottom: 1rem;
}

.section-box {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0rem 1rem;
  overflow: hidden;
  box-shadow: 1px 1px 5px 1px #dddddd;
}

.section-box h2 {
  margin: 0.5rem 0rem;
  font-size: 1.25rem;
  font-weight: 400;
}

.section-wide {
  width: 100%;
}

.collapsible {
  cursor: pointer;
}

.section-content {
  height: auto;
}

.collapsed {
  height: 0;
}

.join-meeting-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* border: 10px solid black */
} 

.video-section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.screenshare-section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.status-par {
  padding: 0.5rem;
  background-color: #eeeeee;
  margin: 0.2rem;
  border-radius: 6px;
}

#participant-table {
  max-height: 400px;
  overflow: auto;
}

#events-list {
  max-height: 200px;
  overflow: auto;
}

.multistream-videos-container {
  display: flex;
  flex-direction: column;
}

.multistream-videos-container video {
  border-radius: 0.5rem;
}

.video-grid-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
}

.video-container,
.audio-container,
.screenshare-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0.4rem;
}

.multistream-remote-video {
  z-index: 0;
}
.video-label {
  z-index: 2;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  text-align: center;
  color: black;
  background-color: rgba(255,255,255,0.5);
}

.video-overlay {
  z-index: 1;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  align-content: center;
  border-radius: 0.5rem;
  background-color: lightgray;
}

.video-overlay-text {
  color: black;
  width: 100%;
  text-align: center;
}

.speaking {
  background-color: rgba(94, 217, 248, 0.5);
}

.clickable {
  cursor: pointer;
}

.grid-video {
  max-width: var(--video-grid-max-width);
}

.big-video {
  max-width: 100%;
}

.small-video {
  max-width: 18%;
}

.multistream-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage {
  min-height: 30rem;
}

.stageThumbnails {
  min-height: 7rem;
}

.stage-control-wrapper {
  display: flex;
  align-items: center;
}

.stage-control-wrapper span {
  margin-right: 0.5rem;
}

.prefer-live-video {
  display: flex;
}

.prefer-live-video span {
  margin-top: 1rem;
  margin-right: 0.5rem;
}

/* Utilities */

.flex {
  display: flex;
}
.flex--wrap {
  flex-wrap: wrap;
}
.flex--center {
  justify-content: center;
}

.flex--align-center {
  align-items: center;
}

/* Margin utils */
.u-m {
  margin: 1rem !important;
}

.u-mv {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.u-mb {
  margin-bottom: 1rem !important;
}

.u-mt {
  margin-top: 1rem !important;
}

.u-ml {
  margin-left: 1rem;
}

/* Padding Utils */
.u-p {
  padding: 1rem !important;
}

.u-pv {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.u-pb {
  padding-bottom: 1rem !important;
}

.u-pt {
  padding-top: 1rem !important;
}

/* Misc Styles */
.note {
  padding: 1rem 0;
  margin: 0.8rem 0;
  background: rgba(232, 232, 232, 0.4);
  padding: 1rem;
  border-radius: 6px;
  color: #555;
}

.transcription {
  display: flex;
  flex-direction: column;
}
.transcription textarea {
  width: 100%;
  min-height: 10rem;
}

.device-type-label {
  width: 125px;
  display: inline-block;
}

.context-info {
  width: 200px;
  display: inline-block;
}

.meeting-list {
  list-style-type: none;
}

/* Container - Docs / Streams Fixed */
.container {
  display: flex;
  width: 100%;
  gap: 1rem;
  flex-direction: row;
}

.docs {
  overflow: auto;
}

.hidden {
  display: none;
}

.media-button-label {
  flex: 0.25;
  font-weight: 500;
  color: #b70303;
}

.media-select {
  flex: 0.15;
  margin-right: 1rem;
}

.media-button {
  flex: 0.5;
  width: 23rem;
}

h2 {
  color: #0052bf;
}

legend {
  font-size: 1.05rem;
  color: #1a73e8;
}

.video-container {
  position: relative;
}

.video-resolution {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  opacity: 0.75;
  user-select: none;
  color: #083f88;
  background-color: rgb(255 255 255);
  padding: 0.3rem;
}

.webex-warning {
  color: #7d4705;
}

.webex-error {
  color: #de3434;
}

.arrow {
  font-weight: 500;
  font-size: 1.75rem;
  float: right;
  margin-top: -2px;
}


.global-toggle-btn-wrapper {
  display: flex;
  justify-content: end;
  margin: -0.5rem auto;
  position: sticky;
  top: 0;
  z-index: 1;
}

.global-toggle-btn {
  width: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background-color: white;
  color: #0052bf;
  border: #0052bf 1px solid;
  box-shadow: 3px 3px 4px 1px rgb(0 0 0 / 40%);
}

.global-toggle-btn:hover {
  border: #1a73e8 1px solid;
  background-color: whitesmoke
}

.global-toggle-btn:focus {
  box-shadow: 3px 3px 4px 1px rgb(0 0 0 / 40%);
}

#voicea-transcription-formatted-display{
  max-height: 200px;
  overflow: auto;
  padding: 0.5rem;
  background-color: #eeeeee;
  margin: 0.2rem;
  border-radius: 5px;
}

.inline-code{
  background-color:lightgrey;
  border-radius:5px;
  padding: 0 2px;
}

.keypad {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
}
.keypad input {
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.key {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: white;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
}

.call-btn {
  margin-top: 10px;
  background: green;
  color: white;
  padding: 10px 20px;
  border-radius: 50%;
  cursor: pointer;
}

.dropdown {
  margin-top: 10px;
}

.task-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  font-size: 14px;
  color: #333;
}

.task-item-content p {
  margin: 0;
  flex: 1;
}

.task-item-content button {
  margin-left: 10px;
  padding: 5px 10px;
  font-size: 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.accept-task {
  background-color: #4caf50;
  color: white;
}

.decline-task {
  background-color: #f44336;
  color: white;
}

.task-separator {
  border: none;
  border-top: 1px solid #ccc;
  margin: 5px 0;
}

.task-item.selected {
  background-color: #e6f7ff;
  border-left: 3px solid #1890ff;
  font-weight: bold;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.hidden {
  display: none;
}

.transcript-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 12px;
}

.transcript-tabs {
  align-items: center;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.transcript-tab {
  background: transparent;
  border: 0;
  color: #5a5a5a;
  cursor: pointer;
  font-weight: 600;
  padding: 4px 8px;
}

.transcript-tab.active {
  border-bottom: 2px solid #0f172a;
  color: #111827;
}

.transcript-clear-btn {
  margin-left: auto;
  padding: 3px 10px;
}

.transcript-pane {
  background: #f7f7f8;
  border-radius: 8px;
  height: 380px;
  overflow-y: auto;
  padding: 12px;
}

.transcript-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transcript-item {
  display: flex;
  gap: 10px;
}

.transcript-avatar {
  align-items: center;
  background: #e5e7eb;
  border-radius: 50%;
  color: #111827;
  display: flex;
  flex: 0 0 34px;
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  margin-top: 2px;
  width: 34px;
}

.transcript-meta {
  color: #4b5563;
  font-size: 12px;
  margin-bottom: 2px;
}

.transcript-time {
  color: #2563eb;
  margin-left: 8px;
  text-decoration: underline;
}

.transcript-content {
  color: #111827;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.transcript-empty {
  color: #6b7280;
  font-size: 13px;
  padding: 4px 0;
}

.assistant-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 16px;
}

.assistant-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 320px;
  min-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

.assistant-request {
  align-self: flex-end;
  background: #111;
  border-radius: 12px;
  color: #fff;
  max-width: 85%;
  padding: 10px 14px;
}

.assistant-suggestion-card {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 14px;
}

.assistant-suggestion-card__title {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.assistant-suggestion-card__body {
  color: #1f2937;
  line-height: 1.5;
  white-space: pre-wrap;
}

.assistant-suggestion-card__meta {
  color: #4b5563;
  font-size: 12px;
  margin-top: 10px;
}

.assistant-listening {
  align-items: center;
  color: #111827;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
}

.assistant-listening__dots {
  display: inline-flex;
  gap: 4px;
}

.assistant-listening__dots span {
  animation: assistant-pulse 1.2s infinite ease-in-out;
  background: #2fb3ff;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.assistant-listening__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes assistant-pulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.assistant-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

.assistant-action-btn {
  border-radius: 999px;
  min-width: 180px;
}

.assistant-raw-btn {
  min-width: 160px;
}

.assistant-raw-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.assistant-raw-output {
  background: #111827;
  border-radius: 8px;
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
}

.assistant-raw-output__content {
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-context-input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 12px 14px;
  width: 100%;
}

.assistant-context-row {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.assistant-context-btn {
  flex: 0 0 auto;
  min-width: 120px;
}

.assistant-error {
  color: #b42318;
  font-size: 13px;
}

.task-controls-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.task-controls-card {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-sizing: border-box;
  flex: 1 1 320px;
  min-width: 320px;
  padding: 12px;
}

.task-controls-card.is-active {
  border-color: #1890ff;
  box-shadow: 0 0 0 1px rgba(24, 144, 255, 0.15);
}

.task-controls-card__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.task-controls-card__title {
  font-size: 15px;
  font-weight: 700;
}

.task-controls-card__badge {
  background: #eef6ff;
  border-radius: 999px;
  color: #0052cc;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
}

.task-controls-card__meta {
  color: #595959;
  font-size: 12px;
  margin-bottom: 10px;
}

.task-controls-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-controls-card__actions button {
  min-width: 110px;
}

#hold-resume,
#mute-unmute,
#consult,
#transfer,
#end-consult,
#consult-transfer,
#merge-conference,
#exit-conference,
#transfer-conference,
#switch-to-main,
#switch-to-consult,
#end {
  display: none !important;
}
