﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --bg: #eef2f6;
  --card: #ffffff;
  --ink: #132433;
  --muted: #5f6f7f;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --line: #dbe3ea;
  --danger: #be2d2d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 10% 5%, #dff3ef 0%, var(--bg) 42%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

h1, h2 { margin: 0 0 8px; letter-spacing: 0.1px; }
label { font-weight: 700; font-size: 13px; color: #254055; }
.muted { color: var(--muted); margin: 0 0 16px; font-weight: 600; }

.center-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

.card {
  background: var(--card);
  border: 1px solid #d6e0e8;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(16, 32, 45, 0.08);
}

.login-card { width: 100%; max-width: 430px; padding: 28px; }
.form-stack { display: grid; gap: 10px; }

input, button, select {
  font: inherit;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

input:focus, select:focus {
  outline: none;
  border-color: #8ab7b1;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

button {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

button.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.error { color: var(--danger); min-height: 20px; font-weight: 600; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar-actions { display: flex; gap: 10px; }
.topbar-actions button {
  transition: all .16s ease;
}
.topbar-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(16, 32, 45, 0.12);
}
.topbar-actions button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(16, 32, 45, 0.12);
}
.topbar-actions .ghost:hover {
  background: #f3f8fb;
  border-color: #c6d7e4;
  color: #1f3b52;
}
.container { padding: 16px; }
.table-wrap { overflow-x: auto; }

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

th, td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5a7184;
}

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  background: #fff;
  color: #1e3549;
  border: 1px solid #d7e2ea;
  box-shadow: none;
  transition: all .16s ease;
}
.icon-btn:hover {
  background: #f3f8fb;
  border-color: #bdd3e1;
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #284255;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn.icon-danger svg {
  stroke: #a13b3b;
}
.icon-btn.icon-danger:hover {
  background: #fff3f3;
  border-color: #e9c8c8;
}
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #e6f4ef; color: #115743; font-size: 12px; }
.viewer-wrap { padding: 14px; }
.viewer-card { max-width: 1000px; margin: 0 auto; padding: 14px; }
.pdf-frame { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 10px; }

@media (max-width: 768px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pdf-frame { height: 68vh; }
}

/* SweetAlert2 Theme */
.rmt-swal {
  border-radius: 16px !important;
  border: 1px solid #d6e0e8 !important;
  box-shadow: 0 18px 40px rgba(16, 32, 45, 0.14) !important;
  padding: 1.1rem 1.15rem 1rem !important;
}
.rmt-swal-title {
  color: #132433 !important;
  font-weight: 800 !important;
  letter-spacing: 0.1px !important;
}
.rmt-swal-html {
  color: #4c5f73 !important;
}
.rmt-swal-confirm,
.rmt-swal-cancel {
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.rmt-swal-confirm {
  background: linear-gradient(180deg, #0f766e 0%, #0b5f59 100%) !important;
  color: #fff !important;
}
.rmt-swal-cancel {
  background: #fff !important;
  border-color: #d7e2ea !important;
  color: #274157 !important;
}
.rmt-swal-confirm:hover { filter: brightness(1.03); }
.rmt-swal-cancel:hover { background: #f4f8fb !important; }
