:root{
  --parami-yellow: #ffe11e;
  --parami-navy: #002169;
  --parami-gray: #e6e7e8;
  --parami-ink: #07142f;

  --text: #0b1220;
  --muted: #516071;
  --bg: #f3f5fa;
  --card: #ffffff;
  --hero-overlay: linear-gradient(135deg, rgba(0, 33, 105, 0.84), rgba(7, 20, 47, 0.58));

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(255,225,30,.18) 0%, transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(0,33,105,.10) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}

.container{
  max-width: 1100px;
  margin: 32px auto 56px;
  padding: 0 18px;
}

.admin-container{
  max-width: 1440px;
}

.site-header{
  margin-bottom: 22px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo{
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  box-shadow: 0 12px 25px rgba(10, 24, 55, 0.12);
}

.brand-copy{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name{
  color: var(--parami-navy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle{
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-photo{
  order: 2;
  min-height: 300px;
  border-radius: 28px;
  background:
    var(--hero-overlay),
    url('hero.jpg') center center / cover no-repeat,
    linear-gradient(135deg, #16377f, #07142f);
  box-shadow: 0 20px 45px rgba(0, 33, 105, 0.22);
}

.hero-copy{
  order: 1;
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
  border: 1px solid rgba(0, 33, 105, 0.08);
  box-shadow: 0 12px 30px rgba(10, 24, 55, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.hero p{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.hero-compact .hero-photo{
  min-height: 240px;
}

.card{
  background: var(--card);
  border: 1px solid rgba(0, 33, 105, 0.08);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 14px 34px rgba(10, 24, 55, 0.08);
}

h1{
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--parami-navy);
}

p{
  margin: 10px 0 18px;
  color: var(--muted);
}

.small{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

hr{
  border: 0;
  border-top: 1px solid rgba(0, 33, 105, 0.08);
  margin: 24px 0;
}

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.row > div{
  min-width: 0;
}

label{
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--parami-navy);
}

input, textarea, select{
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 14px;
  border: 1px solid rgba(0, 33, 105, 0.12);
  background: #fbfbfc;
  color: var(--text);
  outline: none;
  transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}

input::placeholder,
textarea::placeholder{
  color: #8b97a6;
}

input:focus,
textarea:focus,
select:focus{
  border-color: var(--parami-navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 225, 30, 0.35);
}

input:active,
textarea:active{
  box-shadow: 0 0 0 2px rgba(255, 225, 30, 0.28);
}

textarea{
  min-height: 120px;
  resize: vertical;
}

.btn{
  margin-top: 20px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,33,105,.20);
  cursor: pointer;
  background: var(--parami-navy);
  color: white;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(0,33,105,.18);
  transition: transform .06s ease, filter .15s ease, box-shadow .15s ease;
}

.btn:hover{
  filter: brightness(1.05);
  box-shadow: 0 12px 22px rgba(0,33,105,.22);
}

.btn:active{
  transform: translateY(1px);
}

.note{
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.5;
}

.alert{
  padding: 14px 16px;
  border-radius: 16px;
  margin: 14px 0;
  border: 1px solid var(--parami-gray);
}

.alert.error{
  background: #fff7f8;
  border-color: #f3c7cf;
  color: #8a1f1f;
}

.alert.ok{
  background: #f1fff6;
  border-color: #bfe9cf;
  color: #1c6b1c;
}

.cf-turnstile{
  max-width: 100%;
}

.turnstile-wrap{
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
}

.site-footer{
  margin-top: 18px;
  padding: 10px 4px 0;
  text-align: center;
}

.site-footer p{
  margin: 0;
  font-size: 13px;
  color: #6a7688;
}

.section-title{
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--parami-navy);
}

.stack{
  display: grid;
  gap: 16px;
}

.stack.tight{
  gap: 12px;
}

.toolbar{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tab-nav{
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.tab-link{
  appearance: none;
  border: 1px solid rgba(0, 33, 105, 0.12);
  background: rgba(255,255,255,0.86);
  color: var(--parami-navy);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(10, 24, 55, 0.06);
  cursor: pointer;
}

.tab-link.active{
  background: var(--parami-navy);
  color: #fff;
  border-color: rgba(0, 33, 105, 0.3);
}

.tab-button{
  font: inherit;
}

.subcard{
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,252,0.95));
  border: 1px solid rgba(0, 33, 105, 0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.confirm-card{
  background: linear-gradient(180deg, rgba(255, 225, 30, 0.96), rgba(255, 225, 30, 0.88));
  border: 1px solid rgba(0, 33, 105, 0.14);
  box-shadow: 0 16px 32px rgba(255, 225, 30, 0.18);
  margin-bottom: 22px;
}

.confirm-card .small,
.confirm-card .section-title{
  color: var(--parami-ink);
}

.admin-sections{
  gap: 22px;
}

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

.table-wrap{
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(0, 33, 105, 0.08);
  border-radius: 18px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.bordered-table{
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.data-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

.data-table th,
.data-table td{
  padding: 14px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 33, 105, 0.08);
}

.data-table th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--parami-navy);
  background: rgba(0, 33, 105, 0.04);
  white-space: nowrap;
}

.data-table tbody tr:last-child td{
  border-bottom: 0;
}

.empty-cell{
  text-align: center;
  color: var(--muted);
}

.wrap-cell{
  min-width: 180px;
  white-space: normal;
  word-break: break-word;
}

.reason-cell{
  min-width: 260px;
}

.status-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid currentColor;
}

.status-pill.ok{
  color: #1c6b1c;
  background: #f1fff6;
}

.status-pill.error{
  color: #8a1f1f;
  background: #fff7f8;
}

.btn-inline{
  width: auto;
  margin-top: 0;
  min-width: 110px;
}

.btn-secondary{
  background: #ffffff;
  color: var(--parami-navy);
}

.btn-danger{
  background: #8a1f1f;
  border-color: rgba(138, 31, 31, 0.35);
}

.actions-cell{
  min-width: 150px;
}

.action-stack{
  display: grid;
  gap: 10px;
}

.is-hidden{
  display: none !important;
}

.hidden-form{
  display: none;
}

.confirm-dialog{
  width: min(480px, calc(100vw - 24px));
  border: 0;
  padding: 0;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(10, 24, 55, 0.22);
}

.confirm-dialog::backdrop{
  background: rgba(7, 20, 47, 0.48);
}

.confirm-dialog-body{
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,247,252,0.97));
  border: 1px solid rgba(0, 33, 105, 0.08);
  border-radius: 22px;
}

.dialog-actions{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.modal-shell{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 47, 0.48);
}

.modal-panel{
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,247,252,0.97));
  border: 1px solid rgba(0, 33, 105, 0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(10, 24, 55, 0.22);
}

.modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.modal-close{
  border: 0;
  background: transparent;
  color: var(--parami-navy);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.request-table td,
.graduate-table td{
  background: rgba(255,255,255,0.9);
}

.request-table{
  table-layout: fixed;
  min-width: 100%;
}

.request-table th,
.request-table td{
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.5;
}

.request-table th:nth-child(1),
.request-table td:nth-child(1){
  width: 4%;
}

.request-table th:nth-child(2),
.request-table td:nth-child(2){
  width: 11%;
}

.request-table th:nth-child(3),
.request-table td:nth-child(3){
  width: 8%;
}

.request-table th:nth-child(4),
.request-table td:nth-child(4){
  width: 12%;
}

.request-table th:nth-child(5),
.request-table td:nth-child(5){
  width: 12%;
}

.request-table th:nth-child(6),
.request-table td:nth-child(6){
  width: 12%;
}

.request-table th:nth-child(7),
.request-table td:nth-child(7){
  width: 9%;
}

.request-table th:nth-child(8),
.request-table td:nth-child(8){
  width: 16%;
}

.request-table th:nth-child(9),
.request-table td:nth-child(9){
  width: 9%;
}

.request-table th:nth-child(10),
.request-table td:nth-child(10){
  width: 7%;
}

.request-table th:nth-child(11),
.request-table td:nth-child(11){
  width: 8%;
}

.graduate-table{
  table-layout: fixed;
  min-width: 100%;
}

.graduate-table th,
.graduate-table td{
  white-space: normal;
  overflow-wrap: anywhere;
}

.graduate-table th:nth-child(1),
.graduate-table td:nth-child(1){
  width: 52px;
}

.graduate-table th:nth-child(2),
.graduate-table td:nth-child(2){
  width: 28%;
}

.graduate-table th:nth-child(3),
.graduate-table td:nth-child(3){
  width: 16%;
}

.graduate-table th:nth-child(4),
.graduate-table td:nth-child(4){
  width: 16%;
}

.graduate-table th:nth-child(5),
.graduate-table td:nth-child(5){
  width: 18%;
}

.graduate-table input,
.graduate-table select{
  min-width: 100%;
  min-height: 44px;
  margin: 0;
}

.logout-card{
  display: grid;
  gap: 16px;
  justify-items: start;
}

.pager{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

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

.graduate-table td{
  min-width: 0;
}

@media (max-width: 900px){
  .container{
    margin: 24px auto 40px;
  }

  .hero-photo{
    min-height: 220px;
  }

  .hero-copy,
  .card{
    padding: 22px;
  }

  .row{
    grid-template-columns: 1fr;
  }

  .brand-name{
    font-size: 21px;
  }

  .toolbar,
  .admin-two-up{
    grid-template-columns: 1fr;
    display: grid;
  }

  .tab-nav{
    display: grid;
    grid-template-columns: 1fr;
  }

  .pager,
  .pager-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .subcard{
    padding: 18px;
  }

  .data-table{
    min-width: 860px;
  }
}

@media (max-width: 420px){
  .container{
    padding: 0 12px;
  }

  .brand{
    gap: 10px;
  }

  .brand-logo{
    width: 54px;
    height: 54px;
    border-radius: 14px;
    padding: 6px;
  }

  .brand-name{
    font-size: 18px;
  }

  .brand-subtitle{
    font-size: 12px;
  }

  .hero-photo{
    min-height: 180px;
    border-radius: 20px;
  }

  .hero-copy,
  .card{
    padding: 18px 16px;
    border-radius: 20px;
  }

  .subcard{
    padding: 16px;
    border-radius: 18px;
  }

  .hero h1{
    font-size: 26px;
  }

  input,
  textarea,
  select,
  .btn{
    font-size: 14px;
  }

  .turnstile-wrap{
    justify-content: center;
  }

  .btn-inline{
    width: 100%;
  }

  .dialog-actions{
    flex-direction: column-reverse;
  }

  .modal-panel{
    padding: 18px;
  }
}
