:root {
  --primary: #009f99;
  --primary-dark: #008c87;
  --secondary: #24205e;
  --text: #1f2a44;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 7% 28%, rgba(0, 160, 150, 0.10), transparent 16%),
    radial-gradient(circle at 97% 28%, rgba(19, 43, 82, 0.08), transparent 14%),
    linear-gradient(120deg, #d9fbfb 0%, #e7f6ff 48%, #dfe9ff 100%);
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.pattern {
  position: fixed;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(rgba(0, 160, 150, 0.28) 1.3px, transparent 1.3px);
  background-size: 18px 18px;
  opacity: 0.48;
  pointer-events: none;
}

.pattern-1 { top: 42px; left: 110px; }
.pattern-2 { top: 86px; right: 180px; opacity: 0.32; }
.pattern-3 { bottom: 90px; left: 58px; opacity: 0.28; }
.pattern-4 { bottom: 210px; right: 90px; opacity: 0.42; }

.home-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.logo-card {
  width: 142px;
  height: 142px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.title-wrap {
  text-align: center;
  margin-bottom: 34px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.title-line {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.title-row h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  color: var(--secondary);
  letter-spacing: 0.5px;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.quick-panel {
  width: min(100%, 760px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.15);
  padding: 28px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.link-card {
  min-height: 146px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  border-color: rgba(0, 159, 153, 0.28);
}

.icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e5f9f7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}

.icon-circle i {
  font-size: 31px;
  color: var(--primary);
  transition: color .25s ease;
}

.link-card:hover .icon-circle {
  background: var(--primary);
}

.link-card:hover .icon-circle i {
  color: #fff;
}

.link-card span {
  font-weight: 700;
  color: var(--text);
}

.small-bar {
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.footer {
  margin-top: 28px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.admin-bar {
  max-width: 100%; /*1180px;*/
  /* margin: 0 auto; */
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 5px;
}

.brand h1 {
  margin: 0;
  color: var(--secondary);
  font-size: 22px;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-main {
  max-width: 100%; /*1180px;*/
  /* margin: 0 auto; */
  padding: 30px 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  padding: 24px;
}

.panel h2 {
  margin: 0 0 18px;
  color: var(--secondary);
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
}

input, select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 12px 14px !important;
  font-size: 15px !important;
  outline: none;
  background: #fff;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 159, 153, 0.14);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--secondary); color: white; }
.btn-light { background: #e2e8f0; color: #334155; }
.btn-red { background: #ef4444; color: white; }
.btn-blue { background: #3b82f6; color: white; }
.btn-green { background: #16a34a; color: white; }

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #e5f9f7;
  color: var(--secondary);
  text-align: left;
  padding: 13px;
  white-space: nowrap;
}

th:first-child { border-radius: 13px 0 0 13px; }
th:last-child { border-radius: 0 13px 13px 0; text-align: right; }

td {
  padding: 14px 13px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  vertical-align: middle;
}

td:last-child { text-align: right; }

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge-active { background: #dcfce7; color: #15803d; }
.badge-inactive { background: #fee2e2; color: #b91c1c; }

.admin-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5f9f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}

.login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: min(100%, 430px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

.login-card h1 {
  color: var(--secondary);
  margin: 16px 0 4px;
  text-align: center;
}

.login-card p {
  text-align: center;
  color: var(--muted);
}

.error-text {
  color: #dc2626;
  text-align: center;
  font-weight: 700;
  min-height: 20px;
}

.helper {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .pattern { display: none; }
}

@media (max-width: 640px) {
  .quick-panel { padding: 18px; border-radius: 22px; }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .link-card { min-height: 128px; }
  .icon-circle { width: 58px; height: 58px; }
  .icon-circle i { font-size: 26px; }
  .title-row { gap: 14px; }
  .title-line { width: 28px; }
  .logo-card { width: 120px; height: 120px; }
  .admin-bar { align-items: flex-start; flex-direction: column; }
}


body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: #1f2a44;
  overflow-x: hidden;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 25%, rgba(0, 159, 153, 0.12), transparent 18%),
    radial-gradient(circle at 92% 28%, rgba(36, 32, 94, 0.08), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(0, 159, 153, 0.10), transparent 25%),
    linear-gradient(120deg, #dffafa 0%, #eef9ff 48%, #e7edff 100%);
}

/* Common shape style */
.pattern {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Top-left dotted pattern */
.pattern-1 {
  top: 45px;
  left: 95px;
  width: 170px;
  height: 170px;
  opacity: 0.45;
  background-image: radial-gradient(rgba(0, 159, 153, 0.35) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

/* Top-right dotted pattern */
.pattern-2 {
  top: 70px;
  right: 135px;
  width: 210px;
  height: 210px;
  opacity: 0.28;
  background-image: radial-gradient(rgba(36, 32, 94, 0.25) 1.3px, transparent 1.3px);
  background-size: 18px 18px;
}

/* Bottom-left soft circle */
.pattern-3 {
  bottom: 95px;
  left: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 159, 153, 0.10);
  filter: blur(1px);
}

/* Bottom-right dotted pattern */
.pattern-4 {
  bottom: 160px;
  right: 80px;
  width: 180px;
  height: 180px;
  opacity: 0.45;
  background-image: radial-gradient(rgba(0, 159, 153, 0.32) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

/* Extra light floating shapes */
.page-shell::before {
  content: "";
  position: absolute;
  top: 22%;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(36, 32, 94, 0.06);
  z-index: 0;
}

.page-shell::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: 38%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 159, 153, 0.07);
  z-index: 0;
}

/* Make main content stay above background */
.home-main {
  position: relative;
  z-index: 2;
}

/* Optional: add very soft card glow */
.quick-panel {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 60px rgba(31, 42, 68, 0.12);
}