:root {
  --text: #2D3748;
  --background: #F7FAFC;
  --primary: #4299E1;
  --secondary: #2B6CB0;
  --accent: #3182CE;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --container-width: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  padding-top: 120px;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container-width);
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Modern Navbar */
.navbar {
  max-width: var(--container-width);
  margin: 1.5rem auto;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 100px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1;
}

.logo a:hover {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a:not(.cta):after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:not(.cta):hover:after {
  width: 70%;
}

.nav-links li a.cta {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

.nav-links li a.cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.6);
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.6);
}

.btn:active {
  transform: translateY(0);
}

/* Modern Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  background: white;
  color: var(--text);
  transition: all 0.3s ease;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232D3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Modern Cards */
.section {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.section h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Modern Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

th {
  background: #F7FAFC;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

th, td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #F7FAFC;
}

/* Modern Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('/images/hero.jpg') center/cover no-repeat;
  border-radius: 20px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #EDF2F7;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Footer */
footer {
  background: white;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.1);
  margin-top: auto;
  flex-shrink: 0;
}

footer p {
  color: var(--text);
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  main {
    margin: 1rem auto;
    padding: 0 1rem;
  }
  
  .section {
    margin: 1rem 0;
    padding: 1.5rem;
  }
  
  .section h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 1024px) {
  .hamburger {
    display: block !important;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 100000;
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 4rem;
    right: -100%;
    flex-direction: column;
    background: white;
    width: 300px;
    height: auto;
    padding: 1.5rem;
    border-radius: 16px;
    transition: right 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    border: 1px solid rgba(226, 232, 240, 0.7);
  }

  .nav-links li {
    width: 100%;
    margin: 0.25rem 0;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
  }

  #menu-toggle:checked + .hamburger + .nav-links {
    right: 0.5rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
    padding-top: 100px;
  }
  
  main {
    margin: 0.5rem auto;
    padding: 0 0.5rem;
  }
  
  .navbar {
    border-radius: 16px;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0.5rem;
    width: calc(100% - 1rem);
    max-width: calc(var(--container-width) - 1rem);
  }

  .nav-links {
    width: 280px;
    top: 5rem;
  }

  .hero {
    padding: 3rem 1rem;
    border-radius: 16px;
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .section {
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 16px;
  }
  
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .flex {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .flex img {
    max-width: 100%;
    height: auto;
  }
  
  /* Mobile-friendly tables */
  table {
    font-size: 0.875rem;
  }
  
  th, td {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
    padding-top: 90px;
  }
  
  .navbar {
    padding: 0.5rem 0.75rem;
    top: 0.25rem;
    width: calc(100% - 0.5rem);
    max-width: calc(var(--container-width) - 0.5rem);
  }
  
  .logo a {
    font-size: 1.25rem;
  }
  
  .hero {
    padding: 2rem 0.75rem;
    margin: 0.25rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .section {
    margin: 0.25rem 0;
    padding: 0.75rem;
  }
  
  .section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Mobile form improvements */
  input, select, textarea {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
}

/* Mobile-specific improvements for treatments and services */
@media (max-width: 768px) {
  .treatments-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .treatment-card,
  .service-card {
    margin: 0 auto;
    max-width: 100%;
  }
  
  .treatment-card-content,
  .service-content {
    padding: 1rem;
  }
  
  .treatment-card h3,
  .service-content h3 {
    font-size: 1.1rem;
  }
  
  .treatment-card p,
  .service-content p {
    font-size: 0.9rem;
  }
}

/* Mobile workflow improvements */
@media (max-width: 768px) {
  .workflow {
    flex-direction: column;
    padding: 2rem 0;
  }
  
  .workflow::before {
    display: none;
  }
  
  .step {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    margin-bottom: 1rem;
  }
  
  .step-number {
    margin: -2rem auto 1rem;
  }
}

/* Mobile reviews improvements */
@media (max-width: 768px) {
  .review {
    min-width: calc(100% - 1rem);
    margin: 0.5rem;
  }
  
  .reviews-container {
    padding: 1rem 0;
  }
}

/* Mobile articles improvements */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .article-card {
    margin: 0;
  }
  
  .article-header {
    padding: 1rem;
  }
  
  .article-header h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    padding-right: 0.5rem;
  }
  
  .expand-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  .article-card.expanded .article-content {
    padding: 0 1rem 1rem;
  }
  
  .article-content ol,
  .article-content ul {
    margin: 0.75rem 0 0.75rem 1rem !important;
    font-size: 0.9rem;
  }
  
  .article-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .article-header {
    padding: 0.75rem;
  }
  
  .article-header h3 {
    font-size: 0.9rem;
  }
  
  .article-card.expanded .article-content {
    padding: 0 0.75rem 0.75rem;
  }
  
  .article-content ol,
  .article-content ul {
    margin: 0.5rem 0 0.5rem 0.75rem !important;
    font-size: 0.85rem;
  }
  
  .article-content p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
}

/* Auth container mobile improvements */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
    min-height: calc(100vh - 150px);
  }
  
  .auth-box {
    padding: 1.5rem;
    max-width: 100%;
  }
}

