@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css);
* {
  box-sizing: border-box;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
}

html {
  height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  color: #555555;
  background-color: #ebeced;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  color: #4a5361;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  padding-left: 280px;
  z-index: 999;
  width: 100%;
  height: 55px;
  background-color: #fff;
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.15);
}
header a {
  display: inline-flex;
  color: #4a5361;
  height: 100%;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}
header a i {
  font-size: 16px;
}
header a:hover, header a:active {
  color: #606c7e;
}
header .space-between {
  flex: 1;
}
header .dropdown {
  display: inline-flex;
  color: #4a5361;
  height: 100%;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
}
header .dropdown i {
  font-size: 18px;
}
header .dropdown:hover, header .dropdown:active {
  color: #606c7e;
}
header .dropdown .list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 150px;
  background-color: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.05);
}
header .dropdown .list a {
  padding: 10px 15px;
  font-size: 14px;
}
header .dropdown .list a:hover {
  background-color: #fbfbfb;
}
header .dropdown:hover .list, header .dropdown:active .list {
  display: flex;
  flex-flow: column;
}
header.full {
  padding-left: 0;
}

aside {
  position: fixed;
  z-index: 999999;
  height: 100%;
  width: 280px;
  display: flex;
  flex-flow: column;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  overflow-y: auto;
}

aside .aside-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px 16px;
  min-height: 55px;
}

aside .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.12);
}

aside .brand-title {
  font-weight: 800;
  color: #111827;
  font-size: 14px;
  line-height: 1.1;
}

aside .brand-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

aside > a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #374151;
  padding: 10px 12px;
  margin: 2px 10px;
  border-radius: 14px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

aside > a .nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.06);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

aside > a .nav-ico img {
  width: 20px;
  height: 20px;
  display: block;
}

aside > a .nav-text {
  flex: 1;
}

aside > a:hover {
  background: rgba(29, 78, 216, 0.08);
}

aside > a.selected {
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
}

aside > a.selected .nav-ico {
  background: rgba(29, 78, 216, 0.16);
}

aside > a.selected + .sub {
  display: flex;
}

aside > a .note {
  background: rgba(29, 78, 216, 0.16);
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

aside .sub {
  display: none;
  flex-flow: column;
  padding: 4px 0 10px 0;
  margin: 0 10px 6px 10px;
}

aside .sub a {
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  padding: 8px 12px 8px 44px;
  border-radius: 12px;
  margin: 1px 0;
}

aside .sub a span.square {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 1px -20px;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.6);
}

aside .sub a:hover,
aside .sub a.selected {
  background: rgba(17, 24, 39, 0.05);
  color: #111827;
}

aside .sub a:hover span.square,
aside .sub a.selected span.square {
  background: rgba(29, 78, 216, 0.85);
}

aside .footer {
  display: flex;
  flex-flow: column;
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: #6b7280;
}

aside .footer a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
}

aside .footer a:hover {
  text-decoration: underline;
}

aside.closed {
  display: none;
}

