
:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary: #0f172a;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --border: #dfeaf5;
  --text: #17324d;
  --muted: #5b728a;
  --success: #1b9c75;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f4f8fb 0%, #eef8f5 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
}

.row::after {
  content: "";
  clear: both;
  display: table;
}

[class*="col-"] {
  float: left;
  padding: 15px;
}

.header {
  background: linear-gradient(135deg, #eaf3ff 0%, #f5f9ff 100%);
  color: #17324d;
  padding: 18px 20px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid var(--border);
}

.header-img {
  margin-left: 0;
  text-align: center;
}

.header-img img {
  border-radius: 50%;
  border: 4px solid rgba(13, 110, 253, 0.12);
  background: rgba(255,255,255,0.8);
  padding: 8px;
}

.header-Text {
  width: 100%;
  text-align: center;
  color: #17324d;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.footer {
  background: #0f172a;
  color: #e2e8f0;
  text-align: center;
  font-size: 12px;
  padding: 16px;
  position: relative;
  margin-top: auto;
  width: 100%;
}

.sidenav {
  height: 72%;
  width: 0;
  position: fixed;
  z-index: 10;
  top: 80px;
  left: 12px;
  background: linear-gradient(180deg, #0e3b6b 0%, #1f5ea6 100%);
  overflow-x: hidden;
  transition: 0.35s ease;
  padding-top: 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.sidenav a,
.sidenav button {
  padding: 12px 18px;
  text-decoration: none;
  font-size: 18px;
  color: #f8fbff;
  display: block;
  transition: 0.2s ease;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidenav a:hover,
.sidenav button:hover,
.sidenav a:focus,
.sidenav button:focus {
  background: rgba(255,255,255,0.12);
  outline: none;
}

.sidenav .closebtn {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 30px;
  color: #fff;
}

.mid,
.content,
.col,
.card,
form,
.table-wrap {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mid {
  width: min(90%, 1100px);
  margin: 24px auto;
  padding: 20px;
}

.d1,
.d2 {
  min-height: 180px;
  background: linear-gradient(135deg, #eff8ff 0%, #dff3ea 100%);
  margin: 10px 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

button,
.btn,
input,
select,
textarea {
  font: inherit;
}

button,
.btn,
.btn-link {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #17324d;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

button:hover,
.btn:hover,
.btn-link:hover {
  transform: translateY(-1px);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(13,110,253,0.12);
}

form {
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px 14px;
  border: 1px solid var(--border) !important;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf6ff;
  color: #15385c;
  font-weight: 700;
}

tr:nth-child(even) td {
  background: #fafcff;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1d7dd8 0%, #1458a8 100%);
  color: white;
  box-shadow: 0 8px 18px rgba(29,125,216,0.2);
  border-radius: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 10px;
  margin: 20px auto;
  flex-wrap: wrap;
}

.page-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination form {
  display: inline-block;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: none;
  vertical-align: middle;
}

.pagination form button,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #edf2f7;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.pagination form button:hover,
.pagination a:hover {
  background: #dfeaf5;
  transform: translateY(-1px);
}

.pagination a.active,
.pagination form button.active {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

@media only screen and (min-width: 600px) {
  .col-s-1 {width: 8.33%;} .col-s-2 { width: 16.66%; } .col-s-3 {width: 25%;} .col-s-4 {width: 33.33%;} .col-s-5 {width: 41.66%;} .col-s-6 {width: 50%;} .col-s-7 {width: 58.33%;} .col-s-8 {width: 66.66%;} .col-s-9 {width: 75%;} .col-s-10 {width: 83.33%;} .col-s-11 {width: 91.66%;} .col-s-12 {width: 100%;}
}

@media only screen and (min-width: 768px) {
  .col-1 {width: 8.33%;} .col-2 {width: 16.66%;} .col-3 {width: 25%;} .col-4 {width: 33.33%;} .col-5 {width: 41.66%;} .col-6 {width: 50%;} .col-7 {width: 58.33%;} .col-8 {width: 66.66%;} .col-9 {width: 75%;} .col-10 {width: 83.33%;} .col-11 {width: 91.66%;} .col-12 {width: 100%;}
}

@media screen and (max-width: 768px) {
  .sidenav {
    width: 0;
    top: 60px;
    left: 8px;
  }

  .mid {
    width: 95%;
    padding: 12px;
  }

  form {
    padding: 14px;
  }
}
