/* Google Sheets Integration Styles */
.ltcpraha-sheets-container {
  overflow-x: auto;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease-in-out 0.5s forwards;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

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

/* Court schedule specific styling */
.ltcpraha-court-schedule {
  font-family: "Roboto", "Google Sans", Arial, sans-serif;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

.ltcpraha-court-schedule tr:first-child th:first-child {
  border-right-color: rgb(213, 213, 213) !important;
}

.ltcpraha-court-schedule th,
.ltcpraha-court-schedule td {
  border-right: 1px solid rgb(213, 213, 213) !important;
  border-bottom: 1px solid rgb(213, 213, 213) !important;
  font-size: 14px !important;
}

.ltcpraha-court-schedule th {
  background: #fff !important;
  color: rgb(35, 35, 44) !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ltcpraha-court-schedule th:nth-child(n + 3) {
  /* Styles for columns 3 and onwards */
  min-width: 110px;
}

.ltcpraha-court-schedule th:first-child {
  min-width: 80px;
  text-align: left;
  border-color: rgb(213, 213, 213) !important;
}

.ltcpraha-court-schedule th:nth-child(2) {
  text-align: center;
  min-width: 70px;
}

.ltcpraha-court-schedule tr:nth-child(odd) td:first-child {
  background: white !important;
  font-weight: 700;
  font-size: 16px;
  min-width: 80px;
  position: sticky;
  left: -1px;
  z-index: 5;
  color: rgb(35, 35, 44);
  text-align: left;
  border-right: 1px solid rgb(213, 213, 213) !important;
  border-bottom: 1px solid rgb(213, 213, 213) !important;
  border-color: rgb(213, 213, 213) !important;
}

.ltcpraha-court-schedule tr:nth-child(even) td:first-child {
  background: white !important;
  font-weight: 700;
  font-size: 16px;
  min-width: 80px;
  position: sticky;
  left: -1px;
  z-index: 5;
  color: rgb(35, 35, 44);
  text-align: left;
  border-right: 1px solid rgb(213, 213, 213) !important;
  border-bottom: 1px solid rgb(213, 213, 213) !important;
  border-color: rgb(213, 213, 213) !important;
}

.ltcpraha-court-schedule tr:nth-child(odd) td:nth-child(2) {
  background: white !important;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  min-width: 70px;
  position: sticky;
  left: 79px;
  z-index: 5;
  color: rgb(35, 35, 44);
  border-right: 1px solid rgb(213, 213, 213) !important;
  border-bottom: 1px solid rgb(213, 213, 213) !important;
  border-color: rgb(213, 213, 213) !important;
}

.ltcpraha-court-schedule tr:nth-child(even) td:nth-child(2) {
  background: white !important;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  min-width: 70px;
  position: sticky;
  left: 79px;
  z-index: 5;
  color: rgb(35, 35, 44);
  border-right: 1px solid rgb(213, 213, 213) !important;
  border-bottom: 1px solid rgb(213, 213, 213) !important;
  border-color: rgb(213, 213, 213) !important;
}

.ltcpraha-court-schedule td.ltcpraha-reserved {
  background-color: #dc3545 !important;
  color: #fff !important;
}

.ltcpraha-court-schedule tr {
  background-color: rgba(255, 220, 40, 0.15) !important;
}

/* Row slide-in animation - all rows except first (header) */
.ltcpraha-court-schedule tr:nth-child(odd):not(:first-child) {
  opacity: 0;
  transform: translateX(100px);
  animation: slideInFromRight 0.2s ease-in-out forwards;
}

.ltcpraha-court-schedule tr:nth-child(even):not(:first-child) {
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInFromLeft 0.2s ease-in-out forwards;
}

.ltcpraha-court-schedule tr:nth-child(2) {
  animation-delay: 1s !important;
}

.ltcpraha-court-schedule tr:nth-child(3) {
  animation-delay: 1.1s !important;
}

.ltcpraha-court-schedule tr:nth-child(4) {
  animation-delay: 1.2s !important;
}

.ltcpraha-court-schedule tr:nth-child(5) {
  animation-delay: 1.3s !important;
}

.ltcpraha-court-schedule tr:nth-child(6) {
  animation-delay: 1.4s !important;
}

.ltcpraha-court-schedule tr:nth-child(7) {
  animation-delay: 1.5s !important;
}

.ltcpraha-court-schedule tr:nth-child(8) {
  animation-delay: 1.6s !important;
}

.ltcpraha-court-schedule tr:nth-child(9) {
  animation-delay: 1.7s !important;
}

.ltcpraha-court-schedule tr:nth-child(10) {
  animation-delay: 1.8s !important;
}

.ltcpraha-court-schedule tr:nth-child(11) {
  animation-delay: 1.9s !important;
}

.ltcpraha-court-schedule tr:nth-child(12) {
  animation-delay: 2s !important;
}

.ltcpraha-court-schedule tr:nth-child(13) {
  animation-delay: 2.1s !important;
}

.ltcpraha-court-schedule tr:nth-child(14) {
  animation-delay: 2.2s !important;
}

.ltcpraha-court-schedule tr:nth-child(15) {
  animation-delay: 2.3s !important;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ltcpraha-sheets-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  padding: 15px;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
  .ltcpraha-sheets-table {
    font-size: 12px;
  }

  .ltcpraha-sheets-table th,
  .ltcpraha-sheets-table td {
    padding: 6px 8px;
  }

  .ltcpraha-sheets-table th:nth-child(n + 3),
  .ltcpraha-sheets-table td:nth-child(n + 3) {
    min-width: 80px;
    font-size: 11px;
  }
}

/* Loading state */
.ltcpraha-sheets-loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.ltcpraha-sheets-loading::before {
  content: "⏳";
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}
