:root {
  --bg: #f3f0ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --text: #11234d;
  --muted: #5b6195;
  --accent: #1b2d6a;
  --accent-2: #4c57b8;
  --shadow: 0 40px 120px rgba(27, 45, 106, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(76, 87, 184, 0.12), transparent 24%),
    linear-gradient(180deg, #f3f0ff 0%, #ede7ff 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
a {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(27, 45, 106, 0.12);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--text);
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background: var(--accent);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.button-secondary {
  background: var(--accent);
  color: #fff;
}

.button-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  min-width: 0;
}

.button-primary {
  box-shadow: 0 24px 50px rgba(27, 45, 106, 0.24);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 4rem 2rem 3rem;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 4.3vw, 5rem);
  line-height: 0.95;
}

.hero p {
  margin: 1.6rem 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  min-height: 520px;
  border-radius: var(--radius);
  background: url('https://images.unsplash.com/photo-1519699047748-d75f0a8ff7b7?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  box-shadow: var(--shadow);
}

.section {
  padding: 4rem 2rem;
}

.section-inner,
.section-header {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.section-tag {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.section-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.section-carousel .carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(27, 45, 106, 0.08);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
  background: rgba(0, 20, 50, 0.65);
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  max-width: calc(100% - 3rem);
}

.carousel-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.carousel-button {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(27, 45, 106, 0.96);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(27, 45, 106, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-button:hover {
  transform: translateY(-1px);
  background: #152a67;
}

.stats-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  min-height: 160px;
  padding: 1.8rem;
  display: grid;
  gap: 0.75rem;
}

.stat-card h3 {
  margin: 0;
  font-size: 2.6rem;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-filters,
.profile-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.filter-button {
  border: none;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover {
  transform: translateY(-1px);
  background: #152a67;
}

.filter-button.active {
  background: #152a67;
  border-color: transparent;
  color: #fff;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.5));
}

.gallery-meta {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: #fff;
  z-index: 1;
  font-weight: 600;
}

.section-media .video-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.8rem;
}

.video-player {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  min-height: 340px;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.video-list {
  display: grid;
  gap: 1rem;
}

.video-card {
  border-radius: 24px;
  padding: 1.3rem;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
}

.video-card.active {
  background: linear-gradient(135deg, rgba(61, 193, 211, 0.16), rgba(255, 123, 114, 0.14));
  border-color: rgba(61, 193, 211, 0.4);
}

.video-card span {
  display: block;
  font-weight: 600;
}

.profiles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.profile-callout {
  margin-top: 2rem;
  text-align: center;
}

.profile-card {
  padding: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.profile-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-role {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer {
  padding: 3rem 2rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-radius: 32px 32px 0 0;
}

.footer h3 {
  margin: 0 0 0.8rem;
}

.footer p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.5rem 1.5rem;
  }

  nav {
    justify-content: center;
    gap: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .hero-image {
    min-height: 380px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-media .video-panel {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .profiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .carousel-controls {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero {
    padding: 3rem 1rem 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .video-player iframe {
    min-height: 220px;
  }

  .carousel-button {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
  }

  .slide-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 0.95rem;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 100;
}

.lightbox-card {
  position: relative;
  max-width: 900px;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  background: rgba(10, 18, 31, 0.95);
}

.lightbox-card img {
  width: 100%;
  display: block;
  height: auto;
}

.lightbox-card p {
  margin: 0;
  padding: 1.3rem 1.5rem 1.9rem;
  color: #f2f6ff;
  font-size: 1rem;
  background: rgba(3, 8, 16, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller screens */
@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.5rem 1.5rem;
  }

  nav {
    justify-content: center;
    gap: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .hero-image {
    min-height: 380px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-media .video-panel {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .profiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .carousel-controls {
    right: 1rem;
    bottom: 1rem;
  }

  /* Form responsiveness */
  .entry-form,
  .recent-entries {
    padding: 1.5rem;
    max-height: none;
    overflow-y: visible;
  }

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

  .form-section {
    width: 100%;
    margin-right: 0;
  }

  /* Table responsiveness */
  .data-table {
    font-size: 0.9rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.8rem 0.5rem;
  }

  /* Metric cards responsiveness */
  .summary-metrics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .metric-card {
    padding: 1.5rem 1rem;
  }

  .metric-value {
    font-size: 2rem;
  }
}

/* Mobile devices */
@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 3rem 1rem 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .video-player iframe {
    min-height: 220px;
  }

  .carousel-button {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
  }

  .slide-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 0.95rem;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Entry page mobile styles */
  .entry-container {
    padding: 0.5rem;
  }

  .entry-header h1 {
    font-size: 2rem;
  }

  .entry-form {
    padding: 1rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .form-group.checkbox-group {
    margin-bottom: 1rem;
  }

  .show-password-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .show-password-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
  }

  .show-password-container label {
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
  }

  .form-group input:not([type="checkbox"]),
  .form-group select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }

  /* Button responsiveness */
  .button {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-actions .button {
    width: 100%;
  }

  /* Modal responsiveness */
  .shift-modal {
    padding: 2rem 1.5rem;
    width: 95%;
    max-width: none;
  }

  .shift-modal h3 {
    font-size: 1.5rem;
  }

  /* Report page mobile styles */
  .report-container {
    padding: 1rem 0.5rem;
  }

  .report-header h1 {
    font-size: 2.2rem;
  }

  .date-range-filter {
    flex-direction: column;
    gap: 1rem;
  }

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

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    margin: 0.25rem;
  }

  .custom-date-range {
    width: 100%;
  }

  .custom-date-range form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .custom-date-range input {
    width: 100%;
  }

  /* Metric cards mobile */
  .summary-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metric-card {
    padding: 1.5rem 1rem;
  }

  .metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .metric-label {
    font-size: 0.95rem;
  }

  .metric-value {
    font-size: 2.2rem;
  }

  /* Table mobile styles */
  .data-table {
    font-size: 0.8rem;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }

  .data-table th,
  .data-table td {
    padding: 0.6rem 0.4rem;
    min-width: 80px;
  }

  /* Modal mobile styles */
  .modal {
    width: 95%;
    max-width: none;
    margin: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal h2 {
    font-size: 1.3rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .topbar {
    padding: 0.75rem 0.75rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 2rem 0.75rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 0.75rem;
  }

  /* Entry page small phone styles */
  .entry-container {
    padding: 0.25rem;
  }

  .entry-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .entry-header h1 {
    font-size: 1.8rem;
  }

  .entry-form {
    padding: 0.75rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .button {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  /* Report page small phone styles */
  .report-container {
    padding: 0.5rem 0.25rem;
  }

  .report-header h1 {
    font-size: 1.8rem;
  }

  .report-header p {
    font-size: 0.9rem;
  }

  .filter-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .custom-date-range input {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  /* Metric cards small phone */
  .metric-card {
    padding: 1.2rem 0.8rem;
  }

  .metric-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.9rem;
  }

  .metric-value {
    font-size: 1.8rem;
  }

  /* Table small phone styles */
  .data-table th,
  .data-table td {
    padding: 0.5rem 0.3rem;
    font-size: 0.75rem;
  }

  /* Modal small phone styles */
  .modal {
    width: 98%;
    margin: 0.5rem;
    padding: 1rem;
  }

  .modal h2 {
    font-size: 1.2rem;
  }

  .lightbox-overlay {
    padding: 0.5rem;
  }
}

/* Tablet screens (480px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-image {
    min-height: 300px;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .entry-container {
    padding: 0.75rem;
  }

  .entry-form {
    padding: 1.25rem;
  }

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

  .form-group input,
  .form-group select {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .data-table {
    font-size: 0.85rem;
    overflow-x: auto;
  }

  .data-table th,
  .data-table td {
    padding: 0.6rem 0.5rem;
  }

  .button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-actions .button {
    width: 100%;
  }

  .metric-card {
    padding: 1.5rem 1rem;
  }

  .metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .metric-label {
    font-size: 0.9rem;
  }

  .metric-value {
    font-size: 1.8rem;
  }

  .report-container {
    padding: 1rem 0.75rem;
  }

  .report-header h1 {
    font-size: 1.8rem;
  }

  .filter-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }

  .custom-date-range input {
    padding: 0.65rem;
    font-size: 0.9rem;
  }

  .modal {
    width: 90%;
    padding: 1.5rem;
  }

  .modal h2 {
    font-size: 1.3rem;
  }

  .recent-entries {
    margin-top: 1.5rem;
  }

  .recent-entries table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Large tablet screens (769px - 980px) */
@media (min-width: 769px) and (max-width: 980px) {
  .topbar {
    padding: 1.1rem 1.5rem;
    gap: 1.2rem;
  }

  nav {
    gap: 1.2rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 3.25rem 1.5rem 2.5rem;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-image {
    min-height: 350px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section h2 {
    font-size: 2.3rem;
  }

  .entry-container {
    padding: 1rem;
  }

  .entry-form {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-group input,
  .form-group select {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .data-table {
    font-size: 0.9rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.65rem;
  }

  .button {
    padding: 0.85rem 1.4rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .metric-card {
    padding: 1.5rem 1.25rem;
  }

  .metric-icon {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.3rem;
  }

  .metric-label {
    font-size: 0.95rem;
  }

  .metric-value {
    font-size: 1.9rem;
  }

  .report-header h1 {
    font-size: 2rem;
  }

  .filter-btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .custom-date-range input {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .modal {
    width: 85%;
    padding: 1.75rem;
  }

  .modal h2 {
    font-size: 1.5rem;
  }

  .recent-entries {
    margin-top: 2rem;
  }
}

/* Touch-friendly adjustments for all mobile/tablet devices */
@media (max-width: 980px) {
  /* Increase touch target sizes */
  button,
  .button,
  input[type="submit"],
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve spacing for touch interaction */
  .form-group {
    margin-bottom: 1.25rem;
  }

  /* Make tables scrollable on mobile */
  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Better form input sizing */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Better spacing for navigation */
  .topbar a,
  nav a {
    padding: 0.5rem 0.75rem;
    display: inline-block;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Improve card spacing */
  .metric-card,
  .report-card,
  .dashboard-card {
    margin-bottom: 1rem;
  }

  /* Better dropdown/select sizing */
  select {
    padding: 0.75rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.25rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  /* Improve checkbox alignment */
  .show-password-container {
    margin-bottom: 1rem;
  }

  .show-password-container input[type="checkbox"] {
    cursor: pointer;
    min-width: 18px;
    min-height: 18px;
  }

  /* Better modal responsiveness */
  .modal,
  .shift-modal,
  .lightbox-overlay {
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Responsive grid layouts */
  .gallery-grid,
  .profiles-grid,
  .section-media {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* Better typography for mobile */
  h1 {
    line-height: 1.2;
    margin: 1rem 0;
  }

  h2 {
    line-height: 1.3;
    margin: 0.8rem 0;
  }

  h3 {
    line-height: 1.3;
    margin: 0.6rem 0;
  }

  p {
    line-height: 1.6;
  }
}
