body{
    font-family: Arial, sans-serif;
    margin:0;
    background:#f5f7fb;

}
header{
    display: flex;
    background:#1e2a38;
    color:white;
    padding:15px 0;
    clear: both;
    height: 80px;
    width:95%;
    max-width: 1500px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    position: fixed;
    top : 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;

}
header h1{
    display:inline-block;
    margin:0;
}
.logo{
    margin-left: 50px;
    float: left;
    width: 200px;
    height: auto;
    align-items: left;
}
/* Navigering */
header nav{
    display: flex;
    width: fit-content ;
    margin-left: auto;
    margin-right: 50px;
}
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0px;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e2a38;
  list-style: none;
  padding: 0px;
  margin: 0;
  width: max-content;
}

.dropdown-content li a {
  padding: 10px;

}

.dropdown-content li a:hover {
  background: #555;
}

.show {
  display: block;
}
.dropdown-header {
  color: #aaa;
  font-weight: bold;
  padding: 10px;
  margin-top: 5px;
  border-top: 1px solid #666;
  cursor: default;
}
main {
    width:95%;
    max-width: 1500px;
    margin:auto;
    margin-top: 105px;
    min-height: calc(100vh - 224px); /* Justera baserat på header och footer höjd */
    display: flex;
    flex-direction: column;
    border: 1px solid #000000;
    overflow-y: auto;
    padding: 10px;
}
footer{
    text-align:center;
    padding:10px;
    margin-top:40px;
    background:#1e2a38;
    color:white;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    width: 95%;
    max-width: 1500px;
    margin: auto;
}

.btn{
    display:inline-block;
    margin-top:20px;
    padding:4px 10px;
    background:rgb(64, 26, 235);
    color:#fff;
    text-decoration:none;
    border-radius:5px;
    font-weight:bold;
    width: fit-content;
}
table {
    width: 50%;
    border-collapse: collapse;
    margin-top: 20px;
}
thead {
    background-color: #4CAF50;
    color: white;
}
tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
tbody tr:hover {
    background-color: #ddd;
}
form tr:hover {
    background-color: none;
}
.hero{
    background:#2d8cff;
    color:white;
    text-align:center;
    padding:50px 10px;
}
.features{
    display:flex;
    gap:20px;
    margin-top:40px;
}
.card{
    background:white;
    padding:25px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    flex:1;
}
.created {
    font-size: 0.85em;
    color: #777;
}
.content {
    margin-top: 20px;
    line-height: 1.6;
    font-size: 1em;
}
.correct {
    color: #2e7d32;        /* mörkgrön text */
    background: #e8f5e9;   /* ljusgrön bakgrund */
    border: 1px solid #4caf50;
    border-radius: 5px;
    width: fit-content;
    padding: 3px 10px;
    font-weight: bold;
}

.wrong {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 5px;
    width: fit-content;
    padding: 3px 10px;
    font-weight: bold;
}

.neutral {
    color: #37474f;
    background: #eceff1;
    border: 1px solid #90a4ae;
    border-radius: 5px;
    width: fit-content;
    padding: 3px 10px;
    font-weight: bold;
}
main input, main select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.btn-group button {
    margin: 0;
}

table tbody tr td {
    padding: 0.5rem;
    vertical-align: middle;
}

th {
    color: #0000 !important; 
}
table tbody tr td select,
table tbody tr td input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

#progressBadge {
    margin-left: 0.5rem;
}

.level-card {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}
.text-end {
    color: #000000 !important;
}
.text-white {
    color: #ffffff !important;
}
th, thead {
    color: #fff !important;
}
a.disabled {
  pointer-events: none;
  opacity: 0.65;
  color: var(--bs-secondary-color, #6c757d) !important;
}