/* ŠkolaLinda Rozvrh Plugin Styles */
#skolalinda-rozvrh-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.rozvrh-title {
  text-align: center;
  font-size: 2.5em;
  color: #333;
  margin-bottom: 30px;
  font-weight: 300;
}

.rozvrh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rozvrh-filters select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  color: #666;
  width: 180px;
  flex: 0 0 180px;
  transition: border-color 0.3s ease;
}

.rozvrh-filters select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.rozvrh-description {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
}

#courses-container {
  min-height: 200px;
}

.courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.course-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid #007cba;
}

.course-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.course-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
}

.course-code {
  background: #007cba;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.course-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.course-detail {
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
}

.course-detail strong {
  color: #333;
  margin-right: 8px;
  min-width: 80px;
  font-weight: 600;
}

.course-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.btn-prihlasit {
  display: inline-block;
  background: #007cba;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid #007cba;
}

.btn-prihlasit:hover {
  background: #005a87;
  border-color: #005a87;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.btn-prihlasit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

.no-courses {
  text-align: center;
  color: #666;
  font-size: 16px;
  padding: 40px;
  background: white;
  border-radius: 8px;
  margin: 20px 0;
}

/* Loading state */
#courses-container.loading {
  opacity: 0.6;
  pointer-events: none;
}

#courses-container.loading::after {
  content: "Načítám kurzy...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
  #skolalinda-rozvrh-wrapper {
    padding: 15px;
  }

  .rozvrh-title {
    font-size: 2em;
  }

  .rozvrh-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .rozvrh-filters select {
    min-width: auto;
    width: 100%;
  }

  .courses-list {
    grid-template-columns: 1fr;
  }

  .course-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-code {
    margin-left: 0;
    margin-top: 5px;
  }

  .course-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rozvrh-title {
    font-size: 1.5em;
  }

  .course-item {
    padding: 15px;
  }

  .course-title {
    font-size: 16px;
  }
}
