* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Auth Pages */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 15px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 25px;
}

.auth-header h1 {
  color: #667eea;
  font-size: clamp(1.5em, 5vw, 2em);
  margin-bottom: 10px;
  word-wrap: break-word;
}

.auth-header p {
  color: #666;
  font-size: clamp(0.85em, 3vw, 0.95em);
}

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

label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
  font-size: clamp(0.9em, 3vw, 1em);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: clamp(14px, 3vw, 16px);
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #f8f9ff;
}

.auth-switch {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-size: clamp(0.85em, 3vw, 0.95em);
}

.auth-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  padding: 5px;
  min-height: 44px;
  line-height: 34px;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.error-message {
  background: #fee;
  border: 2px solid #e74c3c;
  color: #c0392b;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none;
  font-size: clamp(0.85em, 3vw, 0.95em);
  word-wrap: break-word;
}

.error-message.show {
  display: block;
}

.success-message {
  background: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none;
  font-size: clamp(0.85em, 3vw, 0.95em);
  word-wrap: break-word;
}

.success-message.show {
  display: block;
}

/* Main App Header - Mobile Optimized */
.app-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.app-header h1 {
  color: white;
  font-size: clamp(1.5em, 6vw, 2.5em);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
  word-wrap: break-word;
  line-height: 1.2;
}

.user-info {
  background: white;
  padding: 12px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-name {
  color: #667eea;
  font-weight: 600;
  font-size: clamp(0.9em, 3.5vw, 1.1em);
  word-wrap: break-word;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  background: #e74c3c;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: clamp(13px, 3vw, 14px);
  font-weight: 600;
  white-space: nowrap;
  min-height: 40px;
  transition: background 0.3s;
}

.logout-btn:hover {
  background: #c0392b;
}

.logout-btn:active {
  transform: scale(0.98);
}

/* Form Card */
.form-card {
  background: white;
  border-radius: 15px;
  padding: 20px 15px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-card h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: clamp(1.2em, 4vw, 1.5em);
}

.date-range {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Form Row Inline - for Passenger Details and Total Fare */
.form-row-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.form-row-inline .form-group {
  margin-bottom: 0;
}

/* Schedule Grid */
.schedules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 0 5px;
}

.schedule-card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.3s;
}

.schedule-card:active {
  transform: scale(0.98);
}

