@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 :root {
  --calleo-beige: #fafadd;
  --calleo-pink: rgb(253, 157, 155);
  --calleo-text-blue: #7ccaee;
  --calleo-button-pink: #f3747c;
  --calleo-button-blue: #0047AB;
  --calleo-button-beige: #fbf6f0;
  --calleo-button-green: #5F9EA0;
  --calleo-button-pinkish: #fee3e2;
}

@font-face {
  font-family: 'GlacialIndifference';
  src: url(/GlacialIndifference-Regular.otf) format("opentype");
}

@font-face {
  font-family: 'GlacialIndifferenceBold';
  src: url(/GlacialIndifference-Bold.otf) format("opentype");
}

body {
  font-family: 'Poppins', sans-serif;
}


@layer utilities {
  /* Hide scrollbar for Chrome, Safari and Opera */
  .no-scrollbar::-webkit-scrollbar {
      display: block;
  }
 /* Hide scrollbar for IE, Edge and Firefox */
  .no-scrollbar {
      -ms-overflow-style: block;  /* IE and Edge */
      scrollbar-width: block;  /* Firefox */
}
}

hr {
  border-top: 1px solid black !important;
  margin: 10px 0;
  width: 100%;
}

.calleo-pagewrapper {
  display: flex;
  width: 100%;
  padding-bottom: 50px;
}

.calleo-pagecontainer {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1500px;
  margin-left: calc((100vw - 1500px) / 2);
  margin-right: calc((100vw - 1500px) / 2);
  overflow: auto;
}



