* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  color: #222;
  background-color: #ffffff;
}

h1, h2, h3, h4 {
  margin-top: 0;
  color: #3F5523;
}

a {
  color: #3F5523;
}

/* buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #3F5523;
  border-radius: 8px;
  background-color: #3F5523;
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-blue {
  background-color: #3FADED;
  border-color: #3FADED;
}

.btn-white {
  background-color: white;
  color: #3F5523;
}

.btn-red {
  background-color: #d43f55;
  border-color: #d43f55;
}

.btn-small {
  padding: 5px 10px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* forms */
label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 9px 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
}

input[type="range"] {
  padding: 0;
}

/* password box with show/hide button */
.password-box {
  position: relative;
}

.password-box input {
  padding-right: 62px;
  margin-bottom: 4px;
}

.show-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 40px;
  border: none;
  background: none;
  color: #3F5523;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.rule {
  font-size: 12px;
  color: #777;
  margin: 0 0 12px;
  padding-left: 18px;
}

.rule li {
  margin-bottom: 2px;
}

.error {
  color: #d43f55;
  font-size: 14px;
  min-height: 18px;
  margin-bottom: 8px;
}

/* boxes */
.card {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gray {
  color: #777;
}

.small {
  font-size: 13px;
}

.center {
  text-align: center;
}

.code {
  font-family: Consolas, monospace;
  font-weight: bold;
  letter-spacing: 2px;
}

.hidden {
  display: none !important;
}

/* status labels */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: #eee;
  color: #555;
}

.tag.green {
  background: #e2f0d9;
  color: #3F5523;
}

.tag.yellow {
  background: #fcf1d6;
  color: #8a6207;
}

.tag.red {
  background: #fbe1e6;
  color: #a5223a;
}

.tag.blue {
  background: #e3f3fc;
  color: #1d7fb8;
}

/* progress bar */
.bar {
  height: 12px;
  background: #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0;
}

.bar div {
  height: 100%;
  background: #3F5523;
}

/* tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #f4f5f2;
  color: #3F5523;
}

/* small popup message */
#message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  z-index: 100;
}