main {
  padding: 30px;
  padding-left: 310px;
  padding-top: 85px;
}
main.full {
  padding-left: 30px;
  padding-right: 30px;
}
main h2 {
  font-size: 20px;
  padding-bottom: 20px;
  font-weight: 600;
}
main h2 span {
  font-size: 16px;
  margin-left: 5px;
  font-weight: 600;
  color: #959faf;
}
main .content-title {
  border-bottom: 1px solid #dbdddf;
  display: flex;
}
main .content-title h2 {
  flex: 1;
}
main .content-title .btn {
  height: 36px;
}
main .content-title .title {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 15px;
}
main .content-title .title i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #489c80;
  color: #fff;
  width: 52px;
  height: 42px;
  border-radius: 4px;
  margin-right: 12px;
}
main .content-title .title i.alt {
  background-color: #7c8394;
}
main .content-title .title h2 {
  padding: 0 0 3px 0;
}
main .content-title .title p {
  margin: 0;
  font-size: 14px;
  color: #99999a;
  font-weight: 500;
}
main .msg {
  display: flex;
  align-items: center;
  margin: 15px 0 0 0;
  padding: 15px;
  font-weight: 500;
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.1);
}
main .msg p {
  margin: 0;
  padding: 0 15px;
  font-size: 14px;
  flex: 1;
}
main .msg i.fa-times {
  align-self: flex-end;
  justify-content: flex-end;
  cursor: pointer;
}
main .msg i.fa-times:hover {
  opacity: 0.9;
}
main .msg.success {
  background-color: #C3F3D7;
  border-left: 4px solid #51a775;
  color: #51a775;
}
main .msg.success i {
  color: #51a775;
}
main .msg.error {
  background-color: #f3c3c3;
  border-left: 4px solid #a75151;
  color: #a75151;
}
main .msg.error i {
  color: #a75151;
}
main .filter-list {
  display: flex;
  flex-flow: wrap;
}
main .filter-list .filter {
  display: inline-flex;
  align-items: center;
  background-color: #d3d5d7;
  border-radius: 50px;
  padding: 3px 12px;
  margin: 20px 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #555f6f;
}
main .filter-list .filter a {
  text-decoration: none;
  margin-right: 10px;
  color: #959faf;
}
main .filter-list .filter a i {
  font-size: 14px;
}
main .filter-list .filter a:hover {
  color: #555f6f;
}
main .content-header {
  display: flex;
  justify-content: space-between;
}
main .content-header form {
  display: flex;
  justify-content: space-between;
}
main .content-header form .search input, main .content-header form > select {
  background-color: transparent;
  outline: none;
  border: none;
  height: 40px;
  width: 220px;
  border-bottom: 1px solid #d0d3d5;
  padding-right: 25px;
  margin-left: 10px;
}
main .content-header form .search input:hover, main .content-header form .search input:active, main .content-header form > select:hover, main .content-header form > select:active {
  border-bottom: 1px solid #b5b9bd;
}
main .content-header form > select {
  width: 150px;
}
main .content-header form > a {
  text-decoration: none;
  display: inline-flex;
  color: #676d72;
  justify-self: center;
  align-items: center;
  padding: 0 5px;
}
main .content-header form > a:hover {
  color: #4f5357;
}
main .content-header .search label {
  position: relative;
}
main .content-header .search i {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 0;
  font-size: 14px;
  margin-top: auto;
  margin-bottom: auto;
  color: #b5b9bd;
}
main .content-header .filters {
  display: flex;
  position: relative;
  margin-right: 10px;
  margin-bottom: 3px;
  align-items: center;
}
main .content-header .filters a {
  text-decoration: none;
  font-weight: 600;
  color: #4a5361;
  white-space: nowrap;
}
main .content-header .filters a:hover {
  color: #343a44;
}
main .content-header .filters .list {
  display: none;
  top: calc(100% + 5px);
  width: 200px;
  flex-flow: column;
  position: absolute;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
}
main .content-header .filters .list label {
  padding-bottom: 5px;
  font-size: 14px;
}
main .content-header .filters .list input {
  margin-right: 10px;
}
main .content-header .filters .list input, main .content-header .filters .list select {
  margin: 5px 0 5px 0;
}
main .content-header .filters .list input[type=text] {
  width: 100%;
  padding: 3px;
  border: 1px solid #dedfe1;
  font-size: 14px;
}
main .content-header .filters .list select {
  width: 100%;
  font-size: 14px;
  padding: 3px;
  border: 1px solid #dedfe1;
}
main .content-header .filters .list button {
  background: #4a79b4;
  border: 0;
  color: #FFFFFF;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  cursor: pointer;
  border-radius: 4px;
}
main .content-header .filters .list button:hover {
  background: #4672a9;
}
main .content-block {
  background-color: #fff;
  margin-top: 25px;
  padding: 15px;
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
main .content-block .block-header {
  position: relative;
  border-bottom: 1px solid #f0f1f2;
  margin-bottom: 20px;
  padding: 0 15px 15px 15px;
  margin-left: -15px;
  margin-right: -15px;
  font-size: 14px;
  font-weight: 500;
}
main .content-block .block-header i {
  display: inline-flex;
  height: 25px;
  width: 25px;
  padding-top: 2px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #d5e7fa;
  color: #6e94ba;
  margin-right: 10px;
}
main .content-block .message {
  padding: 15px 0;
}
main .content-block .extras {
  display: flex;
  flex-flow: wrap;
  border-top: 1px solid #f0f1f2;
  margin-top: 15px;
}
main .content-block .extras .extra {
  padding-top: 20px;
  width: 25%;
}
main .content-block .extras .extra h3 {
  font-size: 14px;
  font-weight: 500;
  padding: 0 0 5px 0;
  margin: 0;
  color: #6e7581;
}
main .content-block .extras .extra p {
  padding: 5px 0;
  margin: 0;
}
main .content-block .extras .extra a {
  text-decoration: none;
}
main .content-block .extras .extra a img {
  margin: 5px 5px 0 0;
  border-radius: 4px;
}
main .content-block .extras .extra a:hover img {
  opacity: 0.8;
}
main .content-block-wrapper {
  display: flex;
  width: 100%;
  padding-top: 25px;
}
main .content-block-wrapper .content-block {
  width: 100%;
  margin: 0 10px;
}
main .content-block-wrapper .content-block:first-child {
  margin-left: 0;
}
main .content-block-wrapper .content-block:last-child {
  margin-right: 0;
}
main .tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #dedfe1;
  margin-top: 25px;
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.03);
  z-index: 100;
}
main .tabs a {
  display: flex;
  text-decoration: none;
  padding: 12px 15px;
  border: 0;
  color: #6b788c;
  font-weight: 500;
  font-size: 14px;
}
main .tabs a:hover {
  background-color: #d8dadc;
}
main .tabs a.active {
  color: #4a5361;
  background-color: #fff;
}
main .tabs ~ .content-block {
  margin-top: 0;
  box-shadow: 0px 6px 5px 1px rgba(0, 0, 0, 0.03);
}
main .tab-content {
  display: none;
}
main .tab-content.active {
  display: block;
}
main .dashboard {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
}
main .dashboard .stat {
  width: 24%;
  padding: 0;
  display: flex;
  flex-flow: wrap;
}
main .dashboard .stat > i {
  display: inline-flex;
  justify-content: center;
  padding: 15px;
  margin: 30px 25px 0 0;
  align-items: center;
  font-size: 18px;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background-color: #d5e7fa;
  color: #6e94ba;
}
main .dashboard .stat .data {
  padding: 7px;
  flex: 1;
}
main .dashboard .stat .data h3 {
  font-size: 16px;
  font-weight: 400;
  padding: 15px 15px 0 15px;
}
main .dashboard .stat .data p {
  margin: 0;
  padding: 10px 15px 15px 15px;
  font-size: 24px;
  font-weight: 700;
}
main .dashboard .stat .footer {
  width: 100%;
  border-top: 1px solid #ebeced;
  background-color: #fbfbfb;
  color: #9aa0a5;
  font-size: 14px;
  padding: 10px;
}
main .dashboard .stat .footer i {
  padding-right: 5px;
}
main .form {
  display: flex;
  flex-flow: column;
  width: 500px;
  padding: 20px;
}
main .form input[type=text], main .form input[type=password], main .form input[type=datetime-local], main .form input[type=email], main .form input[type=number], main .form textarea, main .form select, main .form input[type=file] {
  width: 100%;
  padding: 15px 5px;
  margin-bottom: 25px;
  border: 0;
  border-bottom: 1px solid #dedfe1;
}
main .form input[type=text]:hover, main .form input[type=text]:active, main .form input[type=password]:hover, main .form input[type=password]:active, main .form input[type=datetime-local]:hover, main .form input[type=datetime-local]:active, main .form input[type=email]:hover, main .form input[type=email]:active, main .form input[type=number]:hover, main .form input[type=number]:active, main .form textarea:hover, main .form textarea:active, main .form select:hover, main .form select:active, main .form input[type=file]:hover, main .form input[type=file]:active {
  border-bottom: 1px solid #b5b9bd;
}
main .form textarea {
  height: 200px;
}
main .form input[type=checkbox] {
  width: auto;
  margin: 15px 0 25px 2px;
  transform: scale(1.2);
}
main .form label {
  display: block;
  font-weight: 600;
}
main .form label .required {
  font-style: normal;
  color: #e26060;
}
main .form button {
  background-color: #dedfe1;
  color: #676d72;
  border: 0;
  padding: 5px;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
main .form button:hover {
  background-color: #d6d8da;
}
main .form .comment {
  font-size: 14px;
  color: #888888;
  padding: 10px 0 5px;
  margin: 0;
}
main .form .hidden {
  display: none;
}
main .form .source ul {
  margin: 0;
  padding: 0 15px 15px 20px;
  font-size: 14px;
  color: #6f6f6f;
}
main .form .source ul li {
  margin: 0;
  padding: 0;
  font-size: 14px;
  margin-bottom: 15px;
}
main .form .source ul li strong {
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  padding: 0 0 5px 0;
  color: #555555;
}
main .form .source ul li em {
  font-size: 14px;
}
main .top-nav {
  display: flex;
  flex-flow: wrap;
  padding-top: 20px;
}
main .error {
  padding: 15px;
  margin: 0;
}
main .pagination {
  display: flex;
  align-items: center;
  padding: 25px 0;
}
main .pagination a {
  display: inline-flex;
  text-decoration: none;
  background-color: #758497;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
  padding: 7px 10px;
}
main .pagination a:hover {
  background-color: #6d7c90;
}
main .pagination a:first-child {
  margin-right: 10px;
}
main .pagination a:last-child {
  margin-left: 10px;
}
main .pagination span {
  font-weight: 600;
}

.table {
  overflow-x: auto;
  padding: 0 10px;
}
.table table {
  width: 100%;
  border-collapse: collapse;
}
.table table thead td {
  font-weight: 600;
  font-size: 14px;
  padding: 15px 0;
}
.table table thead td a {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
}
.table table thead td i {
  padding-left: 5px;
}
.table table thead tr {
  border-bottom: 1px solid #f0f1f2;
}
.table table tbody tr:first-child td {
  padding-top: 10px;
}
.table table tbody td {
  padding: 8px 0;
}
.table table tbody td .green, .table table tbody td .red, .table table tbody td .grey, .table table tbody td .orange {
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 15px;
  text-transform: capitalize;
}
.table table tbody td .green {
  background-color: #b8f7d5;
  color: #34aa6b;
}
.table table tbody td .red {
  background-color: #f7caca;
  color: #b64343;
}
.table table tbody td .grey {
  background-color: #e8ebec;
  color: #8e9499;
}
.table table tbody td .orange {
  background-color: #f8eac2;
  color: #dea200;
}
.table table tbody td.no-results {
  text-align: center;
  color: #9aa0a5;
  line-height: 30px;
}
.table table tbody td.truncated-txt {
  max-width: 200px;
}
.table table tbody td.truncated-txt div {
  color: #737980;
}
.table table tbody td.truncated-txt div span {
  display: inline;
  font-size: 14px;
  word-wrap: break-word;
}
.table table tbody td.truncated-txt div span.full {
  display: none;
}
.table table tbody td.truncated-txt div .read-more {
  text-decoration: none;
  font-size: 14px;
  color: #2762cf;
  font-weight: 500;
}
.table table tbody td.truncated-txt.expanded div span.full {
  display: inline;
}
.table table tbody td.truncated-txt.expanded div span.short {
  display: none;
}
.table table tbody td.truncated-txt.expanded div .read-more {
  display: none;
}
.table table tbody td.user span {
  display: block;
  color: #9aa0a5;
  font-size: 14px;
}
.table table tbody .img {
  width: 40px;
  padding: 5px 0;
  padding-right: 15px;
}
.table table tbody .img span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background-color: #777;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}
.table table tbody .img img {
  border-radius: 50px;
  width: 30px;
  height: 30px;
}

/* ===== Improved Login UI ===== */
.login {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(27,111,190,0.18), transparent 60%),
    linear-gradient(180deg, #f8f9f9 0%, #eef0f2 100%);
  padding: 48px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.login form {
  display: flex;
  flex-flow: column;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background-color: #fff;
  padding: 28px 28px 22px;
  border-radius: 12px;
  box-shadow: 0px 10px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef0f2;
  position: relative;
  overflow: hidden;
}

/* top accent */
.login form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1b6fbe 0%, #4a79b4 60%, #7c8394 100%);
}

/* Optional brand header support (if you add logo/name later) */
.login form .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
}
.login form .brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.login form .brand .name {
  font-weight: 700;
  color: #4a5361;
  font-size: 16px;
  text-align: center;
}
.login form .brand .sub {
  font-size: 13px;
  color: #8b93a0;
  text-align: center;
  margin-top: -4px;
}

