* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #2b2b2b;
  background-color: #f5f2ea;
}

a {
  color: #1f5f4e;
}

h1 {
  font-size: 36px;
  font-weight: normal;
  margin: 0;
}

h2 {
  font-size: 22px;
  font-weight: normal;
  margin-top: 0;
  color: #1f5f4e;
}

main {
  max-width: 950px;
  margin: 0 auto;
  padding: 25px 20px 50px 20px;
}


/* Top menu bar */

.top-bar {
  background-color: #1f5f4e;
  color: white;
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 4px solid #e8a93a;
}

.brand {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.top-bar nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.top-bar nav a:hover {
  background-color: #2d7a65;
}

.top-bar nav a.active {
  background-color: #e8a93a;
  color: #1f1f1f;
}

#user-email {
  font-size: 13px;
  color: #cfe3dc;
  margin: 0 10px;
}

#logout-button {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

#logout-button:hover {
  background-color: white;
  color: #1f5f4e;
}


/* Page logo */

.page-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.logo {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background-color: #1f5f4e;
  border: 4px solid #e8a93a;
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.big-logo {
  width: 200px;
  height: 200px;
  font-size: 40px;
  margin: 10px auto 20px auto;
}

.subtitle {
  color: #6b6b6b;
  margin: 6px 0 0 0;
}


/* Boxes (cards) */

.box {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.box p {
  margin: 0 0 12px 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.three-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.full-width {
  grid-column: 1 / 3;
}

.gray-text {
  color: #6b6b6b;
}

.uppercase {
  text-transform: uppercase;
}


/* Forms */

label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #cfc8b8;
  border-radius: 6px;
  background-color: #fbfaf6;
  margin-bottom: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #e8a93a;
  background-color: white;
}

textarea {
  height: 100px;
}

h2 label {
  font-size: 22px;
  margin-bottom: 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
  margin: 0;
  accent-color: #1f5f4e;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin: 10px 0 20px 0;
}

.word-count {
  font-size: 13px;
  color: #6b6b6b;
  margin-top: -10px;
  margin-bottom: 15px;
}

.too-many {
  color: #c0392b;
  font-weight: bold;
}

.step-text {
  color: #6b6b6b;
  font-size: 14px;
  margin-top: 6px;
}

.employment-entry {
  border-top: 1px dashed #cfc8b8;
  padding-top: 20px;
  margin-top: 10px;
}

.employment-entry:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.course-row {
  display: flex;
  gap: 10px;
}


/* Buttons */

.button {
  display: inline-block;
  background-color: #1f5f4e;
  color: white;
  border: 2px solid #1f5f4e;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background-color: #17493c;
}

.button-outline {
  background-color: white;
  color: #1f5f4e;
}

.button-outline:hover {
  background-color: #eef5f2;
}

.button-gold {
  background-color: #e8a93a;
  border-color: #e8a93a;
  color: #1f1f1f;
}

.button-gold:hover {
  background-color: #d39526;
}

.button-gray {
  background-color: #9a9a9a;
  border-color: #9a9a9a;
}

.button-gray:hover {
  background-color: #808080;
}

.button-red {
  background-color: #c0392b;
  border-color: #c0392b;
}

.button-red:hover {
  background-color: #a5281c;
}

.button-small {
  padding: 6px 12px;
  font-size: 13px;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-button {
  background: none;
  border: none;
  color: #1f5f4e;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.button-row-right {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}


/* Login */

.center {
  text-align: center;
}

.login-box {
  max-width: 450px;
  margin: 25px auto 0 auto;
  border-top: 6px solid #e8a93a;
}

.login-box h2 {
  font-size: 34px;
}

.login-buttons {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.login-buttons .stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 160px;
}

.demo-box {
  max-width: 450px;
  margin: 15px auto 0 auto;
  font-size: 13px;
  color: #6b6b6b;
  border: 1px dashed #cfc8b8;
  border-radius: 8px;
  padding: 12px;
}


/* Messages */

.error-message {
  background-color: #fdecea;
  color: #a5281c;
  border: 1px solid #f1b0a8;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.success-message {
  background-color: #e6f4ee;
  color: #1f5f4e;
  border: 1px solid #a9d6c4;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.provisional {
  color: #9a6a00;
  font-size: 13px;
}


/* Status labels */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  background-color: #e6f4ee;
  color: #1f5f4e;
}

.badge-gray {
  background-color: #ebebeb;
  color: #555555;
}

.badge-gold {
  background-color: #fbefd5;
  color: #8a5d00;
}

.badge-red {
  background-color: #fdecea;
  color: #a5281c;
}

.chip {
  display: inline-block;
  background-color: #f5f2ea;
  border: 1px solid #ddd6c8;
  border-radius: 20px;
  padding: 3px 10px;
  margin: 0 5px 5px 0;
  font-size: 13px;
}


/* Tables */

.table-box {
  background-color: white;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background-color: #1f5f4e;
  color: white;
  text-align: left;
  font-weight: normal;
  padding: 14px;
}

td {
  padding: 14px;
  border-top: 1px solid #ebe6da;
  vertical-align: top;
}

tr:hover td {
  background-color: #faf8f3;
}

td select {
  width: auto;
  margin: 0;
  padding: 5px;
  font-size: 13px;
}

.small-email {
  display: block;
  color: #6b6b6b;
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
}

.no-results {
  background-color: white;
  border: 2px dashed #cfc8b8;
  border-radius: 10px;
  text-align: center;
  padding: 30px;
  font-size: 17px;
}


/* Reports page */

.report-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  border-left: 6px solid #e8a93a;
}

.report-title {
  font-weight: bold;
  color: #1f5f4e;
}


/* Pop-up dialog */

.dialog-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dialog-background.show {
  display: flex;
}

.dialog {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  max-width: 420px;
  width: 100%;
  border-top: 6px solid #e8a93a;
}


/* Footer */

footer {
  background-color: #1f5f4e;
  color: #cfe3dc;
  padding: 20px 25px;
  font-size: 13px;
}


/* Phones and small screens */

@media (max-width: 750px) {
  h1 {
    font-size: 26px;
  }

  .logo {
    width: 65px;
    height: 65px;
    font-size: 13px;
  }

  .big-logo {
    width: 140px;
    height: 140px;
    font-size: 30px;
  }

  .two-columns,
  .three-columns,
  .filters {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .box {
    padding: 18px;
  }

  main {
    padding: 15px 15px 40px 15px;
  }
}


/* Link at the bottom of every page */
footer a {
  color: #e8a93a;
}


/* How to use page */
.guide ol,
.guide ul {
  padding-left: 22px;
  margin: 0 0 12px 0;
}

.guide li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.guide h3 {
  color: #1f5f4e;
  margin: 20px 0 8px 0;
}

.tip {
  background-color: #fbefd5;
  border-left: 5px solid #e8a93a;
  padding: 12px;
  border-radius: 6px;
  margin: 10px 0 15px 0;
}

.guide table td,
.guide table th {
  border: 1px solid #ebe6da;
}

.contents a {
  display: inline-block;
  margin: 0 12px 8px 0;
}
