html {
  background: linear-gradient(135deg, #25418E 10%, #071848 70%);
  min-height: 100%;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100%;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: linear-gradient(180deg, #0A2558 10%, #000E28 100%);
  color: #fff;
  padding: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  background-color: #000E28;
  padding: 19px 18px 10px 20px;
}
.sidebar-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: bold;
}
.sidebar-header span {
  font-size: 0.95rem;
  color: #a5c6fe;
}
.sidebar-nav {
  margin-top: 30px;
  flex: 1;
}
.sidebar-nav ul {
  list-style: none;
  padding: 0 0 0 20px;
}
.sidebar-nav ul li {
  display: flex;
  align-items: center;
  font-size: 1.09rem;
  margin-bottom: 30px;
  gap: 16px;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 5px;
}
.sidebar-nav ul li:hover {
  background: rgba(255,255,255,0.08);
}
.sidebar-nav a {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.sidebar-nav .material-icons {
  font-size: 1.5em;
}
.navbar {
  position: fixed;
  top: 0;
  left: 250px;
  height: 91px;
  width: calc(100% - 250px);
  background: linear-gradient(90deg, #0A2558 10%, #000E28 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  z-index: 10;
  padding: 0 38px 0 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.navbar-logo h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.dashboard-content {
  margin-left: 250px;
  margin-top: 64px;
  padding: 38px 18px;
}
.dashboard-cadas {
  background: #020C27;
  padding-left: 25px;
  padding-bottom: 10px;
  padding-right: 25px;
  border-radius: 24px;
  color: #fff;
  width: 45%;
  height: 39%;
  margin: auto;
  position: fixed;
  top: 10%;
  left: 15%;
}
.dashboard-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.dashboard-card {
  background: #17295C;
  border-radius: 36px;
  width: 230px;
  min-width: 200px;
  padding: 28px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.percentual-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  margin-bottom: 15px;
}
.dashboard-percentual {
  background: #020C27;
  padding-left: 25px;
  padding-bottom: 10px;
  padding-right: 25px;
  border-radius: 24px;
  color: #fff;
  width: 20%;
  height: 39%;
  margin: auto;
  position: fixed;
  top: 10%;
  left: 65%;
  text-align: center;
}

.dashboard-percentual h2,
.dashboard-percentual h3,
.dashboard-percentual p {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.percentual-chart-container {
  width: 200px;
  height: 200px;
  padding-top: 10%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.percentual-legenda {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.08em;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}
.legenda-cliente {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #39cf7d;
  border-radius: 4px;
  margin-right: 7px;
  vertical-align: middle;
}
.legenda-paneleiro {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #34b1e2;
  border-radius: 4px;
  margin: 0 7px 0 25px;
  vertical-align: middle;
}
.dashboard-servicos {
  background: #081F4A;
  padding-left: 25px;
  padding-bottom: 10px;
  padding-right: 25px;
  border-radius: 24px;
  color: #fff;
  width: 20%;
  height: 27%;
  position: fixed;
  top: 55%;
  left: 15%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.dashboard-servicos h2 {
  background: #020C27;
  color: #fff;
  margin: 0px -25px 0px -25px;
  padding: 10px 25px;
  border-radius: 24px 24px 0 0;
}


.servicos-content {
  padding-top: 0px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: yellow;
  position: relative;
  margin-top: -5%;
}


.servicos-content p {
  font-size: 2rem;
  font-weight: bold;
}

.ativo-fundo {
  position: absolute;
  left: -6.5%;
  width: 59%;
  height: 88%;
  z-index: -1;
}
.servicos-content2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 5%;
}
.servico-bloco {
  display: flex;
  align-items: center;
  gap: 7px;
}
.servico-bloco p {
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  margin: 0 0 0 2px;
  text-underline-offset: 2px;
}
.servico-bloco h3 {
  font-size: 1.6rem;
  color: #fff;
  font-weight: bold;
  margin: 0 0 0 8px;
}


.dashboard-firebase {
  background: #020C27;
  padding-left: 25px;
  padding-bottom: 10px;
  padding-right: 25px;
  border-radius: 24px;
  color: #fff;
  width: 20%;
  height: 27%;
  margin: auto;
  position: fixed;
  top: 55%;
  left: 40%;
  text-align: center;

}

.dashboard-img, .dashboard-img2 h2{
  color: #36FB39;
}

.dashboard-img, .dashboard-img2 p{
  color: #36FB39;
}
.dashboard-img {
  padding-top: 15px;
  padding-bottom: 10px;
  width: 230px;
  min-width: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 5%;
}

.fogo {
  width: 80%
}

.dashboard-img2 {
  width: 230px;
  min-width: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 7%;
}



.dashboard-estado {
  background: #020C27;
  padding-left: 25px;
  padding-bottom: 10px;
  padding-right: 25px;
  border-radius: 24px;
  color: #fff;
  width: 20%;
  height: 27%;
  margin: auto;
  position: fixed;
  top: 55%;
  left: 65%;
  text-align: center;
}

.robo {
  width: 75%
}

.parte-texto {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  left: 17%;
}

.parte-texto h2 {
  font-size: 1.6rem;
  
}


.radial-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-number {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  z-index: 1;
}

.radial-svg {
  position: absolute;
  left: 0; top: 0;
  z-index: 0;
}

.radial-bg {
  stroke: #10306b;
  opacity: 0.4;
}

/* CÍRCULOS COM GIRO E ANIMAÇÃO DE COR */
.radial-anim-cadastros,
.radial-anim-clientes,
.radial-anim-paneleiros {
  stroke-dasharray: 314;
  stroke-dashoffset: 0;
  transform-origin: 50px 50px;
  animation:
    radial-spin 2.5s linear infinite,
    radial-colors-cadastros 2.5s ease-in-out infinite;
}


@keyframes radial-colors-cadastros {
  0%, 100% { stroke: #39cf7d; }
  50% { stroke: #34b1e2; }
}

.radial-anim-clientes {
  animation:
    radial-spin 2.5s linear infinite,
    radial-colors-clientes 2.5s ease-in-out infinite;
}

@keyframes radial-colors-clientes {
  0%, 100% { stroke: #34b1e2; }
  50% { stroke: #f2c94c; }
}

.radial-anim-paneleiros {
  animation:
    radial-spin 2.5s linear infinite,
    radial-colors-paneleiros 2.5s ease-in-out infinite;
}

@keyframes radial-colors-paneleiros {
  0%, 100% { stroke: #f2c94c; }
  50% { stroke: #39cf7d; }
}

/* Administração styles */
.admin-container {
  background: #020C27;
  padding: 25px;
  border-radius: 24px;
  color: #fff;
  width: 90%;
  margin: auto;
  margin-top: 20px;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.user-card {
  background: #17295C;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
}

.user-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.user-card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.user-card p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.card-actions {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.card-actions button {
  background: #34b1e2;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
}

.card-actions button:hover {
  background: #2a9cc8;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #17295C;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  color: #fff;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

#modal-body ul {
  list-style: none;
  padding: 0;
}

#modal-body li {
  background: #25418E;
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 20;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger {
    display: block;
    position: absolute;
    left: 20px;
  }

  .navbar {
    left: 0;
    width: 100%;
    justify-content: center;
  }

  .navbar-logo h1 {
    font-size: 1.9rem;
  }

  .navbar-logo h1::before {
    content: "Conserta Já";
  }

  .dashboard-content {
    margin-left: 0;
    margin-top: 91px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .admin-container {
    width: 95%;
    max-width: 500px;
    padding: 15px;
  }

  .users-grid {
    grid-template-columns: 1fr;
  }

  .user-card {
    padding: 10px;
    width: 80%;
  }

  .user-photo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .user-card {
    padding: 15px;
  }

  .card-actions {
    flex-direction: column;
  }
}
