﻿:root {
  --font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --bg-gradient: radial-gradient(circle at 0% 0%, #101828 0%, #1d2939 40%, #111927 100%);
  --surface: rgba(17, 25, 39, 0.85);
  --surface-elevated: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.06);
  --text-primary: #f4f6fb;
  --text-secondary: #d0d5dd;
  --accent: #4c8cf5;
  --accent-hover: #3b78db;
  --danger: #f97066;
  --success: #3dcc7c;
  --muted: #98a2b3;
  --badge-bg: rgba(76, 140, 245, 0.18);
  --badge-text: #9abfff;
  font-size: 16px;
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-secondary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-secondary);
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background-color: rgba(17, 25, 39, 0.85);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4c8cf5, #7a5cff);
  color: #fff;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus {
  background-color: rgba(76, 140, 245, 0.12);
  color: var(--text-primary);
}

nav form {
  margin: 0;
}

main {
  padding: 48px 0 64px;
}

.page-title {
  margin: 0 0 28px;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(12, 16, 27, 0.55);
  backdrop-filter: blur(24px);
}

.card + .card {
  margin-top: 24px;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #7a5cff);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(76, 140, 245, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(152, 162, 179, 0.4), rgba(86, 100, 126, 0.4));
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 10px 26px rgba(152, 162, 179, 0.28);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #ff8a7a);
}

.btn-danger:hover,
.btn-danger:focus {
  box-shadow: 0 10px 26px rgba(249, 112, 102, 0.35);
}

form .form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  font-family: var(--font-family);
  letter-spacing: 0.01em;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(76, 140, 245, 0.7);
  box-shadow: 0 0 0 4px rgba(76, 140, 245, 0.12);
}

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

.checkbox-group {
  display: grid;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checkbox-item input {
  margin-top: 6px;
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-error {
  background-color: rgba(249, 112, 102, 0.16);
  color: #fed7d4;
}

.image-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.image-upload input[type=\"file\"] {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
}

.image-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-preview img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(12, 16, 27, 0.45);
}

.cell-main--with-thumb {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.cell-main__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(10, 15, 25, 0.45);
}\n.table-wrapper {
  margin-top: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(8, 13, 24, 0.95));
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(9, 13, 23, 0.55);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead {
  background: rgba(255, 255, 255, 0.02);
}

.table th {
  padding: 18px 26px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(194, 201, 216, 0.75);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr {
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.table tbody tr + tr {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.table tbody tr:hover {
  background: rgba(76, 140, 245, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(76, 140, 245, 0.16);
}

.table td {
  padding: 24px 26px;
  vertical-align: top;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.cell-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cell-title {
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cell-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cell-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.table-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.table-actions form {
  margin: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(76, 140, 245, 0.9), rgba(122, 95, 255, 0.95));
  box-shadow: 0 12px 26px rgba(76, 140, 245, 0.25);
  transition: transform 0.18s.ease, box-shadow 0.18s ease;
  padding: 0;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #f5f7ff;
}

.icon-btn:hover,
.icon-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(76, 140, 245, 0.3);
}

.icon-btn--secondary {
  background: linear-gradient(135deg, rgba(152, 162, 179, 0.28), rgba(86, 100, 126, 0.38));
  box-shadow: 0 12px 26px rgba(94, 106, 134, 0.22);
}

.icon-btn--muted {
  background: linear-gradient(135deg, rgba(110, 118, 135, 0.32), rgba(74, 81, 98, 0.36));
  box-shadow: 0 12px 26px rgba(74, 81, 98, 0.2);
}

.icon-btn--danger {
  background: linear-gradient(135deg, rgba(249, 112, 102, 0.92), rgba(255, 138, 122, 0.96));
  box-shadow: 0 12px 26px rgba(249, 112, 102, 0.28);
}

.icon-btn--danger:hover,
.icon-btn--danger:focus {
  box-shadow: 0 14px 30px rgba(249, 112, 102, 0.36);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  letter-spacing: 0.01em;
}

.login-wrapper {
  max-width: 420px;
  margin: 80px auto;
}

.logo-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.logo-glow span {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c8cf5, #7a5cff);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 28px rgba(124, 95, 255, 0.55);
}

.form-footer {
  margin-top: 26px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.link {
  color: #9abfff;
  text-decoration: none;
  transition: color 0.2s.ease;
}

.link:hover {
  color: #c3d9ff;
}

@media (max-width: 720px) {
  header .shell {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 24px;
  }

  nav {
    justify-content: space-between;
  }

  .shell {
    padding: 0 18px;
  }

  .card {
    padding: 24px;
  }

  .table-wrapper {
    border-radius: 18px;
    box-shadow: none;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
  }

  .table td::before {
    content: attr(data-label);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: rgba(194, 201, 216, 0.75);
  }

  .table-actions {
    justify-content: flex-start;
  }
}
.image-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.image-upload input[type="file"] {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
}

.image-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-preview img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(12, 16, 27, 0.45);
}

.cell-main--with-thumb {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.event-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(10, 15, 25, 0.45);
}

/* ========================================
   Modal Window Styles
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 28px;
}

.modal-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-footer .btn {
  min-width: 100px;
}

/* ========================================
   Pagination Styles
   ======================================== */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pagination-info {
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pagination-btn svg {
  fill: currentColor;
}

.pagination-btn:hover {
  background: rgba(76, 140, 245, 0.15);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.pagination-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination-page:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.pagination-page--active {
  background: linear-gradient(135deg, var(--accent), #7a5cff);
  color: #fff;
  font-weight: 600;
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0 6px;
}

@media (max-width: 720px) {
  .pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pagination-info {
    text-align: center;
  }

  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pagination-pages {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
}

