body {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background: linear-gradient(120deg, #e0e7ff 0%, #f5f7fa 100%);
  color: #222;
}

h1 {
  color: #1a237e;
  letter-spacing: 2px;
  font-size: 2.2em;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 2px 8px #b3c6ff33;
}

h2, h3 {
  color: #1565c0;
  margin-top: 0;
  letter-spacing: 1px;
  text-align: center;
}

input, select, button, textarea {
  padding: 12px;
  margin: 10px 0;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  border: 1.5px solid #b3c6ff;
  border-radius: 8px;
  font-size: 1.08em;
  background: #f8fafc;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border: 2px solid #1976d2;
  outline: none;
  box-shadow: 0 0 0 2px #90caf9;
}

button {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08em;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  padding: 12px 22px;
  margin-top: 8px;
}

button:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
  transform: translateY(-2px) scale(1.03);
}

label {
  font-weight: 500;
  color: #1976d2;
  margin-bottom: 3px;
  display: block;
  letter-spacing: 0.5px;
}

#login-section, #admin-section {
  margin-top: 30px;
  box-shadow: 0 2px 16px #b3c6ff33;
  border-radius: 16px;
  background: #fff;
}

#login-section {
  max-width: 400px;
  margin: 40px auto 0 auto;
}

#login-error {
  color: #d32f2f;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

section {
  background: white;
  padding: 28px 22px;
  border-radius: 16px;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(21, 101, 192, 0.10);
}

#modules, #modules-list-table {
  max-height: 150px;
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 8px;
  background: #e3f2fd;
}

::-webkit-scrollbar-thumb {
  background: #b3c6ff;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.10);
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid #e3e8f0;
  text-align: left;
}

th {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 700;
  font-size: 1.08em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #f1f8ff;
  transition: background 0.2s;
}

td button {
  width: auto;
  min-width: 90px;
  margin: 0 4px;
  padding: 8px 14px;
  font-size: 0.98em;
  border-radius: 6px;
  box-shadow: none;
}

td button:hover {
  background: #42a5f5;
  color: #fff;
}

ul#modules-access-list {
  padding-left: 18px;
  margin: 0 0 10px 0;
}

ul#modules-access-list li {
  margin-bottom: 6px;
  font-size: 1.05em;
}

#account-link, .btn-account {
  display: none;
  float: right;
  margin-top: -40px;
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08em;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
}

#account-link:hover, .btn-account:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}

#change-password-section form {
  max-width: 420px;
  margin: auto;
}

#change-password-section input {
  margin-bottom: 12px;
}

#change-password-error {
  color: #d32f2f;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

#change-password-success {
  color: #388e3c;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.info {
  margin-bottom: 20px;
  background: #f5f7fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px #b3c6ff33;
  padding: 18px 18px 10px 18px;
}

.btn-account {
  display: inline-block;
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08em;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
  margin: 8px 0 0 0;
  cursor: pointer;
}
.btn-account:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}

.success {
  color: #388e3c;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}
.error {
  color: #d32f2f;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.account-btns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 18px 0 8px 0;
}
.btn-danger {
  background: linear-gradient(90deg, #d32f2f 60%, #e57373 100%) !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: linear-gradient(90deg, #b71c1c 60%, #d32f2f 100%) !important;
  color: #fff !important;
}
.btn-logout {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%) !important;
  color: #fff !important;
}
.btn-logout:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%) !important;
  color: #fff !important;
}
.btn-back {
  background: linear-gradient(90deg, #388e3c 60%, #81c784 100%) !important;
  color: #fff !important;
}
.btn-back:hover {
  background: linear-gradient(90deg, #2e7d32 60%, #388e3c 100%) !important;
  color: #fff !important;
}
@media (max-width: 900px) {
  body {
    max-width: 100vw;
    padding: 8px;
  }
  section {
    padding: 16px 6px;
    margin-bottom: 22px;
  }
  .info {
    padding: 10px 4px;
  }
  h1 {
    font-size: 1.5em;
  }
  h2, h3 {
    font-size: 1.1em;
  }
}
@media (max-width: 600px) {
  body {
    padding: 2px;
    font-size: 0.98em;
  }
  section {
    padding: 8px 2px;
    margin-bottom: 14px;
  }
  .info {
    padding: 6px 2px;
  }
  h1 {
    font-size: 1.1em;
    margin-bottom: 6px;
  }
  h2, h3 {
    font-size: 1em;
  }
  #account-link, .btn-account {
    float: none;
    margin: 10px 0 0 0;
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .account-btns-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .btn-account {
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 1em;
    padding: 10px 0;
  }
  input, select, button, textarea {
    max-width: 100%;
    font-size: 1em;
    padding: 10px;
  }
  table, th, td {
    font-size: 0.95em;
    padding: 8px 4px;
  }
  th, td {
    min-width: 60px;
  }
  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}
