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

body { 
  color: #333;
  /* font-family: "Roboto Slab"; */
}
h1 { 
  font-size: 1.9em;
}

h2 {
  font-size: 1.5em;
}

input::placeholder {
  font-style: italic;
}

@layer utilities {

}

@layer components {
  .btn {
    @apply text-slate-600 px-2 py-1 border-2 rounded border-slate-600 hover:border-blue-800 hover:text-blue-800;
  }
  .btn-primary {
    @apply text-blue-600 px-2 py-1 border-2 rounded border-blue-600 hover:border-b-2 hover:text-blue-800;
  }
  .btn-danger {
    @apply text-red-600 px-2 py-1 border-2 rounded border-red-600 hover:border-b-2 hover:text-red-800;
  }

  .btn-warning {
    @apply text-orange-600 px-2 py-1 border-2 rounded border-orange-500 hover:border-b-2 hover:text-orange-800;
  }

  .nice-input {
    @apply mt-1 rounded-md border-slate-300 shadow-sm focus:ring focus:ring-teal-200 focus:ring-opacity-50;
  }
  a {
    @apply border-b-2 border-teal-500 hover:border-b-2;
  }
  a.nav-link {
    @apply text-slate-700 p-1 border-slate-300 border-b-2 text-sm font-medium;
  }
  a.nav-active {
    @apply text-indigo-700 font-semibold border-indigo-400;
  }

  /* Ping Indicator */
  .badge-indicator {
    @apply relative;
  }
  
  .badge-indicator-dot-wrapper {
    @apply absolute top-1 right-1 flex h-2 w-2;
  }
  
  .badge-indicator-ring {
    @apply animate-ping absolute inline-flex h-full w-full rounded-full opacity-75;
  }
  
  .badge-indicator-dot {
    @apply relative inline-flex rounded-full h-2 w-2;
  }
  
  /* Variants */
  .badge-indicator-alert .badge-indicator-ring {
    @apply bg-red-600;
  }
  
  .badge-indicator-alert .badge-indicator-dot {
    @apply bg-red-600;
  }
  
  .badge-indicator-message .badge-indicator-ring {
    @apply bg-blue-600;
  }
  
  .badge-indicator-message .badge-indicator-dot {
    @apply bg-blue-600;
  }
}

/*
 * 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.
 *


 */

 .sfr_brand { 
   font-family: 'Roboto Slab';
   text-transform: uppercase;
   color: #555;
   border-bottom: 4px solid #7be0ad;
 }

 #nav-logo:hover {
  border: none;
 }

 .file_field {
  font-weight: 400;
  background-color: green;
  padding: 5px;
 }

 .label {
  text-transform: capitalize;
 }

 #graph {
  position: relative;
 }

 #graph .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: white;
  color: #0f766e;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
}

 #graph:hover .tooltiptext {
  visibility: visible;
}

.slab {
  font-family: 'Roboto Slab';
}