/* Footer mobile improvements */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
  
  footer p {
    margin: 0.25rem 0;
  }
}

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(66, 153, 225, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeIn 0.5s ease-out;
}

/* Treatment Cards */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.treatment-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.treatment-card:hover {
  transform: translateY(-5px);
}

.treatment-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  background: #f8fafc;
}

.treatment-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.treatment-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.treatment-card p {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.treatment-card .btn,
.service-card .btn {
  margin-top: 1rem;
  display: inline-block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Workflow Diagram */
.workflow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  position: relative;
  flex-wrap: wrap;
  gap: 2rem;
}

.workflow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  z-index: 0;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 250px;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -3rem auto 1rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

/* Reviews Slideshow */
.reviews-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review {
  min-width: 300px;
  margin: 1rem;
  flex-shrink: 0;
}

.review-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.review-dot.active {
  background: var(--primary);
}

/* E-Learning Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}

.article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  isolation: isolate;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
}

.article-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.article-header:hover {
  background-color: rgba(66, 153, 225, 0.05);
}

.article-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  flex: 1;
  padding-right: 1rem;
}

.article-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  display: block;
}

.article-card.expanded .article-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 2500px;
  opacity: 1;
}

.expand-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.article-card.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Login/Register Center */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 2rem;
}

.auth-box {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.auth-box h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.service-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-content h3,
.treatment-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: center;
}

.service-content p {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
}

.flex {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.flex img {
  max-width: 300px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flex .text {
  flex: 1;
}

/* Dashboard and Medic Dashboard Mobile Responsiveness */
@media (max-width: 768px) {
  /* Dashboard table improvements */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 12px;
  }
  
  /* Alternative: Card-style layout for very small screens */
  @media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }
    
    table {
      overflow-x: visible;
      white-space: normal;
    }
    
    thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    
    tr {
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      margin-bottom: 1rem;
      padding: 1rem;
      background: white;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    td {
      border: none;
      position: relative;
      padding: 0.5rem 0 0.5rem 50%;
      text-align: left;
      white-space: normal;
      word-wrap: break-word;
    }
    
    td:before {
      content: attr(data-label) ": ";
      position: absolute;
      left: 0;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
      font-weight: bold;
      color: var(--primary);
    }
    
    /* Dashboard specific labels */
    .dashboard-table td:nth-of-type(1):before { content: "Data"; }
    .dashboard-table td:nth-of-type(2):before { content: "Serviciu"; }
    .dashboard-table td:nth-of-type(3):before { content: "Status"; }
    .dashboard-table td:nth-of-type(4):before { content: "Detalii"; }
    .dashboard-table td:nth-of-type(5):before { content: "Detalii medic"; }
    .dashboard-table td:nth-of-type(6):before { content: "Imagine"; }
    .dashboard-table td:nth-of-type(7):before { content: "Acțiuni"; }
    
    /* Medic dashboard specific labels */
    .medic-dashboard-table td:nth-of-type(1):before { content: "Ora"; }
    .medic-dashboard-table td:nth-of-type(2):before { content: "Pacient"; }
    .medic-dashboard-table td:nth-of-type(3):before { content: "Serviciu"; }
    .medic-dashboard-table td:nth-of-type(4):before { content: "Status"; }
    .medic-dashboard-table td:nth-of-type(5):before { content: "Detalii pacient"; }
    .medic-dashboard-table td:nth-of-type(6):before { content: "Detalii medic"; }
    .medic-dashboard-table td:nth-of-type(7):before { content: "Imagine"; }
    .medic-dashboard-table td:nth-of-type(8):before { content: "Actualizează"; }
  }
  
  /* Form elements in dashboard */
  .section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .section form input[type="date"] {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Mobile-specific form styling for medic dashboard */
  tr form {
    display: contents;
  }
  
  @media (max-width: 600px) {
    tr form {
      display: block;
    }
    
    td select,
    td textarea,
    td input[type="file"],
    td button {
      width: 100%;
      margin: 0.25rem 0;
      padding: 0.5rem;
      border-radius: 8px;
      border: 1px solid #E2E8F0;
    }
    
    td textarea {
      min-height: 60px;
      resize: vertical;
    }
    
    td button {
      background: var(--primary);
      color: white;
      border: none;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    
    td button:hover {
      background: var(--accent);
    }
    
    td input[type="file"] {
      padding: 0.25rem;
      font-size: 0.9rem;
    }
  }
}

/* Additional mobile improvements for dashboard pages */
@media (max-width: 480px) {
  .section h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  /* Date picker form improvements */
  .section form {
    background: #F7FAFC;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  .section form input[type="date"] {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  .section form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Card-style improvements for very small screens */
  @media (max-width: 600px) {
    tr {
      margin-bottom: 1.5rem;
      padding: 1.25rem;
    }
    
    td {
      padding: 0.75rem 0 0.75rem 50%;
      font-size: 0.9rem;
      line-height: 1.4;
    }
    
    td:before {
      font-size: 0.85rem;
      font-weight: 600;
    }
  }
}
