body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 3px solid #0f766e;
  padding: 15px 30px;
  background-color: white;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.header-left h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 0;
  object-fit: contain;
}

nav a {
            margin-left: 24px;
            text-decoration: none;
            color: #4b5563;
            font-size: 14px;
        }

        nav a:hover {
            color: #111827;
        }

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.main-content {
  padding: 30px;
  background-color: #000000;
  min-height: 100vh;
}

.open-btn {
  background-color: black;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 30px;
}

.card-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 330px;
}

.card h3 {
  margin-top: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.description {
  font-size: 14px;
  margin-bottom: 15px;
}

.legend {
  display: flex;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 15px;
}

.dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
}

.progress-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#0047AB 0% 25%, #00BFFF 25% 73%, #ccc 73% 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px auto;
}

.progress-circle span {
  font-size: 22px;
  font-weight: bold;
  color: black;
  background-color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.count {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.btn-logout {
      margin-top: 30px;
      padding: 12px 25px;
      background-color: #343333;
      color: white;
      font-size: 16px;
      font-weight: bold;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
    }

@media (max-width: 640px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .header-left h2 {
    font-size: 17px;
    line-height: 1.25;
  }

  nav,
  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  nav a {
    margin-left: 0;
  }

  .btn-logout {
    margin-top: 0;
    padding: 9px 12px;
    font-size: 13px;
    flex: 1 1 calc(50% - 8px);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .btn-logout {
    flex-basis: 100%;
  }
}

@media (max-width: 760px) {
  main,
  .container,
  .page,
  .content,
  .dashboard-container,
  .page-container,
  .main-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .layout,
  .form-grid,
  .settings-form,
  .cards-wrapper,
  .summary-grid,
  .option-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  input,
  select,
  textarea,
  button {
    box-sizing: border-box;
    max-width: 100%;
    font-size: 16px !important;
  }

  table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  td textarea,
  td input,
  td select {
    min-width: 180px;
    white-space: normal;
  }
}
