@font-face {
  font-family: 'Krona One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/kronaone/v15/jAnEgHdjHcjgfIb1ZcUyNoWg.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, ::before, ::after {
    font-family: 'Satoshi', sans-serif;
    box-sizing : border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Satoshi', sans-serif;
  background-color: #06202B;
  color: #fff;
  height: 100vh;
  display: flex;
}

.dashboard {
  display: flex;
  width: 100%;
}

/* === Sidebar === */
.sidebar {
  background: #06202B;
  width: 80px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar h2 {
  color: #F5EEDD;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Krona One", sans-serif;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2px 5px;
  cursor: pointer;
  background-color: #06202B;
  transition: background-color 0.2s;
  text-align: center;
  color: #F5EEDD;
  font-size: 10px;
  width: 80px;
  height: 60px;
}

.sidebar li:hover {
  background-color: #031218;
}

.sidebar li.active {
  background-color: #031218;
}

/* === Contenu principal === */
.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar ul {
    display: flex;
  }
  .sidebar li {
    flex: 1;
    margin: 5px;
  }
}


h1 {
    font-family: "Krona One", sans-serif;
    margin-left: 10px;
    margin-bottom: 30px;
}

.section {
    padding: 20px 20px;
    background-color: #456D8A;
    border-radius: 10px;
    width: fit-content;
    margin: 10px;
    display: flex;
    align-items: center;
}

.section h3 {
  margin-bottom: 10px;
}

input[type="text"],
select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box; /* Important pour que le padding n'ajoute pas à la largeur */
    border: 1px solid #161616;
    border-radius: 5px;
    font-size: 1rem;
    color: #161616;
    margin-top: 5px;
    margin-bottom: 10px;
}

#timer {
    width: 150px;
    padding: 10px;
    box-sizing: border-box; /* Important pour que le padding n'ajoute pas à la largeur */
    border: 1px solid #161616;
    border-radius: 5px;
    font-size: 1rem;
    color: #161616;
    margin-top: 5px;
    margin-bottom: 10px;  
}

.switch {
  margin-top: 5px;
  margin-bottom: 5px;
}

.horizontal {
  display: flex;
}

#maps-container {
  margin: 10px;
  width: calc(100vw - 160px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.map-block {
    padding: 20px;
    background-color: #456D8A;
    border-radius: 10px;
}

.map-block input[type="number"] {
    border: 1px solid #161616;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #161616;
    padding-left: 3px;
    margin-top: 5px;
    width: 45%;
    height: 25px;
}


button {
    width: 100px;
    height: 40px;
    background: red;
    border: none;
    border-radius: 5px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}


button:hover {
    background: red;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}


.save-bar {
    position: absolute;
    top: 30px;
    right: 30px;
}

.save-bar button {
    width: 100px;
    height: 40px;
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #456D8A;
    border: none;
    border-radius: 5px;
    color: #fff
}

#reset {
    width: 100px;
    height: 40px;
    position: absolute;
    top: 30px;
    right: 150px;
    background: none;
    border: 1px solid red;
    border-radius: 5px;
    color: red;
}

#reset:hover {
    background: red;
    border: 1px solid red;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

/* Exemple CSS */
#reset.confirm-state {
    background: orange;
    color: white;
    transition: background 0.1s;
    border: none;
}

.save-bar button:hover {
    cursor: pointer;
    background-color: #234761;
}

.save-bar p {
    position: absolute;
    text-align: end;
    width: 600px;
    top: -25px;
    right: 0px
}
.grid {
  display: flex;
  flex-wrap: wrap;
}