/* Reset & Base */
body {
  font-family: Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.ksl-form,
.ksl-dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

/* === FORM STYLES === */
.ksl-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.ksl-form input[type="text"],
.ksl-form input[type="number"],
.ksl-form input[type="file"],
.ksl-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

.ksl-form input[type="text"]:focus,
.ksl-form input[type="number"]:focus,
.ksl-form input[type="file"]:focus,
.ksl-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.ksl-form input[type="radio"] {
  margin-right: 6px;
}

.ksl-form input[type="submit"],
.ksl-form button {
  background-color: #f4b428;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ksl-form input[type="submit"]:hover,
.ksl-form button:hover {
  background-color: #d99815;
}

.ksl-form .hidden {
  display: none;
}

/* === TABLE STYLES === */
.ksl-dashboard table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.ksl-dashboard thead {
  background-color: #ffffff;
  border-bottom: 2px solid #eee;
}

.ksl-dashboard th,
.ksl-dashboard td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.ksl-dashboard th {
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  background: #fff;
}

.ksl-dashboard td {
  background-color: #fff;
  color: #222;
  border-bottom: 1px solid #eee;
}

.ksl-dashboard tr:hover td {
  background-color: #fdf6e4;
}

.ksl-dashboard .actions a {
  color: #007bff;
  text-decoration: none;
  margin-right: 10px;
  font-weight: 600;
}

.ksl-dashboard .actions a:hover {
  color: #0056b3;
}

/* === MESSAGES === */
.success {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 1rem;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 1rem;
}

/* === PAGINATION === */
.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.pagination .current {
  background-color: #f4b428;
  color: white;
  border-color: #f4b428;
}

/* === RESPONSIVE TABLE === */
@media (max-width: 768px) {
  .ksl-dashboard table,
  .ksl-dashboard thead,
  .ksl-dashboard tbody,
  .ksl-dashboard th,
  .ksl-dashboard td,
  .ksl-dashboard tr {
    display: block;
    width: 100%;
  }

  .ksl-dashboard thead {
    display: none;
  }

  .ksl-dashboard tr {
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 8px;
  }

  .ksl-dashboard td {
    position: relative;
    padding-left: 50%;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .ksl-dashboard td::before {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #666;
    content: attr(data-label);
  }

  .ksl-dashboard .actions a {
    display: inline-block;
    margin-top: 6px;
  }
}