@import "tailwindcss";

:root {
  --primary-color: #2ecc71;
  --success-color: #2ecc71;
  --warning-color: #e67e22;
  --danger-color: #e74c3c;
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #1a1a1a;
  --border-color: #dfe6e9;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

#search-3, #dunker_core_woo_dropdown_cart-2{
  display: none !important;
}

.wa-main{
  display: none !important;
}

/* User Required Classes */
.relative {
  position: relative;
  float: left;
  height: auto;
}

.transition {
  -webkit-transition: all 0.5s ease 0s !important;
  -moz-transition: all 0.5s ease 0s !important;
  -o-transition: all 0.5s ease 0s !important;
  -ms-transition: all 0.5s ease 0s !important;
  transition: all 0.5s ease 0s !important;
}

.flex-center {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-center-left {
  text-align: center;
  display: flex;
  justify-content: left;
  align-items: center;
}

.flex-center-rigth {
  text-align: center;
  display: flex;
  justify-content: right;
  align-items: center;
}

.flex-align-v {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: flex-start;
}

.flex-wrap-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.flex-wrap-left {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
}

/* Custom width classes */
.w-20vw { width: 20vw; }
.w-25vw { width: 25vw; }
.w-33vw { width: 33.33vw; }
.w-50vw { width: 50vw; }
.w-75vw { width: 75vw; }
.w-100vw { width: 100vw; }

.h-09vw { height: 09vw; }
.h-10vw { height: 10vw; }
.h-11vw { height: 11vw; }
.h-15vw { height: 15vw; }
.h-20vw { height: 20vw; }
.h-25vw { height: 25vw; }
.h-30vw { height: 30vw; }
.h-40vw { height: 40vw; }

/* Text sizing using VW */
.text-title { font-size: 2.5vw; font-weight: bold; }
.text-subtitle { font-size: 1.8vw; font-weight: 600; }
.section-title { font-size: 1.2vw; font-weight: 600; color: #a4a4a4; text-transform: capitalize; }
.text-legend { font-size: 0.9vw; color: #a4a4a4; }
.text-normal { font-size: 1vw; }
.text-indicator { font-size: 2.8vw; font-weight: bold; color: var(--text-main); }


/* Layout Containers */
#main-container {
  width: 95vw;
  min-height: 100vh;
  padding-bottom: 5vw !important;
}

.header {
  width: 100vw;
  height: auto;
  left: -2vw;
  top: -0.5vw;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1vw 2vw;
  box-sizing: border-box;
  z-index: 100;
}
.header .text-subtitle{
  width: 25vw;
}
.header select{
  width: 20vw;
}

.dropdown {
  margin: 0 1vw;
  padding: 0.4vw 0.8vw;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 0.3vw;
  font-size: 0.9vw;
  cursor: pointer;
}

.section{
  width: 98% !important;
  padding: 0;
  margin: 1vw;
  margin-bottom: 0 !important;
}

#metrics .card{
  width: 25%;
  height: 100%;
}
#metrics .card:nth-child(1){
  margin-left: 0 !important;
}
#metrics .card:nth-child(4){
  margin-right: 0 !important;
}

#graph{  
  padding: 0;
}
#graph .chart {
    width: 100%;
    height: 100%;
    padding: 2vw 1vw !important;
    padding-bottom: 3vw !important;
    margin: 0 !important;
}

#circles .card{
  height: 30vw !important;
}
#circles .card:nth-child(1){
  margin-left: 0 !important;
}
#circles .card:nth-child(3){
  margin-right: 0 !important;
}
#circles .card #pie-catalogo .apexcharts-canvas,
#circles .card #pie-catalogo .apexcharts-canvas svg{
  width: 100% !important;
  height: 100% !important;
}
.apexcharts-pie{
  transform: scale(0.6) translateX(30%);
}
#map{
  margin-bottom: 4vw;
  height: 25vw !important;
}
#map .card{
  height: 100%;
  margin: 0;
}
#map div:nth-child(1){
  margin-right: 1vw;
}
#map #world{
  width: 59%;
}
#map #heat{
  width: 100%;
  height: auto !important;
}

/* Card Styling */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5vw;
  box-shadow: none;
  margin: 0.5vw;
  padding: 1vw;
  box-sizing: border-box;
  overflow: hidden;
}

.card-header {
  height: 2vw;
  margin-bottom: 0.5vw;
  text-transform: capitalize;
  font-weight: 600;
  color: #a4a4a4;
}

.card-content {
  height: 3.5vw;
}

.card-footer {
  height: 2vw;
  font-size: 0.9vw;
}

.card-footer span{
  margin-right: 1vw;
}

.positive { color: var(--success-color); }
.negative { color: var(--warning-color); }
.neutral { color: var(--border-color); }


/* Mobile Overrides */
@media (max-width: 991px) and (orientation: portrait) {


  #main-container {
    height: auto;
  }
  
  
  .text-title { font-size: 6vw; }
  .text-subtitle { font-size: 5vw; }
  .text-legend { font-size: 4vw; }
  .text-normal { font-size: 3.5vw; }
  .text-indicator { font-size: 8vw; }
  
  .header {
    left: 0;
    top: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: flex-start;
  }
  .header div, .header select{
    width: 80% !important;
  }
  
  .dropdown {
    width: 90vw;
    margin: 1vw 0;
    font-size: 4vw;
  }
  
  #map-container {
    width: 200vw !important;
    overflow-x: auto;
  }

  section{
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  section .card{
    width: 100% !important;
    padding: 4vw;
  }

  #metrics .card{
    height: 40vw !important;
  }
  #metrics .card div{
    width: 100%;
  }
  
  #metrics .card .card-header{
    height: 7vw;
  }
  
  #metrics .card .card-content{
    height: 17vw;
    font-size: 12vw;
  }
  
  #metrics .card .card-footer{
    height: 7vw;
    font-size: 5vw;
  }



  #circles .card{
    height: 100vw !important;
  }

  .card-footer span {
      margin-right: 1vw;
      font-size: 4vw !important;
  }
.apexcharts-pie {
    transform: scale(0.6) translateX(70%) translateY(10px);
}


#map {
    margin-bottom: 4vw;
    height: 80vw !important;
}#map #heat {
    width: 100%;
    height: 81vw !important;
}


}

.map-wrapper {
  overflow-x: auto;
  width: 100%;
}
