/* Premium-lite Bootstrap touch shared by frontend + backend */
:root {
  --bt-radius-sm: 0.45rem;
  --bt-radius-md: 0.7rem;
  --bt-radius-lg: 0.9rem;
  --bt-border: rgba(24, 39, 75, 0.11);
  --bt-shadow-sm: 0 6px 16px rgba(17, 24, 39, 0.08);
  --bt-shadow-md: 0 10px 26px rgba(17, 24, 39, 0.12);
  --bt-shadow-lg: 0 14px 32px rgba(17, 24, 39, 0.16);
  --bt-accent: #2f7cf6;
  --bt-accent-soft: rgba(47, 124, 246, 0.12);
}

.card,
.list-group-item,
.dropdown-menu,
.modal-content,
.alert,
.table,
.breadcrumb,
.form-control,
.input-group-text,
.custom-select {
  border-radius: var(--bt-radius-md);
}

.card,
.modal-content,
.content-wrapper .box {
  border: 1px solid var(--bt-border);
  box-shadow: var(--bt-shadow-sm);
}

.card:hover,
.content-wrapper .box:hover {
  box-shadow: var(--bt-shadow-md);
}

.btn {
  border-radius: var(--bt-radius-sm);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(108%);
}

.btn-primary { box-shadow: 0 6px 14px rgba(47, 124, 246, 0.25); }
.btn-success { box-shadow: 0 6px 14px rgba(25, 135, 84, 0.24); }
.btn-warning { box-shadow: 0 6px 14px rgba(255, 193, 7, 0.24); }
.btn-danger { box-shadow: 0 6px 14px rgba(220, 53, 69, 0.24); }

.form-control:focus,
.custom-select:focus {
  border-color: rgba(47, 124, 246, 0.45);
  box-shadow: 0 0 0 0.2rem var(--bt-accent-soft);
}

.badge {
  border-radius: 999px;
  padding: 0.35em 0.65em;
  font-weight: 600;
}

.table {
  overflow: hidden;
}

.table thead th {
  border-top: 0;
  background: linear-gradient(180deg, #f7faff, #edf3ff);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(47, 124, 246, 0.025);
}

.table-hover tbody tr:hover {
  background-color: rgba(47, 124, 246, 0.07);
}

.pagination .page-link {
  border-radius: var(--bt-radius-sm);
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  box-shadow: 0 6px 14px rgba(47, 124, 246, 0.2);
}

.alert {
  border: 0;
  box-shadow: var(--bt-shadow-sm);
}

/* News cards (frontend) */
.content .card .card-title a {
  font-weight: 700;
}

.content .card .card-img,
.content .card img.card-img-top {
  transition: transform 0.25s ease;
}

.content .card:hover .card-img,
.content .card:hover img.card-img-top {
  transform: scale(1.015);
}

.content .card .card-text {
  color: rgba(17, 24, 39, 0.84);
}

/* PPDB forms + admission screens */
.ppdb-list .ppdb-item {
  border-radius: var(--bt-radius-lg);
  box-shadow: var(--bt-shadow-sm);
}

.ppdb-list .ppdb-progress {
  border-radius: 999px;
  overflow: hidden;
}

.ppdb-list .ppdb-progress-bar {
  border-radius: 999px;
}

#frm-discounts .form-control,
form.form-horizontal .form-control,
.admission-form .form-control {
  border-radius: var(--bt-radius-sm);
}

#frm-discounts .table-responsive,
.admission .table-responsive {
  border-radius: var(--bt-radius-md);
}

/* Admin table + DataTables */
.content-wrapper .box {
  border-radius: var(--bt-radius-md);
}

.content-wrapper .box .box-header {
  border-bottom: 1px solid rgba(24, 39, 75, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.content-wrapper .table.table-bordered > thead > tr > th {
  background: linear-gradient(180deg, #f7faff, #edf3ff);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: var(--bt-radius-sm);
  border: 1px solid var(--bt-border);
  padding: 0.25rem 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--bt-radius-sm) !important;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .content-wrapper .box,
  .content .card .card-img,
  .content .card img.card-img-top {
    transition: none;
  }
  .btn:hover {
    transform: none;
    filter: none;
  }
}
