:root {
  --bg: #07132a;
  --card: #0b2340;
  --accent: #0ea5ff;
  --muted: #9fb4d1;
  --text: #dfefff;
  --topbot: #021424;
}

* {
  box-sizing: border-box;
}

body.bg {
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 12px;
}

.center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 18px;
  border-radius: 10px;
}

.topbar {
  background: var(--topbot);
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 20px;
}

.btn {
  background: var(--accent);
  color: rgb(255, 255, 255);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn.small {
  padding: 6px 8px;
  font-size: 90%;
}

.btn.endNow {
  position: absolute; 
  top: 90%; 
  width: 15%; 
  background-color:#eb3b3b;
  font-weight: bold;
}

.btn.success {
  background-color: #83ed77;
}

.btn.wrong {
  background-color: #f55f5f;
}

.btn.half {
  background-color: #e7c154;
}

.table-success {
  background-color: #328b4159;
}
.table-failed {
  background-color: #9b4f3e59;
}

.success {
  color: #83ed77;
}

.denied {
  color: #f55f5f;
}

.ended {
  color: #e7c154;
}

.btn.test-end {
    max-width: 100%;
    width: 100%;
    background-color: #ff5757;
}

.btn.test-report {
    margin-top: 50%;
    margin-bottom: 10px;
    max-width: 100%;
    width: 100%;
    background-color: #6fa848;
}

.btn.test-option {
    max-width: 100%;
    width: 100%;
    color: black;
}

.inline-options {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}

.inline-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dole{
  position: relative;
  bottom: 0;
}

input,
button,
select {
  font-family: inherit;
}

input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: var(--text);
  width: 100%;
  margin: 6px 0;
}

textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: var(--text);
  width: 100%;
  margin: 6px 0;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}


select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: #6a6aff;
    width: 100%;
    margin: 6px 0;
}

.inline {
  display: inline;
}

.input-search {
    position: relative;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: #759bd52b;
    color: #2472bf;
    width: 36%;
    left: 50%;
    margin: 6px 0;
    right: auto;
}

.test-wrap {
  display: flex;
  gap: 12px;
}

.test-stats {
  background-image: url('/assets/logo.webp'); 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain; 
  background-color: #00000000; 
  background-size: 128px;
  margin: 0;
}

.logo {
  width: 64px;
  height: 64px;
  background-image: url('/assets/logo.webp'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--topbot);
  color: #fff;
  text-align: center;
  padding: 15px 0;
}



.left {
  flex: 2;
}

.right {
  flex: 1;
}

.test-card .answers {
  display: flex;
  gap: 8px;
  bottom: 0;
}

.right-t {
  text-align: right;
}

.btn.big {
  padding: 12px 18px;
}

.btn.fullsize{
  width: 100%;
}

.btn.autosize{
  width: auto;
}

hr.dotted {
  border: none;
  border-top: 2px dotted #ccc;
  margin: 20px 0;
}

.alert-static {
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background-color: rgb(5 52 84);
}

.alert {
    position: fixed;
    top: 50px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert.error {
    background: #e74c3c;
}

.alert.success {
    background: #2ecc71;
}

.answer-correct {
  color: #8ffb30;
}

.answer-half {
  color: #ffbc40;
}

.answer-wrong {
  color: #ff5252;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}
.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background-color: #1f2d3d;
  color: #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.pagination a:hover {
  background-color: #2c3e50;
}
.pagination a.active {
  background-color: #4fa34f;
  color: #fff;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  background-color: #101828;
  color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.styled-table thead {
  background-color: #1f2d3d;
}

.styled-table th, .styled-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #2c3e50;
}

.styled-table tbody tr:hover {
  background-color: #1a2533;
}

.styled-table .correct {
  color: #4fa34f;
  font-weight: bold;
}

.styled-table .wrong {
  color: #e74c3c;
  font-weight: bold;
}

.styled-table .half {
  color: orange;
  font-weight: bold;
}

.row {
  display: flex;
  flex-wrap: wrap;
  /*margin-left: -12px;
  margin-right: -12px;*/
}

.col {
  flex: 1;
  padding-left: 12px;
  padding-right: 12px;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mt-35 { margin-top: 35px; }
.mr-5 { margin-right: 5px; }
.mr-10 { margin-right: 10px; }
.ml-15 { margin-left: 15px; }
.ml-25 { margin-left: 25px; }
.ml-50 { margin-left: 50px; }

table {
    border-collapse: separate;
    width: 100%;
    border-spacing: 0 5px;
}

th, td {
  padding: 6px;
  text-align: left;
  margin-bottom: 10px;
}
td.left {
  text-align: left;
}

td.right {
  text-align: right;
}