/*
    DEMO STYLE

    Anotaçoes Alexandre:
        Light Theme: https://realtimecolors.com/?colors=1a1a1a-fafafa-003d53-7386d5-de9e36
        Dark Theme: https://realtimecolors.com/?colors=fdfdfb-19140b-003d53-7386d5-de9e36

        Original Palette: https://coolors.co/fafafa-999999-ffffff-dddddd-7386d5-6d7fcc-47748b-003d53
        Created Palette: https://coolors.co/fafafa-003d53-7386d5-de9e36-1a1a1a
*/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

:root {
  scrollbar-color: var(--primary) var(--bg) !important;
  scrollbar-width: thin !important;

  --bg: rgb(245, 245, 245);
  --bg-light: rgb(250, 250, 250);
  --text: rgb(26, 26, 26);
  --text-white: rgb(250, 250, 250);
  /* --primary: rgb(0, 61, 83); */
  /* --secondary: rgb(115, 134, 213); */
  --primary: rgba(51, 102, 51, 0.8);
  --secondary: rgba(88, 112, 88, 0.8);
  --secondary-darker: rgb(87, 109, 199);
  --accent: rgb(222, 158, 54);
  /* --accent: 222, 158, 54; */
  --accent-low-opacity: rgb(222, 158, 54, 0.25);
  --separator: rgba(0, 0, 0, 0.3);
  --link: rgb(115, 134, 213);

  --form-control-backgound: rgb(250, 250, 250);
  --form-control-color: rgb(36 63 70);

  --table-row: 0, 0, 0;

  --switch-bgLightModeColor: #87cefa;
  --switch-sunColor: gold;
  --switch-moonColor: #f4f4f4;
  --switch-bgDarkModeColor: #1f1f27;

  --card-border: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(63, 63, 68, 0.1); /* box-shadow*/
}

:root[data-theme="light"] {
  --bg: rgb(245, 245, 245);
  --bg-light: rgb(250, 250, 250);
  --text: rgb(26, 26, 26);
  --text-white: rgb(250, 250, 250);
  --primary: rgb(0, 61, 83);
  --primary: rgb(0, 61, 83);
  --secondary: rgb(115, 134, 213);
  --secondary-darker: rgb(87, 109, 199);
  --accent: rgb(222, 158, 54);
  /* --accent: 222, 158, 54; */
  --accent-low-opacity: rgb(222, 158, 54, 0.25);
  --separator: rgba(0, 0, 0, 0.3);
  --link: rgb(115, 134, 213);

  --form-control-backgound: rgb(250, 250, 250);
  --form-control-color: rgb(36 63 70);

  --table-row: 0, 0, 0;

  --switch-bgLightModeColor: #87cefa;
  --switch-sunColor: gold;
  --switch-moonColor: #f4f4f4;
  --switch-bgDarkModeColor: #1f1f27;

  --card-border: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(63, 63, 68, 0.1); /* box-shadow*/
}

:root[data-theme="dark"] {
  --bg: rgb(0 28 36);
  --bg-light: rgb(0 40 50);
  --text: rgb(250, 250, 250, 85%);
  --text-white: rgb(250, 250, 250);
  --primary: rgb(0, 61, 83, 100%);
  --secondary: rgb(0 41 56);
  --secondary-darker: rgb(0 20 25);
  --accent: rgb(222, 158, 54);
  --accent-low-opacity: rgb(222, 158, 54, 0.25);
  --separator: rgba(255, 255, 255, 0.2);
  --link: rgb(115, 134, 213);

  --form-control-backgound: rgb(36 63 70);
  --form-control-color: rgb(250, 250, 250);

  --table-row: 255, 255, 255;

  --switch-bgLightModeColor: #87cefa;
  --switch-sunColor: gold;
  --switch-moonColor: #f4f4f4;
  --switch-bgDarkModeColor: #1f1f27;
  --card-border: 0 1px 2px rgb(0 0 0 / 10%), 0 0 0 1px rgb(210 210 210 / 20%); /* box-shadow*/
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);

  display: grid;
  justify-items: center;
  padding: 32px;
  align-items: center;
}

