body {
  background-color: #ecf0f1;
  font-family: "Kanit", sans-serif;
  margin: 0;
  color: #2c3e50;
}

.header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: #ffffff;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar {
  background-color: #2c3e50;
  height: 100vh;
  padding-top: 20px;
  position: sticky;
  top: 0;
}

.sidebar a {
  color: #ecf0f1;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  transition: background 0.3s;
}

.sidebar a:hover {
  background-color: #3498db;
}

.content {
  padding: 20px;
  font-size: 14px;
}

.table th {
  background-color: #34495e;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.3);
}

.table td {
  background-color: #ffffff;
  color: #2c3e50;
  cursor: pointer;
}

.table tbody tr:hover {
  background-color: #dfe6e9;
}

.status-cell {
  text-align: center;
  padding: 5px 10px;
  border-radius: 5px;
}

.bg-success {
  background-color: #27ae60 !important;
  color: #ffffff;
}

.bg-danger {
  background-color: #c0392b !important;
  color: #ffffff;
}

.btn-primary {
  background-color: #2980b9;
  border-color: #2980b9;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-secondary {
  background-color: #7f8c8d;
  border-color: #7f8c8d;
}

.btn-secondary:hover {
  background-color: #95a5a6;
  border-color: #95a5a6;
}

.form-control {
  border-color: #bdc3c7;
  color: #2c3e50;
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
}

.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.modal-content {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.modal-header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: #ffffff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 15px 20px;
}

.modal-body {
  padding: 20px;
}

.form-label {
  font-weight: bold;
  color: #2c3e50;
  font-size: 14px;
  margin-bottom: 5px;
}

.detail-item {
  margin-bottom: 15px;
}

.detail-label {
  font-weight: bold;
  color: #2c3e50;
  font-size: 14px;
  margin-bottom: 5px;
}

.detail-value {
  background-color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #34495e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.detail-value:hover {
  transform: scale(1.02);
}

.table-responsive {
  overflow-x: hidden;
}

#assetsTable {
  width: 100% !important;
  table-layout: auto;
}

#loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

@media (max-width: 768px) {
  .sidebar {
    height: auto;
    position: relative;
  }

  .content {
    padding: 10px;
  }
}
