/* Dodatkowe style dla aplikacji */

/* Styl dla aktywnego linku nawigacyjnego */
.nav-link.active {
  background-color: rgba(30, 58, 138, 0.8);
  font-weight: 600;
}

/* Style dla przycisków */
button:focus, a:focus {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

/* Poprawa dostÄ™pnoĹ›ci elementów interaktywnych */
button, a, select, input {
  transition: all 0.2s ease-in-out;
}

/* Style dla sekcji rozwiÄ…zaĹ„ matematycznych */
.math-formula {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}

/* Style dla odtwarzacza wideo */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Style dla znaczników czasowych w tutorialach */
.time-marker {
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-marker:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.time-marker-time {
  font-weight: 600;
  color: #2563eb;
}

/* Style dla filtrów */
.filter-control {
  font-size: 0.95rem;
}

/* Style dla kart zadaĹ„ i tutoriali */
.task-card, .tutorial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover, .tutorial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Style dla oznaczeĹ„ poziomu trudnoĹ›ci */
.difficulty-easy {
  background-color: rgba(16, 185, 129, 0.1);
  color: rgb(6, 95, 70);
}

.difficulty-medium {
  background-color: rgba(245, 158, 11, 0.1);
  color: rgb(146, 64, 14);
}

.difficulty-hard {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(153, 27, 27);
}

/* Style dla alertów */
.alert {
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-left-color: rgb(16, 185, 129);
  color: rgb(6, 95, 70);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-left-color: rgb(239, 68, 68);
  color: rgb(153, 27, 27);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-left-color: rgb(59, 130, 246);
  color: rgb(30, 64, 175);
}

/* Style dla podpowiedzi, odpowiedzi i rozwiÄ…zaĹ„ */
.hint-container, .answer-container, .solution-container {
  transition: all 0.3s ease;
}

/* Style dla wyróĹĽnionych elementów w rozwiÄ…zaniach */
.solution-container strong {
  color: #1e40af;
}

.solution-container em {
  font-style: italic;
  color: #4338ca;
}

/* Style dla równaĹ„ matematycznych */
.equation {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  text-align: center;
  margin: 1rem 0;
  font-size: 1.1rem;
}

/* Style dla responsywnych tabel */
.responsive-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table table {
  min-width: 100%;
  border-collapse: collapse;
}

.responsive-table th, .responsive-table td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
}

.responsive-table th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* Style dla przycisków panelu administracyjnego */
.admin-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-btn-primary {
  background-color: #2563eb;
  color: white;
}

.admin-btn-primary:hover {
  background-color: #1d4ed8;
}

.admin-btn-danger {
  background-color: #dc2626;
  color: white;
}

.admin-btn-danger:hover {
  background-color: #b91c1c;
}

.admin-btn-secondary {
  background-color: #6b7280;
  color: white;
}

.admin-btn-secondary:hover {
  background-color: #4b5563;
}

/* Style dla formularzy administracyjnych */
.admin-form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  outline: none;
}

.admin-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

/* Dodatkowe style dla wyĹ›wietlania matematycznych wzorów */
.math-symbol {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}

.superscript {
  vertical-align: super;
  font-size: 0.75em;
}

.subscript {
  vertical-align: sub;
  font-size: 0.75em;
}

/* Poprawki dostÄ™pnoĹ›ci - kontrast */
.text-gray-400 {
  color: #9ca3af !important;
}

.text-gray-500 {
  color: #6b7280 !important;
}

.text-gray-600 {
  color: #4b5563 !important;
}

/* Animacja dla przycisków odtwarzania wideo */
.play-button {
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

/* Style dla paska nawigacyjnego na maĹ‚ych ekranach */
@media (max-width: 768px) {
  .navbar-items {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Poprawki dla dostÄ™pnoĹ›ci - rozmiar klikniÄ™cia na urzÄ…dzeniach mobilnych */
@media (max-width: 640px) {
  .nav-link, button, .filter-control {
    padding: 0.625rem 0.75rem;
  }
  
  .task-card, .tutorial-card {
    margin-bottom: 1.5rem;
  }
}

/* Dodatkowe style dla responsywnych filmów */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%;
}

.aspect-w-16 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}