/***    body    ***/
body {
    margin: 0;
    font-family: 'Helvetica Neue',Arial,sans-serif;
    background-color: #f1f1f1;
    min-height: 100vh;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

/***    page container  ***/
body .page-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body .page-container .container {
    width: 100%;
    max-width: 1216px;
    padding: 40px;
    margin: auto;

}

/***    buttons    ***/
button {
    cursor: pointer;
}

.button {
    text-decoration: none;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
}

a.button {
    display: inline-block;
}

.button.big {
    padding: 18px 24px;
}

.button.huge {
    padding: 18px 40px;
}

.button.text {
    background: none !important;
    color: rgb(23,28,38,0.8);
}

.button.text.inverted {
    color: white;
}

.button.rounded {
    border-radius: 10px;
}

button:disabled {
    opacity: 0.5;
}

.button.primary {
    background-color: rgb(23,28,38);
}

.button.primary:hover {
    background-color: rgba(23, 28, 38, 0.87);
}

.button.secondary {
    background-color: #00ADAD;
}

.button.secondary:hover {
    background-color: #00adadd5;
}

.button.delete {
    background-color: #E5342F;
}

.button.delete:hover {
    background-color: #e5352fc9
}

/***    form    ***/
form.boxed {
    background-color: white;
    width: max-content;
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 4px 8px 0 rgb(23,28,38,0.2), 0 6px 20px 0 rgb(23,28,38, 0.19);
    border-radius: 4px;
}

form.vertical-margin {
    margin: 100px auto;
}

form label {
    font-size: 16px;
    font-weight: 500;
}

 input:not([type=radio]),  select {
    width: 300px;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

form .message {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    width: 280px;
    border-radius: 6px;
    display: none;
}

form .message.success {
    background-color: #7FDF4B;
}

form .message.error {
    background-color: #E5342F;
}

form .message.info {
    background-color: #D0D0D0;
}

.hidden {
    display: none ;
}


/***    custom message     ***/
.custom-message {
    padding: 20px 30px;
}

.custom-message.plain {
    padding: 8px;
}

.custom-message.error:not(.plain) {
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
}

.custom-message.success:not(.plain) {
    background-color: #EDF7ED;
    border: 1px solid #809A81;
}

.custom-message.info:not(.plain) {
    background-color: #E5F6FD;
    border: 1px solid #1D5974;
}

.custom-message .text {
    font-size: 13px;
    font-weight: bold;
    line-height: 20px;
    text-shadow: 1px 1px rgba(250,250,250,.3);
}

.custom-message.error .text {
    color: #cc0033;
}

.custom-message.success .text {
    color: #418A45;
}

.custom-message.info .text {
    color: #1D5974;
}

input[type=checkbox]:checked {
    accent-color: #00ADAD;
}

/***    modal     ***/
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 4px 8px 0 rgb(23,28,38,0.2), 0 6px 20px 0 rgb(23,28,38, 0.19);
    border-radius: 4px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/***    table   ***/
table {
    border-collapse: collapse;
    margin: auto;
}

th {
    background-color: #171C26;
    border: 1px solid #171C26;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

td {
    font-size: 16px;
    font-weight: 500;
}
  
td, th {
  text-align: left;
  padding: 24px;
  text-align: center;
}
  
tr:nth-child(even) {
  background-color: #dddddd;
}

#pagination {
    padding: 24px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

#pagination button {
    background: transparent;
    border: none;
    font-size: 18px;
    display: flex;
}

#pagination button.active {
    color: #00ADAD;
    text-shadow: 0 0 1px #00ADAD;
}

#pagination button:hover {
    color: #00ADAD;
    text-shadow: 0 0 1px #00ADAD;
}

h1.page-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
}

p.page-description {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.2em;
}

h2.secondary-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    margin-bottom: -12px;
}

.tooltip {
    position: relative;
    display: inline-block;
  }
  .tooltip:hover .tooltiptext {
    visibility: visible;
  }

  .tooltiptext {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    background-color: #333;
    color: white;
    padding: 12px;
    border-radius: 5px;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 350px;
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
    font-weight: 400 !important;
  }

  .tooltiptext.contained {
    max-width: 152px;
  }

  .tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
  }