: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;
}

.multistream-buttons select {
  /* margin: 0 0.5rem; */
}

.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;
}

/* IVR Transcript Conversation Styles */
.ivr-conversation-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-height: 800px;
  overflow-y: auto;
}

.ivr-conversation-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e1e8ed;
}

.ivr-conversation-header h4 {
  color: #0052bf;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ivr-conversation-header h4:before {
  content: "💬";
  font-size: 1.3rem;
}

.ivr-row {
  display: flex;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease-out;
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ivr-row.customer {
  justify-content: flex-end;
  padding-left: 60px;
}

.ivr-row.agent {
  justify-content: flex-start;
  padding-right: 60px;
}

.ivr-message-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  line-height: 1.4;
}

.ivr-row.customer .ivr-message-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.ivr-row.agent .ivr-message-bubble {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-bottom-left-radius: 4px;
  margin-right: auto;
}

.ivr-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 600;
}

.ivr-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.ivr-row.customer .ivr-avatar {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  order: 2;
}

.ivr-row.agent .ivr-avatar {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  /* order: 1;
  margin-right: 8px; */
}

.ivr-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ivr-row.customer .ivr-label {
  color: #3651c9;
  order: 1;
}

.ivr-row.agent .ivr-label {
  color: #f5576c;
  order: 2;
}

.ivr-time {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: normal;
}

.ivr-msg {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Speech bubble arrows */
.ivr-row.customer .ivr-message-bubble:after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: #764ba2;
  border-right: none;
  border-bottom: none;
}

.ivr-row.agent .ivr-message-bubble:after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: #f5576c;
  border-left: none;
  border-bottom: none;
}

/* Scrollbar styling */
.ivr-conversation-container::-webkit-scrollbar {
  width: 6px;
}

.ivr-conversation-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.ivr-conversation-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
}

.ivr-conversation-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Empty state */
.ivr-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.ivr-empty-state i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 16px;
  display: block;
}

.ivr-empty-state p {
  margin: 0;
  font-style: italic;
}

/* Loading state */
.ivr-loading {
  text-align: center;
  padding: 40px 20px;
  color: #3b82f6;
  font-weight: 500;
}

.ivr-loading i {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 16px;
  display: block;
}

.ivr-loading .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error state */
.ivr-error {
  text-align: center;
  padding: 40px 20px;
  color: #dc2626;
  font-weight: 500;
}

.ivr-error i {
  font-size: 2.5rem;
  color: #dc2626;
  margin-bottom: 16px;
  display: block;
}

.ivr-error p {
  margin: 0;
  font-style: italic;
}

/* Status indicators */
.ivr-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 10px 0;
  text-align: center;
}

.ivr-status.loading {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #8b5cf6;
}

.ivr-status.success {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #059669;
}

.ivr-status.error {
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
  color: #dc2626;
}

/* Responsive design */
@media (max-width: 768px) {
  .ivr-row.customer {
    padding-left: 20px;
  }
  
  .ivr-row.agent {
    padding-right: 20px;
  }
  
  .ivr-message-bubble {
    max-width: 85%;
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  
  .ivr-conversation-container {
    padding: 15px;
  }
}