@import url('./css/ui-font.css?v=20260905');

:root {
  --app-primary: #0284c7;
  --app-primary-dark: #0369a1;
  --app-bg: #f8fafc;
  --app-surface: #ffffff;
  --app-border: #e2e8f0;
  --app-text: #0f172a;
  --app-muted: #64748b;
}

body {
  font-family: 'Sarabun', sans-serif;
  background: var(--app-bg);
  color: var(--app-text);
}

.container,
.card,
.panel,
.box {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  color: var(--app-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .12);
}

button,
.btn,
input[type="submit"],
input[type="button"] {
  border-radius: 12px;
  font-weight: 700;
  transition: all .15s ease;
}

.btn,
button[type="submit"],
input[type="submit"] {
  background-color: var(--app-primary);
  color: #fff;
  border: 0;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--app-primary-dark);
  color: #fff;
}

.btn.btn-warning,
.btn-warning {
  background-color: #f59e0b !important;
  border: 1px solid #d97706 !important;
  color: #0f172a !important; /* Dark text on bright yellow prevents blending */
}
.btn.btn-warning:hover,
.btn-warning:hover {
  background-color: #d97706 !important;
  color: #ffffff !important;
}

.btn.btn-secondary,
.btn-secondary {
  background-color: #64748b !important;
  border: 1px solid #475569 !important;
  color: #ffffff !important;
}
.btn.btn-secondary:hover,
.btn-secondary:hover {
  background-color: #475569 !important;
  color: #ffffff !important;
}

.btn.btn-success,
.btn-success {
  background-color: #10b981 !important;
  border: 1px solid #059669 !important;
  color: #ffffff !important;
}
.btn.btn-success:hover,
.btn-success:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.btn.btn-danger,
.btn-danger {
  background-color: #ef4444 !important;
  border: 1px solid #dc2626 !important;
  color: #ffffff !important;
}
.btn.btn-danger:hover,
.btn-danger:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.btn.btn-light,
.btn-light {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}
.btn.btn-light:hover,
.btn-light:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

table {
  border-color: var(--app-border);
  background: #fff;
}

th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

td {
  color: #334155;
}

a {
  color: var(--app-primary);
}

a:hover {
  color: var(--app-primary-dark);
}

/* Navigation labels are styled as menu items, not inline document links. */
.pp-sidebar a,
.pp-sidebar a:hover,
.pp-sidebar a:focus,
.pp-sidebar a:active,
.pp-account-panel a,
.pp-account-panel a:hover,
.pp-account-panel a:focus,
.pp-account-panel a:active {
  text-decoration: none;
}