.login form h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px 0;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Inputs */
.login form input[type=password],
.login form input[type=email] {
  border: 1px solid #e6e9ee;
  background: #fbfcfd;
  padding: 12px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.login form input[type=password]::placeholder,
.login form input[type=email]::placeholder {
  color: #9aa0a5;
}

.login form input[type=password]:focus,
.login form input[type=email]:focus {
  border-color: rgba(27,111,190,0.55);
  box-shadow: 0 0 0 4px rgba(27,111,190,0.12);
  background: #ffffff;
}

/* If you wrap inputs in a .field with an icon (optional) */
.login form .field {
  position: relative;
}
.login form .field i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a5;
  pointer-events: none;
  font-size: 14px;
}
.login form .field input[type=password],
.login form .field input[type=email] {
  padding-left: 38px;
}

/* Submit button */
.login form input[type=submit] {
  appearance: none;
  background: #1b6fbe;
  border: 0;
  border-radius: 10px;
  color: #FFFFFF;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: transform .05s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 18px rgba(27,111,190,0.18);
}

.login form input[type=submit]:hover {
  background: #1862a8;
}

.login form input[type=submit]:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(27,111,190,0.16);
}

/* Message text (your login.php prints <p><?=$msg?></p>) */
.login form p {
  margin: 12px 0 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3c3c3;
  border-left: 4px solid #a75151;
  color: #a75151;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

/* Optional link row support (if you add links later) */
.login form .login-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
}
.login form .login-links a {
  text-decoration: none;
  color: #1b6fbe;
}
.login form .login-links a:hover {
  text-decoration: underline;
}