.vehicle-number {
  font-size: clamp(1.1em, 4vw, 1.3em);
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.schedule-date {
  color: #666;
  margin-bottom: 8px;
  font-size: clamp(0.85em, 3vw, 0.95em);
}

.date-range-display {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.passenger-details,
.schedule-notes-display {
  background: #e8f4f8;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  color: #666;
  line-height: 1.6;
  font-size: clamp(0.9em, 3vw, 1em);
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.passenger-details strong {
  color: #667eea;
}

.booking-amount-display {
  background: #d4edda;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  color: #155724;
  font-size: clamp(0.9em, 3vw, 1em);
  border: 1px solid #28a745;
  font-weight: 600;
}

.booking-amount-display strong {
  color: #155724;
  font-weight: 700;
}

.schedule-notes-display {
  background: #e8f4f8;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  color: #666;
  line-height: 1.6;
  font-size: clamp(0.9em, 3vw, 1em);
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.schedule-notes {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: clamp(0.9em, 3vw, 1em);
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-y: auto;
}

.expense-summary {
  background: #fff3cd;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  color: #856404;
  font-size: clamp(0.9em, 3vw, 1em);
  border: 1px solid #ffc107;
}

.expense-summary strong {
  color: #856404;
  font-weight: 700;
}

.expense-count {
  font-size: 0.85em;
  color: #6c757d;
  margin-left: 5px;
}

.profit-loss-display {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: clamp(0.95em, 3vw, 1.05em);
  font-weight: 600;
  border: 2px solid;
  transition: all 0.3s ease;
}

.profit-loss-display.profit {
  background: #d4edda;
  color: #155724;
  border-color: #28a745;
}

.profit-loss-display.loss {
  background: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
}

.profit-loss-display strong {
  font-weight: 700;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* Notes Section Styles */
.schedule-notes-section {
  margin-bottom: 12px;
}

.notes-display-with-icon {
  display: none;
}

.schedule-notes-display {
  color: #333;
  line-height: 1.6;
  font-size: clamp(0.9em, 3vw, 1em);
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  background: #e8f4f8;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: clamp(0.9em, 3vw, 1em);
}

.notes-edit-icon {
  background: none;
  border: 1.5px solid #667eea;
  color: #667eea;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  transition: all 0.2s ease;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.notes-edit-icon:hover {
  background: rgba(102, 126, 234, 0.15);
  color: #5568d3;
  border-color: #5568d3;
  transform: scale(1.2) rotate(5deg);
}

.notes-edit-icon:active {
  transform: scale(0.95);
}

/* Inline Notes Editing */
.notes-textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #667eea;
  border-radius: 6px;
  font-family: inherit;
  font-size: clamp(0.9em, 3vw, 1em);
  min-height: 100px;
  resize: vertical;
  margin-bottom: 10px;
}

.notes-textarea:focus {
  outline: none;
  border-color: #5568d3;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.notes-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-save-notes,
.btn-cancel-notes {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: clamp(13px, 3vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 40px;
}

.btn-save-notes {
  background: #28a745;
  color: white;
}

.btn-save-notes:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

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

.btn-cancel-notes {
  background: #e0e0e0;
  color: #333;
}

.btn-cancel-notes:hover {
  background: #d0d0d0;
  transform: translateY(-2px);
}

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

.edit-btn {
  background: #667eea;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: clamp(13px, 3vw, 14px);
  font-weight: 600;
  transition: background 0.3s;
  min-height: 44px;
}

.edit-btn:hover {
  background: #5568d3;
}

.edit-btn:active {
  transform: scale(0.98);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px;
  overflow-y: auto;
}

.modal-content {
  background: white;
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.modal-header h2 {
  color: #667eea;
  font-size: clamp(1.3em, 4vw, 1.6em);
  margin: 0;
}

.close-modal {
  font-size: 32px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  padding: 0 5px;
}

.close-modal:hover {
  color: #e74c3c;
}

.modal-body {
  padding: 20px;
}

.expense-vehicle-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333;
}

/* Edit Total Fare Section */
.edit-booking-section {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px solid #4caf50;
}

.edit-booking-section .form-group {
  margin-bottom: 0;
}

.booking-edit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-update-booking {
  background: #4caf50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 44px;
}

.btn-update-booking:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

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

.section-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
  margin: 20px 0;
}

@media (min-width: 600px) {
  .booking-edit-row {
    grid-template-columns: 1fr auto;
  }

  .btn-update-booking {
    white-space: nowrap;
    padding: 12px 30px;
  }
}

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

.expenses-header h3 {
  color: #333;
  font-size: clamp(1.1em, 3.5vw, 1.3em);
  margin: 0;
}

.total-expense {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: clamp(0.95em, 3vw, 1.1em);
}

.expense-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.expense-item:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.expense-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 15px;
}

.expense-description {
  color: #333;
  font-weight: 500;
  font-size: clamp(0.9em, 3vw, 1em);
}

.expense-amount {
  color: #667eea;
  font-weight: 700;
  font-size: clamp(0.95em, 3vw, 1.05em);
  white-space: nowrap;
}

.delete-expense-btn {
  background: #e74c3c;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  margin-left: 10px;
  flex-shrink: 0;
}

.delete-expense-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.delete-expense-btn:active {
  transform: scale(0.95);
}

.delete-btn {
  background: #e74c3c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: clamp(13px, 3vw, 14px);
  font-weight: 600;
  transition: background 0.3s;
  width: 100%;
  min-height: 44px;
}

.delete-btn:hover {
  background: #c0392b;
}

.delete-btn:active {
  transform: scale(0.98);
}

.empty-state {
  text-align: center;
  color: white;
  font-size: clamp(1em, 4vw, 1.2em);
  padding: 30px 15px;
  line-height: 1.6;
}

.hidden {
  display: none;
}

/* Tab Navigation */
.schedule-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 5px;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: white;
  color: #667eea;
  border-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tab-btn.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.schedule-tabs-content {
  display: none;
}

.schedule-tabs-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Archived schedule card styling */
.schedule-card.archived {
  opacity: 0.85;
  border-left: 4px solid #999;
}

.schedule-card.archived .vehicle-number {
  color: #666;
}

.archived-badge {
  display: inline-block;
  background: #999;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.search-container {
  margin-bottom: 20px;
}

.search-container input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: clamp(14px, 3vw, 16px);
}

.search-container input:focus {
  outline: none;
  border-color: #667eea;
}

/* Tablet Styles (min-width: 600px) */
@media (min-width: 600px) {
  body {
    padding: 20px;
  }

  .auth-card {
    padding: 40px;
  }

  .form-card {
    padding: 30px;
  }

  .date-range {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .app-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  .app-header h1 {
    text-align: left;
  }

  .user-info {
    flex-wrap: nowrap;
    width: auto;
  }

  .delete-btn {
    width: auto;
  }

  .action-buttons {
    grid-template-columns: 1.5fr 1fr;
  }

  .schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
}

/* Desktop Styles (min-width: 1024px) */
@media (min-width: 1024px) {
  .schedules-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

  .container {
    padding: 0 20px;
  }
}

/* Small Mobile Optimization (max-width: 360px) */
@media (max-width: 360px) {
  .auth-card {
    padding: 25px 15px;
    border-radius: 15px;
  }

  .form-card {
    padding: 18px 12px;
  }

  .schedule-card {
    padding: 15px;
  }

  input,
  textarea,
  .btn {
    font-size: 14px;
  }
}

/* Improve touch targets for all interactive elements */
@media (hover: none) and (pointer: coarse) {
  button,
  a,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
    min-width: 44px;
  }

  .schedule-card:hover {
    transform: none;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .auth-container {
    padding: 10px;
  }

  .auth-card {
    padding: 20px 15px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .app-header {
    margin-bottom: 15px;
  }
}

/* Prevent text size adjustment on mobile Safari */
input,
textarea,
button,
select {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better focus indicators for accessibility */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Empty State Styles */
.empty-state {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 30px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  min-height: 60px;
  max-width: 100%;
  transition: all 0.3s ease;
}

.empty-state:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.empty-state-icon {
  font-size: 40px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.empty-state:hover .empty-state-icon {
  transform: scale(1.1);
}

.empty-state-message {
  font-size: 18px;
  font-weight: 500;
  color: white;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Tablet devices (Portrait) */
@media (max-width: 768px) and (min-width: 481px) {
  .empty-state {
    padding: 18px 25px;
    min-height: 55px;
    margin: 15px auto;
    border-radius: 10px;
    gap: 12px;
  }

  .empty-state-icon {
    font-size: 38px;
  }

  .empty-state-message {
    font-size: 17px;
  }
}

/* Mobile devices (Landscape and Portrait) */
@media (max-width: 480px) {
  .empty-state {
    flex-direction: row;
    padding: 15px 12px;
    min-height: 50px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    gap: 10px;
  }

  .empty-state-icon {
    font-size: 35px;
  }

  .empty-state-message {
    font-size: 14px;
    line-height: 1.3;
    padding: 0;
    text-align: left;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .empty-state {
    flex-direction: row;
    padding: 12px 10px;
    min-height: 45px;
    margin: 8px;
    border-radius: 8px;
    gap: 8px;
  }

  .empty-state-icon {
    font-size: 30px;
  }

  .empty-state-message {
    font-size: 13px;
    line-height: 1.3;
    padding: 0;
    text-align: left;
  }
}

/* Large tablets and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
  .empty-state {
    padding: 22px 35px;
    min-height: 65px;
    max-width: 90%;
    gap: 16px;
  }

  .empty-state-icon {
    font-size: 42px;
  }

  .empty-state-message {
    font-size: 19px;
  }
}

/* Large desktops */
@media (min-width: 1025px) {
  .empty-state {
    padding: 25px 40px;
    min-height: 70px;
    max-width: 85%;
    gap: 18px;
  }

  .empty-state-icon {
    font-size: 45px;
  }

  .empty-state-message {
    font-size: 20px;
  }
}

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 500px) {
  .empty-state {
    min-height: 50px;
    padding: 15px 20px;
    gap: 10px;
  }

  .empty-state-icon {
    font-size: 30px;
  }

  .empty-state-message {
    font-size: 14px;
    line-height: 1.2;
  }

  @keyframes float {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-6px);
    }
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .empty-state {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  }

  .empty-state-icon {
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.12));
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .empty-state,
  .empty-state-icon,
  .empty-state-message {
    animation: none;
    transition: none;
  }

  .empty-state:hover {
    transform: none;
  }

  .empty-state:hover .empty-state-icon {
    transform: none;
  }
}

/* Footer Styles */
.app-footer {
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  color: white;
  font-size: clamp(0.85em, 3vw, 0.95em);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.app-footer p {
  margin: 5px 0;
  line-height: 1.6;
}

.app-footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.app-footer a:hover {
  border-bottom-color: white;
  color: #f0f0f0;
}

@media (max-width: 480px) {
  .app-footer {
    padding: 15px 10px;
    margin-top: 30px;
    font-size: 0.8em;
  }
}