.content {
  min-width: 320px;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.navbar-header .navbar-toggle {
  margin: 15px 15px 10px 0;
  width: 40px;
  height: 40px;
}

.navbar-header .navbar-brand {
  /* height: 66px; */
  font-weight: 100;
  line-height: 2 !important;
  margin: 0 !important;
  color: var(--text);
}

.sidebar .logo .img {
  background: url(../images/logodtic.png) 44px 10px;
  height: 46px;
  background-repeat: no-repeat;
  display: block;
}

.sidebar .sidebar-wrapper {
  overflow-x: hidden;
}

.sidebar .sidebar-background {
  background: url(/assets/images/sidebar.jpg) -1300px -60px;
}

.sidebar[data-image]:after,
.sidebar.has-image:after {
  /* opacity: 1; */
  opacity: 0.6;
}

a.collapsed .caret {
  transform: rotate(-90deg);
  transition-duration: 500ms;
}

a:not(.collapsed) .caret {
  transition-duration: 500ms;
}

.submenu ul {
  list-style-type: none;
  margin: 0px;
  padding-inline-start: 20px;
}

.submenu a {
  padding: 10px 15px;
}

.submenu .caret {
  margin-top: 8px !important;
}

.navbar {
  background-color: var(--bg);
  border-bottom: 1px solid var(--separator);
  min-height: 68px;
}

.main-panel > .footer {
  background-color: var(--bg);
  border-top: 1px solid var(--separator);
}

p {
  font-family: "Poppins", sans-serif;
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1.7em;
  color: var(--text);
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}

.btn {
  background: var(--primary);
  color: var(--text-white);
  border: none;
  opacity: 0.9;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus {
  background: var(--accent);
  color: var(--text-white);
}

.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.form-control {
  color: var(--form-control-color);
  background: var(--form-control-backgound);
  border: 1px solid var(--primary);
}

.form-control:focus {
  color: var(--form-control-color);
  background: var(--form-control-backgound);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem var(--accent-low-opacity);
}

.form-control[readonly] {
  background: var(--form-control-backgound);
}

/* #table-cameras {
    table-layout: fixed;
}
#table-cameras tbody {
    display: block;
    width: 100%;
    overflow: auto;
    height: 70svh;
}
#table-cameras thead tr {
    display: block;
} */

.table-filters {
  padding-left: 30px;
  max-width: 160px;
  height: 32px;
}

.table-filter-icon {
  position: relative;
  top: -24px;
  left: 8px;
  color: gray;
  float: left;
}

.table-filters:focus {
  padding-left: 8px;
}

.table-filters:focus + .table-filter-icon {
  visibility: hidden;
}

.table > tbody > tr.odd {
  /* font-size: 16px; */
  background-color: rgba(var(--table-row), 0.05);
}

.table > tbody > tr:hover {
  background-color: var(--accent-low-opacity);
}

.table > tbody > tr.odd:hover {
  background-color: var(--accent-low-opacity);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(var(--table-row), 0.05);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* ---------------------------------------------------
    SCROLLBAR STYLE
----------------------------------------------------- */

::-webkit-scrollbar-track {
  /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); */
  background-color: var(--bg);
}

::-webkit-scrollbar {
  height: 10px;
  width: 10px;
  background-color: var(--bg);
}

::-webkit-scrollbar-thumb {
  /* border-radius: 10px; */
  /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); */
  background-color: var(--primary);
}

::-webkit-scrollbar-corner {
  background-color: var(--bg);
}

/* ---------------------------------------------------
    Switch Theme
----------------------------------------------------- */

/* ---------------------------------------------------
    Switch Theme
----------------------------------------------------- */

.switch.theme {
  /* padding-left: 10px;
    padding-top: 20px;
    position: sticky;
    top: 0; */
  position: absolute;
  width: 100%;
  bottom: 10px;
  left: 20px;
}

.switch.theme label {
  display: grid;
  grid-template-columns: auto auto;
  grid-column-gap: 10px;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.8em;
  color: var(--text-white);
}

.switch.theme span:first-child {
  position: relative;
  width: 50px;
  height: 26px;
  border-radius: 15px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
  background: var(--switch-bgLightModeColor);
  transition: all 0.3s;
}

.switch.theme span:first-child::before,
.switch.theme span:first-child::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.switch.theme span:first-child::before {
  top: 1px;
  left: 1px;
  width: 24px;
  height: 24px;
  background: var(--white);
  z-index: 1;
  transition: transform 0.3s;
}

.switch.theme span:first-child::after {
  top: 50%;
  right: 8px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background: var(--switch-sunColor);
  box-shadow: 0 0 4px 2px #ffdb1a;
}

.switch.theme [type="checkbox"]:checked + label span:first-child {
  background: var(--switch-bgDarkModeColor);
}

.switch.theme [type="checkbox"]:focus + label span:first-child {
  box-shadow: 0 3px 5px rgba(255, 255, 255, 0.25);
}

.switch.theme [type="checkbox"]:checked + label span:first-child::before {
  transform: translateX(24px);
}

.switch.theme [type="checkbox"]:checked + label span:first-child::after {
  left: 12px;
  width: 15px;
  height: 15px;
  background: transparent;
  box-shadow: -2px -5px 0 var(--switch-moonColor);
  transform: translateY(-50%) rotate(-72deg);
}

#toggleTheme {
  position: absolute;
  left: -9999px;
}

/* Card */

.card {
  background-color: var(--bg-light);
  padding-bottom: 15px;
  box-shadow: var(--card-border);
}

.card .title {
  color: var(--text);
}

.card .header i {
  font-size: 30px;
  float: left;
  margin-right: 12px;
  line-height: 28px;
  width: 30px;
  text-align: center;
}

.card .header.collapsed i {
  transition-duration: 500ms;
}

.card .header:not(.collapsed) i {
  transform: rotate(90deg);
  transition-duration: 500ms;
}

.card .form-group-date {
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(63, 63, 68, 0.1);
  background-color: var(--bg);
  /* margin-bottom: 30px; */
  padding: 8px;
  width: fit-content;
}

.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover {
  color: var(--primary);
  background-color: var(--accent);
}

.pagination > li > a,
.pagination > li > span {
  color: var(--text);
  text-decoration: none;
  background-color: var(--bg-light);
  border: 1px solid var(--separator);
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
  background-color: var(--primary);
}

.loader {
  border: 8px solid #f3f3f3;
  /* Light grey */
  border-top: 8px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: spinLoader 2s linear infinite;
  display: inline-block;
}

.loading {
  display: block !important;
}

.disabled {
  pointer-events: none;
}

@keyframes spinLoader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Autocomplete */
.autocompleteResult {
  border: 1px dotted #ccc;
  position: absolute;
  background-color: var(--bg-light);
  min-width: 200px;
  z-index: 1;
  padding: 0px 16px;
}

.autocompleteResult ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.autocompleteResult ul li {
  padding: 5px 0;
}

.autocompleteResult ul li:hover {
  background: #eee;
}
