/* ===================================== */
/* DACS PORTAL BASE */
/* ===================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #0b1020;
  color: #f4f7ff;
}

/* ===================================== */
/* BRAND */
/* ===================================== */

.brand-logo {
  text-align: center;
  padding: 28px 16px 18px;
  background: linear-gradient(135deg, #101936, #17284f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-main {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-sub {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #aebcff;
}

/* ===================================== */
/* NAV */
/* ===================================== */

header {
  padding: 12px;
  background: #0f1730;
  position: sticky;
  top: 0;
  z-index: 20;
}

.mobile-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-btn,
button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: #243768;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.nav-btn:hover,
button:hover {
  background: #36529a;
}

.nav-btn.active {
  background: #5d7cff;
}

/* ===================================== */
/* TABS */
/* ===================================== */

.hidden {
  display: none !important;
}

.mobile-tab {
  width: min(1100px, 94%);
  margin: 20px auto;
}

/* ===================================== */
/* CARDS / WRAPS */
/* ===================================== */

.dacsAdminWrap,
.dacsSearchWrap,
.dacsHydrateWrap {
  background: #121b36;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

h2 {
  margin-top: 0;
  color: #ffffff;
}

/* ===================================== */
/* FORM FIELDS */
/* ===================================== */

input,
select,
textarea {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #31436f;
  background: #0b1228;
  color: #ffffff;
  font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
  color: #8d9ac4;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6f8cff;
  box-shadow: 0 0 0 2px rgba(111, 140, 255, 0.18);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* ===================================== */
/* CHECKBOX GRID */
/* ===================================== */

.dacsCheckboxGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dacsCheckboxGrid label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b1228;
  border: 1px solid #31436f;
  padding: 10px;
  border-radius: 10px;
}

.dacsCheckboxGrid input {
  width: auto;
  margin: 0;
}

/* ===================================== */
/* STATUS */
/* ===================================== */

#dacsStatusBox {
  margin-top: 14px;
  min-height: 24px;
  color: #aebcff;
}

/* ===================================== */
/* TABLE */
/* ===================================== */

table {
  width: min(1100px, 94%);
  margin: 20px auto;
  border-collapse: collapse;
  background: #121b36;
  border-radius: 14px;
  overflow: hidden;
}

thead {
  background: #1b2a55;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.85rem;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ===================================== */
/* RENDER TAGS */
/* ===================================== */

.dacs-admin-desc {
  color: #dbe2ff;
  font-size: 0.8rem;
}

.dacs-admin-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dacs-admin-tag {
  background: #29406f;
  color: #cfe0ff;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
}

/* ===================================== */
/* MOBILE */
/* ===================================== */

@media (max-width: 760px) {
  .brand-main {
    font-size: 1.5rem;
  }

  .mobile-tab {
    width: 94%;
  }

  .dacsAdminWrap,
  .dacsSearchWrap,
  .dacsHydrateWrap {
    padding: 14px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    font-size: 0.78rem;
  }

  .nav-btn,
  button {
    flex: 1 1 120px;
  }
}