/* Base Styles */
body {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation */
nav {
  background: #343a40;
  color: white;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.nav-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links form {
  display: inline-block;
  margin: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
}

/* Alerts */
.alert {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Typography */
h1 {
  margin: 0;
  color: #333;
}

h1.page-title {
  margin: 0 0 30px 0;
}

h2.section-title {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

h3.subsection-title {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 18px;
}

/* Header Sections */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-header h1 {
  margin: 0;
}

.page-header-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 30px;
}

.page-header-with-badge h1 {
  margin: 0 0 10px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.section-header h2 {
  margin: 0;
  color: #333;
  font-size: 20px;
}

/* Back Links */
.back-link-wrapper {
  margin-bottom: 20px;
}

.back-link {
  color: #007bff;
  text-decoration: none;
  margin-bottom: 20px;
  display: inline-block;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-success {
  background: #4CAF50;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
}

.btn-group {
  display: flex;
  gap: 10px;
}

/* Filter Buttons */
.filter-buttons {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: inline-block;
  background: white;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #f8f9fa;
}

.filter-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* Links */
a.link {
  color: #007bff;
  text-decoration: none;
}

a.link-muted {
  color: #6c757d;
  text-decoration: none;
}

a.link-bold {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.link-with-margin {
  margin-right: 10px;
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile table wrapper for horizontal scrolling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card-padded {
  padding: 25px;
}

.card-overflow-hidden {
  overflow: hidden;
}

/* Grid Layouts */
.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.grid-form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.grid-form-address {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.grid-form-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #495057;
}

tbody tr {
  border-bottom: 1px solid #dee2e6;
}

td {
  padding: 15px;
}

td.text-muted {
  color: #6c757d;
}

/* Status Badges */
.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-info {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-xs {
  padding: 3px 10px;
  font-size: 11px;
}

/* Forms */
.form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-label-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-checkbox {
  width: 20px;
  height: 20px;
}

/* Form Errors */
.form-errors {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.form-errors h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

/* Info Sections */
.info-item {
  margin-bottom: 15px;
}

.info-label {
  color: #6c757d;
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.info-text-wrap {
  margin: 0;
  white-space: pre-wrap;
}

/* Contact/Pet Cards in Lists */
.item-card {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.item-card-header-top-margin {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
}

.item-card-info {
  font-size: 14px;
  color: #6c757d;
}

.item-card-name {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

/* Pet Cards */
.pet-card {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  background: #f8f9fa;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state p {
  color: #6c757d;
  font-size: 18px;
  margin-bottom: 20px;
}

.empty-state-sm {
  color: #6c757d;
  text-align: center;
  padding: 20px;
}

/* Utility Classes */
.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.text-inactive {
  color: #dc3545;
  font-weight: bold;
}

.mr-10 {
  margin-right: 10px;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.text-muted {
  color: #6c757d;
}

/* Calendar Specific Styles */

/* Calendar Navigation */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.calendar-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.btn-outline {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.btn-warning {
  background: #ffc107;
  color: #333;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.stat-label {
  color: #6c757d;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-scheduled {
  border-left: 4px solid #007bff;
}

.stat-confirmed {
  border-left: 4px solid #28a745;
}

.stat-completed {
  border-left: 4px solid #6c757d;
}

.stat-cancelled {
  border-left: 4px solid #dc3545;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot-blue { background: #007bff; }
.legend-dot-green { background: #28a745; }
.legend-dot-yellow { background: #ffc107; }
.legend-dot-gray { background: #6c757d; }
.legend-dot-red { background: #dc3545; }
.legend-dot-orange { background: #fd7e14; }

/* Calendar Grid */
.calendar {
  padding: 20px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-day-name {
  text-align: center;
  font-weight: bold;
  color: #333;
  padding: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-day-name-full {
  display: block;
}

.calendar-day-name-short {
  display: none;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  min-height: 120px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  background: white;
  position: relative;
  transition: all 0.2s;
}

.calendar-day:hover {
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.calendar-day-other-month {
  background: #f8f9fa;
  opacity: 0.6;
}

.calendar-day-today {
  background: #e3f2fd;
  border: 2px solid #007bff;
}

.calendar-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calendar-day-number {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.calendar-day-add {
  color: #007bff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.calendar-day:hover .calendar-day-add {
  opacity: 1;
}

.calendar-day-add:hover {
  background: #e3f2fd;
}

.calendar-day-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Calendar Events */
.calendar-event {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  text-decoration: none;
  display: block;
  border-left: 3px solid;
  transition: transform 0.2s;
}

.calendar-event:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-event-blue {
  background: #e3f2fd;
  border-color: #007bff;
  color: #004085;
}

.calendar-event-green {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.calendar-event-yellow {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.calendar-event-gray {
  background: #e9ecef;
  border-color: #6c757d;
  color: #495057;
}

.calendar-event-red {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.calendar-event-orange {
  background: #ffe5d0;
  border-color: #fd7e14;
  color: #8a4100;
}

.calendar-event-time {
  font-weight: bold;
  margin-bottom: 2px;
}

.calendar-event-title {
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-service {
  font-size: 10px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-more {
  color: #007bff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 6px;
  text-align: center;
}

/* Badge Color Variants */
.badge-blue {
  background: #e3f2fd;
  color: #004085;
}

.badge-green {
  background: #d4edda;
  color: #155724;
}

.badge-yellow {
  background: #fff3cd;
  color: #856404;
}

.badge-gray {
  background: #e9ecef;
  color: #495057;
}

.badge-red {
  background: #f8d7da;
  color: #721c24;
}

.badge-orange {
  background: #ffe5d0;
  color: #8a4100;
}

.badge-lg {
  padding: 8px 16px;
  font-size: 14px;
}

/* Grid Two Columns */
.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Detail Groups */
.detail-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-label {
  display: block;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: #333;
  font-size: 16px;
}

/* Card Variants */
.card h2, .card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding: 20px 20px 0;
  color: #333;
  font-size: 18px;
}

.card .detail-group {
  padding: 0 20px 20px;
  margin: 0;
}

.card .detail-group:last-child {
  padding-bottom: 20px;
}

.form-card {
  padding: 25px;
}

/* Danger Zone */
.danger-zone {
  margin-top: 30px;
  padding: 20px;
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 8px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

/* Form Styles */
.form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-help {
  display: block;
  color: #6c757d;
  font-size: 13px;
  margin-top: 5px;
}

.form-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

/* Multiple Dates Styling */
.date-entry {
  margin-bottom: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: border-color 0.2s;
}

.date-entry:hover {
  border-color: #007bff;
}

.date-entry .remove-date-entry {
  white-space: nowrap;
}

#date-entries-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 5px;
}

#date-entries-container:empty::before {
  content: "No dates added yet. Click a button below to add dates.";
  display: block;
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  background: white;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
}

.multiple-dates-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.empty-state-small {
  text-align: center;
  padding: 30px 20px;
  color: #6c757d;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
  .container {
    padding: 15px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .calendar {
    padding: 15px;
  }
  
  .calendar-day {
    min-height: 100px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 10px;
  }
  
  /* Navigation */
  nav {
    padding: 12px 15px;
  }
  
  .nav-inner {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  
  .nav-brand-wrapper {
    width: 100%;
    margin-bottom: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .nav-links.nav-open {
    display: flex;
  }
  
  .nav-links .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }
  
  .nav-links .nav-link:last-child,
  .nav-links form:last-child .nav-link {
    border-bottom: none;
  }
  
  .nav-links form {
    width: 100%;
  }
  
  .nav-links .btn.btn-secondary {
    margin-top: 10px;
    text-align: center;
    width: 100%;
  }
  
  /* Page Headers */
  .page-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .page-header-with-badge {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .page-header-with-badge h1 {
    font-size: 24px;
  }
  
  .page-header-with-badge .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .page-header-with-badge .btn-group .btn {
    width: 100%;
    text-align: center;
  }
  
  .btn-group {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-group .btn {
    width: 100%;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  /* Calendar Navigation */
  .calendar-nav {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .calendar-nav-inner {
    width: 100%;
    justify-content: space-between;
  }
  
  .calendar-title {
    font-size: 18px;
  }
  
  .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* Calendar Legend */
  .calendar-legend {
    padding: 10px;
    gap: 10px;
  }
  
  .legend-item {
    font-size: 12px;
  }
  
  /* Calendar Grid */
  .calendar {
    padding: 8px;
  }
  
  .calendar-header {
    gap: 2px;
    margin-bottom: 5px;
  }
  
  .calendar-body {
    gap: 2px;
  }
  
  .calendar-day-name {
    font-size: 10px;
    padding: 5px 2px;
  }
  
  /* Hide full day names, show only first letter on mobile */
  .calendar-day-name-full {
    display: none;
  }
  
  .calendar-day-name-short {
    display: block;
  }
  
  .calendar-day {
    min-height: 70px;
    padding: 3px;
    border-radius: 4px;
  }
  
  .calendar-day-header {
    margin-bottom: 4px;
  }
  
  .calendar-day-number {
    font-size: 12px;
  }
  
  .calendar-day-add {
    font-size: 16px;
    padding: 1px 4px;
  }
  
  .calendar-day-content {
    gap: 2px;
  }
  
  /* Calendar Events - Show fewer details on mobile */
  .calendar-event {
    font-size: 8px;
    padding: 2px 3px;
    border-left-width: 2px;
  }
  
  .calendar-event-time {
    margin-bottom: 1px;
    font-size: 8px;
  }
  
  .calendar-event-title {
    font-size: 9px;
    margin-bottom: 0;
  }
  
  .calendar-event-service {
    display: none; /* Hide service type on mobile to save space */
  }
  
  .calendar-more {
    font-size: 9px;
    padding: 2px;
  }
  
  /* Tables */
  table {
    font-size: 13px;
  }
  
  th, td {
    padding: 10px 5px;
    font-size: 12px;
  }
  
  /* Hide less important columns on mobile */
  .hide-mobile {
    display: none;
  }
  
  /* Make links and buttons more touch-friendly */
  a.link, a.link-bold, a.link-muted {
    padding: 5px;
    display: inline-block;
  }
  
  .calendar-day-add {
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Grid Layouts */
  .grid-two-columns {
    grid-template-columns: 1fr;
  }
  
  .grid-two-col {
    grid-template-columns: 1fr;
  }
  
  .grid-auto-fill {
    grid-template-columns: 1fr;
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-control {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  /* Cards */
  .card {
    border-radius: 6px;
  }
  
  .card-padded {
    padding: 15px;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .page-header h1 {
    font-size: 20px;
  }
  
  .page-header-with-badge h1 {
    font-size: 20px;
  }
  
  .page-header-with-badge .btn-group .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .calendar-title {
    font-size: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .calendar-day {
    min-height: 60px;
    padding: 2px;
  }
  
  .calendar-day-number {
    font-size: 11px;
  }
  
  .calendar-event {
    font-size: 7px;
    padding: 1px 2px;
  }
  
  .calendar-event-time {
    font-size: 7px;
  }
  
  .calendar-event-title {
    font-size: 8px;
  }
  
  /* Show only 2 events max on small screens */
  .calendar-event:nth-child(n+3) {
    display: none;
  }
  
  .btn-outline {
    padding: 8px 12px;
    font-size: 13px;
  }
}

