/* Grundutseende */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 16px;
  background: #f8fafc;
  color: #111827;
  line-height: 1.6;
  font-size: 17px; /* större standardtext */
}

h1 {
  margin-bottom: 16px;
  font-size: 26px; /* större rubrik */
  color: #1e293b;
}

a {
  color: #2563eb;
  text-decoration: none;
  font-size: 18px;
}

a:hover {
  text-decoration: underline;
}

/* Kort */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* Formulär */
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 500;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 98%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 17px;
}

textarea {
  min-height: 70px;
}

button {
  margin-top: 14px;
  padding: 14px 18px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  width: 100%;
}

button:hover {
  background: #1d4ed8;
}

/* Meddelanden */
.ok {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #065f46;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
}

.bad {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #7f1d1d;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
}

/* Tabeller */
.table-wrapper {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 12px;
  font-size: 16px;
}

th, td {
  border: 1px solid #e2e8f0;
  padding: 10px;
  text-align: left;
}

/* Responsivt */
@media (max-width: 600px) {
  body {
    padding: 12px;
    font-size: 18px; /* ännu större på mobil */
  }

  h1 {
    font-size: 24px;
  }

  input, textarea, select, button {
    font-size: 18px;
  }

  th, td {
    font-size: 15px;
  }
}

button.delete-btn,
button.edit-btn {
  margin-top: 0px!important;
  display: inline-block; 
  padding: 8px;         
  font-size: 15px;       
  border-radius: 7px;
  margin-left: 4px;      
  vertical-align: middle;
}

button.delete-btn {
  background: #ff6666;
  color: #fff;
  border: none;
  cursor: pointer;
}
button.delete-btn:hover {
  background: #e05555;
}

button.edit-btn {
  background: #4da6ff;
  color: #fff;
  border: none;
  cursor: pointer;
}
button.edit-btn:hover {
  background: #1a8cff;
}


button.start-btn {
  background: #2deb5f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
}

button.start-btn:hover {
  background: #26c94e;
}

.percent-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* 🚀 förhindrar radbrytning */
}

.percent-bar {
  flex: 0 0 120px;
  height: 16px;
  border-radius: 4px;
  background: #ddd;
  overflow: hidden;
}

.percent-fill {
  height: 100%;
  transition: width 0.5s;
}

.speak-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  margin-left: 4px;
}
.speak-btn:hover {
  color: #2deb5f;
}

.speak-icon {
  cursor: pointer;
  color: #555;
  margin-left: 6px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
}
.speak-icon:hover {
  color: #2deb5f;
}