@media (max-width: 1500px) {
  .calleo-pagecontainer {
    left: 0px;
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (max-width: 1024px) {
  .calleo-pagecontainer {
    margin-left: 30px;
    margin-right: 30px;
    left: 0px;
  }
}

@media (max-width: 768px) {
  .calleo-pagecontainer {
    margin-left: 30px;
    margin-right: 30px;
    left: 0px;
  }

}

@media (max-width: 480px) {
  .calleo-pagecontainer {
    margin-left: 20px;
    margin-right: 20px;
    left: 0px;
  }
}


header {
    background: #fbf6f0;
    height: 100px;
}

header .calleo-title {

}

header .calleo-title__svg {
  fill: #1a1a1a;
}

.calleo-link {
  color: blue;
  text-decoration: underline;
}

.calleo-bigbutton {
  border-radius: 25px;
  color: #1a1a1a;
  min-width: 150px;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 10px;
  font-size: 24px;
}

.cursor-pointer {
  cursor: pointer;
}

.calleo-medbutton {
  font-weight: bold;
  border-radius: 25px;
  color: #1a1a1a;
  min-width: 150px;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 24px !important;
}

.calleo-button-pink {
  background: var(--calleo-button-pink);
}

.calleo-button-blue {
  background: var(--calleo-button-blue);
  color: white;
}

.calleo-login-button {
  font-weight: bold;
  margin-top: 10px; 
  margin-bottom: 10px; 
  font-size: 14px; 
  cursor: pointer;
}

.calleo-button-blue:hover {
  background: #3362a3;
  transition: 0.3s;
}

.calleo-button-beige {
  background: var(--calleo-button-beige);
}

.calleo-button-beige:hover {
  background: #f8f2c5;
  transition: 0.3s;
}

.calleo-button-green {
  background: var(--calleo-button-green);
}

.calleo-button-pinkish {
  background: var(--calleo-button-pinkish);
}

.calleo-button-pinkish:hover {
  background: #fdcbc9;
  transition: 0.3s;
}

.calleo-button-inactive {
  background: #808080 !important;
}

.dashboard-buttons {
  color: #fff;
}

.update-client {
  margin-bottom: 50px;
}

.update-client-portal {
  margin-top: 50px;
}

/** navbar **/
.header-logo {
  display: block;
  vertical-align: bottom;
  position: relative;
  flex-grow: 0;
  height: 100%;
  overflow: visible;
}

.calleo-title-inner {
  height: 100px;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 480px) {
  .header-logo {
    display: none;
  }
  .calleo-title-inner {
    justify-content: center;
  }
}

/** login **/
.calleo-login-container {
  margin-top: 150px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-input {
  max-width: 300px;
  border-radius: 25px;
  font-size: 12px;
  background: #eee;
  border: 0px;
}

.login-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
}

.login-labels {
  width: 100px;
  text-align: left;
  font-size: 14px;
  display: block;
  height: 100%;
  position: relative;
  height: 100%;
  margin: auto;
  margin-bottom: 10px;
}



@media (max-width: 480px) {
  .login-item  {
    flex-direction: column;
  }
  .login-labels {
    width: auto;
  }
}


/** dashboard **/
.calleo-dashboard-table {
  margin-top: 50px;
}

.calleo-dashboard-table tr {
  height: 50px;
  text-align: center;
}

.calleo-dashboard-table td {
  padding-top: 20px;
  padding-bottom: 20px;
}

.client-destroy-table td {
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

.client-destroy-table svg {
  margin: auto;
}

.calleo-edituser-table td {
  padding-top: 20px;
  padding-bottom: 20px;
  border: 1px solid black;
  min-width: 300px; text-align: left; font-weight: bold; font-size: 24px; text-align: center;
}

.calleo-edituser-table input {
  border: none;
  width: 100%;
}

.calleo-edituser-table input[type="text"]:focus{
  box-shadow: 0 0 0 rgb(255, 255, 255);
}

.calleo-edituser-table input[type="date"]:focus{
  box-shadow: 0 0 0 rgb(255, 255, 255);
}

.calleo-edituser-table input[type="email"]:focus{
  box-shadow: 0 0 0 rgb(255, 255, 255);
}

.static-underlay-body {
  height: 100vh;
  overflow-y: hidden;
}

.delete-check-unchecked {
  fill: #ddd;
}

.delete-check-checked {
  fill: #000;
}

.deactivated-modal-button {
  opacity: 0.3;
}


.custom-file-input {
  display: inline-block;
  color: #333;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  border-radius: 25px;
  background: #fff;
  width: 400px;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 10px;
  font-size: 24px;
  transition: background-color 0.3s ease;
}

.custom-file-input:hover {
  background: #ccc;
}

.custom-file-input:focus {
  border: 0px;
}

/* Hide the default file input text */
.custom-file-input::-webkit-file-upload-button {
  visibility: hidden;
}

.custom-file-input[type="file"]::-webkit-file-upload-button {
  font-size: 0; /* Set font size to zero */
  outline: none;
  /** line-height: 0; /* Set line height to zero */
}

input[type="file"]:focus {
  outline: none;
}

/* Style the pseudo button label */
.custom-file-input::before {
  content: 'Upload mp3';
  display: inline-block;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 0px;
  font-size: 24px;
  border-radius: 25px;
  color: #fff;
  background: var(--calleo-button-green);
  cursor: pointer;
}

/* Adjust the label appearance on hover */
.custom-file-input:hover::before {
  background: var(--calleo-button-green);
}



.components-grid {
  display: grid;
  grid-column-gap: 1.4em;
  grid-template-columns: auto;
  grid-template-rows: auto;
}


@media only screen and (min-width: 70em) {
  .components-grid {
      grid-template-columns: 3fr 9fr;
  }
}

.terminal-logo {
  width: 100%;
}

.terminal-logo > li {
  float: right;
}

/* audio files */
/* Play/Pause Button */
/* Play Button Icon */

.as-play-button-container {
  position: relative;
  height: 3em;
  width: 3em;
  margin: 3px;
  flex-shrink: 0;
}

.as-play-button-overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

.as-play-button {
  position: absolute;
  left: 0;
  top: 0;
  vertical-align: top;
  float: left;
  background-color: transparent;
  opacity: 0;
}

.as-play-button-fadein {
  opacity: 1;
  transition: opacity 1s ease-in;
}

.as-play-button > svg {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  cursor: pointer;
  vertical-align:bottom;
}

.as-play-button__svg {
  border: 2px solid #6b7574;
  transition-duration: 0.4s;
}

.as-play-button__svg:hover {
  border: 2px solid #fff;
}

.as-play-button svg:hover {
  background-color: #6b7574;
}

.as-play-button__pause-bars {
  fill: #6b7574;
  display: none;
}
.as-play-button svg:hover .as-play-button__pause-bars{
  fill: #fff;
}

.as-play-button__triangle {
  fill: #6b7574;
  stroke: #6b7574;
  stroke-width:17;
  stroke-linejoin:round;
}
.as-play-button svg:hover .as-play-button__triangle{
  fill:#fff;
  stroke:#fff;
}

.as-waveform {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 3rem;
}

.waveform-loading {
  background-image: url(/loadwaveform.png);
  background-size: contain;
  background-position: center;
  animation: fade 5s infinite;
}


/* Create the opacity animation */
@keyframes fade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}

.as-waveform-load-text {
  animation: fade-op 5s infinite;
}

@keyframes fade-op {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0.3;
  }
}

.rec-feedback-mic-icon-container > svg {
  width: 100%;
  height: 100%;
}

.microphone-status.active {
  color: green;
  text-shadow: green 1px 0 10px;
  animation: 3s linear infinite activetextflash;
}

.microphone-status.inactive {
  color: blue;
  text-shadow: blue 1px 0 10px;
  animation: 3s linear infinite inactivetextflash;
}

.microphone-status.recording {
  color: red;
  text-shadow: red 1px 0 10px;
  animation: 3s linear infinite recordingtextflash;
}

  
@keyframes activetextflash {
  0% {
    text-shadow: green 1px 0 2.5px;
  }
  50% {
    text-shadow: green 1px 0 5px;
  }
  100% {
    text-shadow: green 1px 0 2.5px;
  }
}

@keyframes inactivetextflash {
  0% {
    text-shadow: blue 1px 0 2.5px;
  }
  50% {
    text-shadow: blue 1px 0 5px;
  }
  100% {
    text-shadow: blue 1px 0 2.5px;
  }
}

@keyframes recordingtextflash {
  0% {
    text-shadow: red 1px 0 2.5px;
  }
  50% {
    text-shadow: red 1px 0 5px;
  }
  100% {
    text-shadow: red 1px 0 2.5px;
  }
}

.recording-output-overlay {
  width: 100%; 
  height: 100%; 
  position: absolute; 
  background-color: rgba(255, 255, 255, 0.3);    
}

.recording-output-overlay.overlayed {
  z-index: 100;
}


.recording-output-overlay.reveal {
  animation: 1s linear fadeIn;
}

@keyframes fadeIn {
  0% {
    background-color: rgba(255, 255, 255, 1); 
    z-index: 100;
  }
  50% {
    background-color: rgba(255, 255, 255, 1); 
    z-index: 100;
  }
  100% {
    background-color: rgba(255, 255, 255, 0); 
    z-index: 0;
  }
}


.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

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

input[type="date"] {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

input[type="date"]:before {
  content: attr(placeholder) !important;
  color: #aaa;
  margin-right: 0.5em;
  
}
input[type="date"]:focus:before,
input[type="date"]:valid:before {
  content: ""; 
}

h2.greeting-recording-modal-titles {
  color: var(--calleo-pink);
  font-size: 3rem;
  font-weight: 900;
  float: left;
}

.greeting-modal-underlay {
  position: fixed; 
  width: 100%; 
  height: 100vh;
  left: 0px; 
  top: 0px; 
  background: rgba(255, 255, 255, 0.8); 
  z-index: 200;
}

.greeting-recording-modal-container {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.greeting-recording-modal-container.fadein {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
  }
  100% {
    visibility: hidden;
  }
}

.fade-out {
  animation: fadeOut 1s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    visibility: visibile;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s forwards;
}

.greeting-recording-modal {
  width: 800px;
  padding: 10px;
  padding-bottom: 20px; 
  border-radius: 10px;
  background: white;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  overflow-y: auto;
}

/* Custom scrollbar styles */
.greeting-recording-modal ::-webkit-scrollbar {
  width: 12px;
}

.greeting-recording-modal ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.greeting-recording-modal ::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.greeting-recording-modal ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* For Firefox */
.greeting-recording-modal  {
  scrollbar-width: thin;
  scrollbar-color: var(--calleo-pink) #f1f1f1;
}

.greeting-recording-modal > p {
  font-size: 1rem;
}

button.calleo-greetingmodal-button-beige {
  background: var(--calleo-button-beige);
  color: black;
  font-weight: bold;
  font-size: 18px;
  padding: 5px 12px;
  margin-top: 20px;
}

a.calleo-greetingmodal-button-beige {
  background: var(--calleo-button-beige);
  color: black;
  font-weight: bold;
  font-size: 18px;
  padding: 5px 12px;
  margin-top: 20px;
}


@media (max-width: 1500px) {
  .greeting-recording-modal-container {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .greeting-recording-modal {
    width: 800px;
  }
}

@media (max-width: 1024px) {
  .greeting-recording-modal-container {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .greeting-recording-modal {
    width: 700px;
  }
}

@media (max-width: 768px) {
  .greeting-recording-modal-container {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .greeting-recording-modal {
    width: 500px;
  }
}

@media (max-width: 480px) {
  .greeting-recording-modal-container {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .greeting-recording-modal {
    width: 100%;
  }
}