/* Mobile tweaks */
@media screen and (max-width: 420px) {
  .login form {
    padding: 22px 18px 18px;
    border-radius: 12px;
  }
}
/* ===== /Improved Login UI ===== */


.link1, .link2 {
  text-decoration: none;
  color: #0060ba;
  border-bottom: 1px dotted;
  margin: 0 5px 0 0;
}
.link1:hover, .link2:hover {
  color: #003260;
}

.link2 {
  color: #ba0000;
}
.link2:hover {
  color: #600000;
}

.title1 {
  color: #6a6e75;
  border-bottom: 1px solid #f0f1f2;
  margin-bottom: 15px;
  padding-bottom: 15px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  border: 0;
  background: #4a79b4;
  color: #FFFFFF;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  height: 38px;
}
.btn:hover {
  background: #4672a9;
}
.btn.green {
  background: #4ab46d;
}
.btn.green:hover {
  background: #46a966;
}
.btn.red {
  background: #b44a4a;
}
.btn.red:hover {
  background: #a94646;
}
.btn.alt {
  color: #75797e;
  border: 1px solid #d4dbde;
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.03);
  background: #f1f3f4;
}
.btn.alt:hover {
  background: #eef1f2;
}
.btn.disabled {
  background: #b1b3b4;
}
.btn.disabled:hover {
  background: #a9abad;
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}
.btn .loader,
.btn .loader::after {
  width: 15px;
  height: 15px;
}
.btn .loader {
  margin: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.loader,
.loader::after {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.loader {
  position: relative;
  margin: 60px auto;
  border-top: 2px solid rgba(154, 158, 162, 0.2);
  border-right: 2px solid rgba(154, 158, 162, 0.2);
  border-bottom: 2px solid rgba(154, 158, 162, 0.2);
  border-left: 2px solid #9a9ea2;
  transform: translateZ(0);
  animation: loader 1.1s infinite linear;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.pad-1 {
  padding: 5px;
}

.mar-1 {
  margin: 5px;
}

.pad-2 {
  padding: 10px;
}

.mar-2 {
  margin: 10px;
}

.pad-3 {
  padding: 15px;
}

.mar-3 {
  margin: 15px;
}

.pad-4 {
  padding: 20px;
}

.mar-4 {
  margin: 20px;
}

.pad-5 {
  padding: 25px;
}

.mar-5 {
  margin: 25px;
}

.pad-bot-1 {
  padding-bottom: 5px;
}

.pad-top-1 {
  padding-top: 5px;
}

.pad-left-1 {
  padding-left: 5px;
}

.pad-right-1 {
  padding-right: 5px;
}

.pad-x-1 {
  padding-left: 5px;
  padding-right: 5px;
}

.pad-y-1 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.mar-bot-1 {
  margin-bottom: 5px;
}

.mar-top-1 {
  margin-top: 5px;
}

.mar-left-1 {
  margin-left: 5px;
}

.mar-right-1 {
  margin-right: 5px;
}

.mar-x-1 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.mar-y-1 {
  margin-left: 5px;
  margin-right: 5px;
}

.pad-bot-2 {
  padding-bottom: 10px;
}

.pad-top-2 {
  padding-top: 10px;
}

.pad-left-2 {
  padding-left: 10px;
}

.pad-right-2 {
  padding-right: 10px;
}

.pad-x-2 {
  padding-left: 10px;
  padding-right: 10px;
}

.pad-y-2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mar-bot-2 {
  margin-bottom: 10px;
}

.mar-top-2 {
  margin-top: 10px;
}

.mar-left-2 {
  margin-left: 10px;
}

.mar-right-2 {
  margin-right: 10px;
}

.mar-x-2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mar-y-2 {
  margin-left: 10px;
  margin-right: 10px;
}

.pad-bot-3 {
  padding-bottom: 15px;
}

.pad-top-3 {
  padding-top: 15px;
}

.pad-left-3 {
  padding-left: 15px;
}

.pad-right-3 {
  padding-right: 15px;
}

.pad-x-3 {
  padding-left: 15px;
  padding-right: 15px;
}

.pad-y-3 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.mar-bot-3 {
  margin-bottom: 15px;
}

.mar-top-3 {
  margin-top: 15px;
}

.mar-left-3 {
  margin-left: 15px;
}

.mar-right-3 {
  margin-right: 15px;
}

.mar-x-3 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.mar-y-3 {
  margin-left: 15px;
  margin-right: 15px;
}

.pad-bot-4 {
  padding-bottom: 20px;
}

.pad-top-4 {
  padding-top: 20px;
}

.pad-left-4 {
  padding-left: 20px;
}

.pad-right-4 {
  padding-right: 20px;
}

.pad-x-4 {
  padding-left: 20px;
  padding-right: 20px;
}

.pad-y-4 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mar-bot-4 {
  margin-bottom: 20px;
}

.mar-top-4 {
  margin-top: 20px;
}

.mar-left-4 {
  margin-left: 20px;
}

.mar-right-4 {
  margin-right: 20px;
}

.mar-x-4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.mar-y-4 {
  margin-left: 20px;
  margin-right: 20px;
}

.pad-bot-5 {
  padding-bottom: 25px;
}

.pad-top-5 {
  padding-top: 25px;
}

.pad-left-5 {
  padding-left: 25px;
}

.pad-right-5 {
  padding-right: 25px;
}

.pad-x-5 {
  padding-left: 25px;
  padding-right: 25px;
}

.pad-y-5 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.mar-bot-5 {
  margin-bottom: 25px;
}

.mar-top-5 {
  margin-top: 25px;
}

.mar-left-5 {
  margin-left: 25px;
}

.mar-right-5 {
  margin-right: 25px;
}

.mar-x-5 {
  margin-top: 25px;
  margin-bottom: 25px;
}

.mar-y-5 {
  margin-left: 25px;
  margin-right: 25px;
}

@media screen and (max-width: 1000px) {
  header {
    padding-left: 0;
  }
  .responsive-hidden {
    display: none !important;
  }
  .responsive-width-100 {
    width: 100% !important;
    flex: auto !important;
    flex-basis: 100% !important;
  }
  .responsive-flex-column {
    flex-flow: column;
  }
  .responsive-flex-wrap {
    flex-flow: wrap;
  }
  .responsive-flex {
    display: flex;
  }
  main {
    padding: 70px 7px 20px 7px;
  }
  main .content-header {
    max-width: 100%;
  }
  main .content-header form {
    padding-top: 10px;
  }
  main .content-header form .search input, main .content-header form > select {
    padding-right: 0;
    margin-left: 0;
  }
  main .content-block {
    padding: 5px;
  }
  main .content-block .block-header {
    padding-top: 10px;
  }
  main .dashboard {
    flex-flow: column;
  }
  main .dashboard .stat {
    width: 100%;
  }
  .responsive-pad-1 {
    padding: 5px;
  }
  .responsive-mar-1 {
    margin: 5px;
  }
  .responsive-pad-2 {
    padding: 10px;
  }
  .responsive-mar-2 {
    margin: 10px;
  }
  .responsive-pad-3 {
    padding: 15px;
  }
  .responsive-mar-3 {
    margin: 15px;
  }
  .responsive-pad-4 {
    padding: 20px;
  }
  .responsive-mar-4 {
    margin: 20px;
  }
  .responsive-pad-5 {
    padding: 25px;
  }
  .responsive-mar-5 {
    margin: 25px;
  }
  .responsive-pad-bot-1 {
    padding-bottom: 5px;
  }
  .responsive-pad-top-1 {
    padding-top: 5px;
  }
  .responsive-pad-left-1 {
    padding-left: 5px;
  }
  .responsive-pad-right-1 {
    padding-right: 5px;
  }
  .responsive-pad-x-1 {
    padding-left: 5px;
    padding-right: 5px;
  }
  .responsive-pad-y-1 {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .responsive-mar-bot-1 {
    margin-bottom: 5px;
  }
  .responsive-mar-top-1 {
    margin-top: 5px;
  }
  .responsive-mar-left-1 {
    margin-left: 5px;
  }
  .responsive-mar-right-1 {
    margin-right: 5px;
  }
  .responsive-mar-x-1 {
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .responsive-mar-y-1 {
    margin-left: 5px;
    margin-right: 5px;
  }
  .responsive-pad-bot-2 {
    padding-bottom: 10px;
  }
  .responsive-pad-top-2 {
    padding-top: 10px;
  }
  .responsive-pad-left-2 {
    padding-left: 10px;
  }
  .responsive-pad-right-2 {
    padding-right: 10px;
  }
  .responsive-pad-x-2 {
    padding-left: 10px;
    padding-right: 10px;
  }
  .responsive-pad-y-2 {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .responsive-mar-bot-2 {
    margin-bottom: 10px;
  }
  .responsive-mar-top-2 {
    margin-top: 10px;
  }
  .responsive-mar-left-2 {
    margin-left: 10px;
  }
  .responsive-mar-right-2 {
    margin-right: 10px;
  }
  .responsive-mar-x-2 {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .responsive-mar-y-2 {
    margin-left: 10px;
    margin-right: 10px;
  }
  .responsive-pad-bot-3 {
    padding-bottom: 15px;
  }
  .responsive-pad-top-3 {
    padding-top: 15px;
  }
  .responsive-pad-left-3 {
    padding-left: 15px;
  }
  .responsive-pad-right-3 {
    padding-right: 15px;
  }
  .responsive-pad-x-3 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .responsive-pad-y-3 {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .responsive-mar-bot-3 {
    margin-bottom: 15px;
  }
  .responsive-mar-top-3 {
    margin-top: 15px;
  }
  .responsive-mar-left-3 {
    margin-left: 15px;
  }
  .responsive-mar-right-3 {
    margin-right: 15px;
  }
  .responsive-mar-x-3 {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .responsive-mar-y-3 {
    margin-left: 15px;
    margin-right: 15px;
  }
  .responsive-pad-bot-4 {
    padding-bottom: 20px;
  }
  .responsive-pad-top-4 {
    padding-top: 20px;
  }
  .responsive-pad-left-4 {
    padding-left: 20px;
  }
  .responsive-pad-right-4 {
    padding-right: 20px;
  }
  .responsive-pad-x-4 {
    padding-left: 20px;
    padding-right: 20px;
  }
  .responsive-pad-y-4 {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .responsive-mar-bot-4 {
    margin-bottom: 20px;
  }
  .responsive-mar-top-4 {
    margin-top: 20px;
  }
  .responsive-mar-left-4 {
    margin-left: 20px;
  }
  .responsive-mar-right-4 {
    margin-right: 20px;
  }
  .responsive-mar-x-4 {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .responsive-mar-y-4 {
    margin-left: 20px;
    margin-right: 20px;
  }
  .responsive-pad-bot-5 {
    padding-bottom: 25px;
  }
  .responsive-pad-top-5 {
    padding-top: 25px;
  }
  .responsive-pad-left-5 {
    padding-left: 25px;
  }
  .responsive-pad-right-5 {
    padding-right: 25px;
  }
  .responsive-pad-x-5 {
    padding-left: 25px;
    padding-right: 25px;
  }
  .responsive-pad-y-5 {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .responsive-mar-bot-5 {
    margin-bottom: 25px;
  }
  .responsive-mar-top-5 {
    margin-top: 25px;
  }
  .responsive-mar-left-5 {
    margin-left: 25px;
  }
  .responsive-mar-right-5 {
    margin-right: 25px;
  }
  .responsive-mar-x-5 {
    margin-top: 25px;
    margin-bottom: 25px;
  }
  .responsive-mar-y-5 {
    margin-left: 25px;
    margin-right: 25px;
  }
}
/* =========================================================
   Modern UI Refresh (SISL / Avantis) – overrides
   Keeps original class names/markup intact.
   ========================================================= */
:root{
  --adm-bg: #f5f7fb;
  --adm-surface: #ffffff;
  --adm-surface-2: rgba(255,255,255,.78);
  --adm-text: #0f172a;
  --adm-muted: #5b677a;
  --adm-border: rgba(15,23,42,.10);
  --adm-shadow: 0 10px 30px rgba(15,23,42,.08);
  --adm-shadow-sm: 0 6px 18px rgba(15,23,42,.08);
  --adm-primary: #2563eb;
  --adm-primary-2: #1d4ed8;
  --adm-success: #16a34a;
  --adm-warning: #f59e0b;
  --adm-danger: #ef4444;
  --adm-sidebar: #0b1220;
  --adm-sidebar-2: #0f1b30;
  --adm-radius: 14px;
}

body.admin{
  background: radial-gradient(1100px 600px at 15% -10%, rgba(37,99,235,.15), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(16,185,129,.10), transparent 55%),
              var(--adm-bg);
  color: var(--adm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
aside{
  background: linear-gradient(180deg, var(--adm-sidebar), var(--adm-sidebar-2));
  border-right: 1px solid rgba(255,255,255,.06);
}
aside h1{
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
aside > a{
  border-left: 3px solid transparent;
  padding: 12px 18px;
  color: rgba(255,255,255,.72);
}
aside > a i{opacity:.9}
aside > a:hover, aside > a.selected{
  background: rgba(255,255,255,.06);
  border-left-color: rgba(37,99,235,.9);
  color: #fff;
  padding: 12px 18px;
}
aside > a .note{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}
aside .sub{
  background: rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
aside .sub a{
  color: rgba(255,255,255,.70);
  padding: 6px 18px;
}
aside .sub a:hover, aside .sub a.selected{color:#fff}
aside .footer{
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
}
aside .footer a{color: rgba(255,255,255,.55)}
aside .footer a:hover{color:#fff}

/* Top bar */
header{
  background: var(--adm-surface-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--adm-border);
  box-shadow: none;
}
header a, header .dropdown{color: var(--adm-text)}
header a:hover, header .dropdown:hover{color: #0b1220}
header .dropdown .list{
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--adm-shadow-sm);
}
header .dropdown .list a{
  font-size: 13px;
}

/* Main layout */
main{
  padding-top: 92px;
}
main h2{color: var(--adm-text)}
main .content-title{
  border-bottom: 0;
  margin-top: 8px;
}
main .content-title .title i{
  border-radius: 12px;
  background: rgba(37,99,235,.12);
  color: var(--adm-primary);
}
main .content-title .title i.alt{
  background: rgba(15,23,42,.08);
  color: #334155;
}
main .content-title .title p{color: var(--adm-muted)}

/* Cards */
main .content-block{
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  box-shadow: var(--adm-shadow-sm);
  padding: 18px;
}
main .content-block .block-header{
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: transparent;
}

/* Dashboard stats */
.dashboard{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.content-block.stat{
  position: relative;
  padding: 18px;
  overflow: hidden;
}
.content-block.stat:before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(520px 240px at 10% 0%, rgba(37,99,235,.14), transparent 55%);
  pointer-events:none;
}
.content-block.stat .data h3{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--adm-muted);
}
.content-block.stat .data p{
  font-size: 28px;
  font-weight: 800;
  color: var(--adm-text);
  margin-top: 8px;
}
.content-block.stat > i{
  position:absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  background: rgba(37,99,235,.10);
  color: var(--adm-primary);
}
.content-block.stat .footer{
  margin-top: 14px;
  border-top: 1px solid rgba(15,23,42,.08);
  color: var(--adm-muted);
  padding-top: 12px;
}
.content-block.stat:hover{
  transform: translateY(-1px);
  box-shadow: var(--adm-shadow);
}

/* Tables */
main .table{
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden;
}
main table thead tr{
  background: rgba(15,23,42,.03);
}
main table thead td{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #475569;
}
main table tbody tr{
  border-top: 1px solid rgba(15,23,42,.06);
}
main table tbody tr:hover{
  background: rgba(37,99,235,.05);
}

/* Pills (status) */
main table tbody td span.grey,
main table tbody td span.orange,
main table tbody td span.green{
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 12px;
}
main table tbody td span.grey{background: rgba(148,163,184,.25); color: #334155;}
main table tbody td span.orange{background: rgba(245,158,11,.18); color: #92400e;}
main table tbody td span.green{background: rgba(22,163,74,.15); color: #166534;}

/* Buttons + links */
.btn{
  border-radius: 12px !important;
  border: 1px solid rgba(37,99,235,.18) !important;
  background: rgba(37,99,235,.10) !important;
  color: var(--adm-primary-2) !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  padding: 10px 14px !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{
  background: rgba(37,99,235,.14) !important;
  box-shadow: 0 8px 22px rgba(37,99,235,.14);
  transform: translateY(-1px);
}
.btn.alt{
  border-color: rgba(15,23,42,.12) !important;
  background: rgba(15,23,42,.04) !important;
  color: #0f172a !important;
}
.btn.red{
  border-color: rgba(239,68,68,.22) !important;
  background: rgba(239,68,68,.10) !important;
  color: #b91c1c !important;
}

.link1{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}
.link1:hover{background:#fff; box-shadow: 0 10px 22px rgba(15,23,42,.10)}

/* Inputs */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
textarea,
select{
  border-radius: 12px !important;
  border: 1px solid var(--adm-border) !important;
  background: rgba(255,255,255,.85) !important;
}
input:focus, textarea:focus, select:focus{
  outline: none !important;
  border-color: rgba(37,99,235,.35) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Login page */
body.login{
  background: radial-gradient(900px 500px at 10% 10%, rgba(37,99,235,.16), transparent 60%),
              radial-gradient(700px 420px at 90% 0%, rgba(16,185,129,.14), transparent 60%),
              var(--adm-bg);
  color: var(--adm-text);
}
body.login form{
  border-radius: 18px;
  border: 1px solid var(--adm-border);
  box-shadow: var(--adm-shadow);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.login form h2{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .01em;
}
body.login form input[type=submit]{
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.20);
  background: rgba(37,99,235,.12);
  color: var(--adm-primary-2);
  font-weight: 900;
}
body.login form input[type=submit]:hover{background: rgba(37,99,235,.16)}

/* Better responsive dashboard */
@media (max-width: 1200px){
  .dashboard{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (max-width: 620px){
  .dashboard{grid-template-columns: 1fr;}
}



/* =========================================
   Modern refinements: Messages + Accounts
   + Detail views (message.php/account.php)
   CSS-only overrides (safe)
   ========================================= */

:root{
  --adm-card-bg: rgba(255,255,255,0.92);
  --adm-card-border: rgba(35,45,65,0.10);
  --adm-soft-shadow: 0 10px 30px rgba(16,24,40,0.08);
  --adm-soft-shadow-sm: 0 6px 18px rgba(16,24,40,0.08);
  --adm-radius-lg: 18px;
  --adm-radius-md: 14px;
  --adm-radius-sm: 12px;
}

/* Card-like page headings */
main .content-title{
  background: var(--adm-card-bg);
  border: 1px solid var(--adm-card-border);
  border-radius: var(--adm-radius-lg);
  padding: 18px 18px;
  box-shadow: var(--adm-soft-shadow-sm);
  margin-bottom: 18px;
}
main .content-title .title i{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(84,114,189,0.12);
  color: #2f4d9f;
}
main .content-title .title .txt h2{
  font-size: 22px;
  letter-spacing: -0.01em;
}
main .content-title .title .txt p{
  margin-top: 2px;
  color: #6a7687;
}

/* Header row with search/filters becomes a neat toolbar */
main .content-header{
  background: var(--adm-card-bg);
  border: 1px solid var(--adm-card-border);
  border-radius: var(--adm-radius-lg);
  padding: 14px 14px;
  box-shadow: var(--adm-soft-shadow-sm);
  margin-bottom: 16px;
  gap: 12px;
  align-items: center;
}
main .content-header form{
  gap: 12px;
  align-items: center;
}
main .content-header form .search input, main .content-header form > select{
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(35,45,65,0.14);
  background: rgba(255,255,255,0.75);
  padding: 0 38px 0 12px;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
main .content-header form .search input:hover,
main .content-header form .search input:focus,
main .content-header form > select:hover,
main .content-header form > select:focus{
  border-color: rgba(84,114,189,0.35);
}
main .content-header .search i{
  right: 12px;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
}

/* Filter popover */
main .content-header .filters .list{
  border-radius: 14px;
  border: 1px solid rgba(35,45,65,0.12);
  box-shadow: var(--adm-soft-shadow);
  padding: 12px;
  width: 240px;
}
main .content-header .filters .list button{
  border-radius: 12px;
}

/* Make Create Account button feel primary */
main .content-header > .btn{
  border-radius: 12px;
  border: 1px solid rgba(84,114,189,0.25);
  background: rgba(84,114,189,0.12);
  color: #2f4d9f;
  font-weight: 800;
  height: 42px;
  padding: 0 14px;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
main .content-header > .btn:hover{
  background: rgba(84,114,189,0.16);
}

/* Table container as a single elevated card */
main .content-block{
  background: var(--adm-card-bg);
  border: 1px solid var(--adm-card-border);
  border-radius: var(--adm-radius-lg);
  box-shadow: var(--adm-soft-shadow-sm);
}
.table{
  overflow: hidden;
  border-radius: var(--adm-radius-lg);
}
.table table{
  border-collapse: separate;
  border-spacing: 0;
}
.table table thead td{
  background: rgba(245,247,250,0.85);
  border-bottom: 1px solid rgba(35,45,65,0.10);
  font-weight: 800;
  color: #4a5361;
}
.table table tbody tr{
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.table table tbody tr:hover{
  background: rgba(84,114,189,0.06);
}
.table table tbody td{
  border-bottom: 1px solid rgba(35,45,65,0.08);
}
.table table tbody tr:last-child td{
  border-bottom: none;
}

/* Status pills */
.table table tbody td .green,
.table table tbody td .red,
.table table tbody td .grey,
.table table tbody td .orange{
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(35,45,65,0.10);
}

/* Actions look like compact buttons */
a.link1{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(35,45,65,0.12);
  background: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 700;
  color: #495565;
  margin-right: 6px;
}
a.link1:hover{
  background: rgba(84,114,189,0.10);
  border-color: rgba(84,114,189,0.25);
  color: #2f4d9f;
}

/* Messages page: truncated preview + read more */
.truncated-txt .full{ display: none; }
.truncated-txt .read-more{
  display: inline-flex;
  margin-top: 6px;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  color: #2f4d9f;
}
.truncated-txt .read-more:hover{ text-decoration: underline; }

/* Message detail page */
main .message{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(35,45,65,0.12);
  border-radius: var(--adm-radius-lg);
  padding: 16px;
  line-height: 1.55;
  color: #2d3642;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
main .extras{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
main .extras .extra{
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(35,45,65,0.10);
  border-radius: var(--adm-radius-lg);
  padding: 14px;
}
main .extras .extra h3{
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
  color: #4a5361;
}
main .extras .extra img{
  border-radius: 10px;
  border: 1px solid rgba(35,45,65,0.10);
}
main .btns .btn{
  border-radius: 12px;
  height: 42px;
}

/* Account create/edit form */
main form .content-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
main .form{
  max-width: 820px;
}
main .form label{
  font-weight: 800;
  color: #4a5361;
}
main .form input,
main .form select,
main .form textarea{
  border-radius: 12px;
  border: 1px solid rgba(35,45,65,0.14);
  background: rgba(255,255,255,0.75);
  padding: 10px 12px;
  height: 44px;
}
main .form input:focus,
main .form select:focus,
main .form textarea:focus{
  outline: none;
  border-color: rgba(84,114,189,0.45);
}

/* Pagination as chips */
.pagination{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination a, .pagination span{
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(35,45,65,0.12);
  background: rgba(255,255,255,0.7);
}
.pagination a:hover{
  background: rgba(84,114,189,0.10);
  border-color: rgba(84,114,189,0.25);
}

/* Mobile improvements */
@media (max-width: 900px){
  main .extras{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  main .content-header{ flex-direction: column; align-items: stretch; }
  main .content-header form{ flex-direction: column; align-items: stretch; }
  main .content-header form .search input{ width: 100%; }
  main .content-header > .btn{ width: 100%; justify-content: center; }
}
