:root {
  --text-color-primary: rgb(21, 67, 96);
  --box-bg-color: #f8f8f8;
  --border-color-sencondary: #d4d4d4;
  --border-color: #d4d4d4;
  --border-color: #333;

}

body{
    background-color: white;
    color: rgb(21, 67, 96);
}

hr{
    padding: 0px;
    margin: 5px 0px;
    border: 1px solid rgb(21, 67, 96);

}

.no-select {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;
}

.display-none {
    display: none !important;
}

.small {
    font-size: small !important;
}

@keyframes blink-opacity {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

.loading-blink {
  animation: blink-opacity 1.5s ease-in-out infinite;
}


#status-update {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none; /* Allow clicks through */
  
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.5rem;
}

#status-error {
  background-color: rgb(219, 69, 69);
  color: white;
  padding: 0.8em 2em;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: auto; /* Still clickable if needed */

  font-weight: bold;
  box-shadow: 0px 0px 3px black;
}

#status-error.show {
  opacity: 1;
}

.hidden {
  display: none;
}

#dashboard-layout {
    max-width: 1000px;
    margin: 0px auto;
    padding: 50px 15px 10px;
}


/* ================================================
                    LOADING MESSAGE
================================================ */

#info-bar {
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: display 0.3s ease;
}

.loading-dot {
  animation-name: blink;
  animation-duration: 1.4s;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  font-weight: 700;
  font-size: 2rem;
  color: rgb(21, 67, 96);
  margin-left: 2px;
  opacity: 0.3;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 20% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}


/* ================================================
                    DASHBOARD TITLE
================================================ */

#dashboard-title{
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    padding-bottom: 0.3em;
    text-transform: uppercase;
    text-align: center;

    border-bottom: 2px solid rgb(21, 67, 96);
    border-top: 2px solid rgb(21, 67, 96);
    padding: 10px 0px;
    margin: 0px auto;
}

/* ================================================
                    FILTERS SECTION
================================================ */

#filter-panel {
    padding: 15px 10px;
    background-color: var(--box-bg-color);
    border-radius: 3px;
    border: 1px solid var(--border-color);
    margin: 25px 0px;
    margin-bottom: 16px;
}

#filter-panel > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap; /* permet au flex d’aller à la ligne si besoin */
    margin: 0px;
}

#filter-panel > div > div {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

#filter-panel label {
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

#filter-panel select {
    padding: 5px 8px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: white;
    color: rgb(21, 67, 96);
}

    @media (max-width: 830px) {
        #filter-panel > div {
            flex-direction: column;
        }
        #filter-panel > div > div {
            width: 100%;
            margin-bottom: 15px;
        }
    }


/* ================================================
                BUTTON FILTERS
================================================ */

#filter-buttons{
    display: block;
    width: auto;
    /* margin-left: auto; */
    margin-top: 0px;
    text-align: right;
}

#filter-buttons button{
    padding: 9px 15px;
    background-color: rgb(21, 67, 96, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
}

button#reset-filters{
    padding: 9px 15px;
    background-color: var(--box-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    color: rgb(21, 67, 96);
}

button#reset-filters:hover{
    background-color: #f1f1f1;
}

button#apply-filters:hover{
    background-color: rgb(21, 67, 96, 1);
}



/* ================================================
                    STATS SECTION
================================================ */


#sm-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 30px;
}

    @media (max-width: 915px) {
        #sm-content-section {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 600px) {
        #sm-content-section {
            grid-template-columns: 1fr;
        }
    }

#sm-content-section .stats-block {
    background: #f8f8f8;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    min-width: 24%;
    text-align: center;
    display: flex;
    gap: 1.5rem;
    margin-top: 0px;
    padding: 0.8rem 1rem;
    font-family: 'Share Tech Mono', monospace;
}


#sm-content-section .stats-block .icon{
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 0.5em;
    background-color: #ebedee;
    color: lightseagreen;
}

#sm-content-section .stats-block .content{
    display: block;
    padding: 0px;
}

#sm-content-section .stats-block .content h3{
    margin: 0px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
    color: gray;
}

#sm-content-section .stats-block .content p{
    margin: 0px;
    font-size:  1.8em;
    text-align: left;
}



#md-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 25px;
}

    @media (max-width: 850px) {
        #md-content-section {
            grid-template-columns: 1fr;
        }
    }

#md-content-section .stats-block {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    min-height: 250px;
    min-width: 48%;
    text-align: center;

}
#md-content-section .stats-block h3 {
    margin-top: 0;
    text-transform: uppercase;
    font-size: medium;
    font-family: 'Share Tech Mono', monospace;
}

#md-content-section .stats-block .viz-title {
    text-transform: none;
    font-style: italic;
    font-size: 0.9rem;
}

#lg-content-section{
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 25px;
}

#lg-content-section h3{
    margin-top: 0;
    text-transform: uppercase;
    font-size: medium;

    font-family: 'Share Tech Mono', monospace;
}

#lg-content-section .stats-block {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    min-height: 250px;
    min-width: 48%;
    text-align: center;
}

#section-location #section-location-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 10px;
}

@media (max-width: 1000px) {
    #section-location #section-location-grid {
        grid-template-columns: 1fr;
    }
}

#section-location #section-location-grid table{
    width: 90%; 
    max-width: 500px;
    border-collapse: collapse; 
    margin: 50px auto; 
    font-size: 1.0rem;
    font-family: 'Share Tech Mono', monospace;
    user-select: none;
}

#section-location #section-location-grid table thead th{
    text-align: center;
    border-bottom: 1px solid #ccc;
    
    font-size: 1.1rem;
    text-shadow: 0px 0px 0.5px var(--text-color-primary);
}

    #section-location #section-location-grid table thead th:first-child{
        text-align: left;
    }

    #section-location #section-location-grid table thead th:last-child{
        text-align: right;
    }


#section-location #section-location-grid table tbody{
    text-align: left;
}

#section-location #section-location-grid table tbody tr, #section-location #section-location-grid table tbody tr td{
    padding: 2px 1px;
    transition: font-size 0.3s ease;
    transition: shadow 0.3s ease;
}

#section-location #section-location-grid table tbody tr:hover{
    text-shadow: 0px 0px 1px var(--text-color-primary);
}

#section-location #section-location-grid table tbody tr:nth-child(even){
    background-color: rgb(233, 233, 233);
}

#section-location #section-location-grid table tbody td:last-child{
    text-align: right;
}

#section-location #section-location-grid #viz-location{
    margin: 0px auto;
}

/* #section-location #section-location-grid .table{
} */


#dashboard-layout footer{
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 2rem;
}

#dashboard-layout footer hr{
    max-width: 90px;
    padding: 0px;
    margin: 10px auto 5px;
    border: 0.8px solid var(--border-color);
}

#dashboard-layout footer .contact-button{
    color: #005fd3;
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

#dashboard-layout footer .contact-button:hover{
    text-decoration: underline;
}