/* Odjeljena Page Styles */

.modern-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.classes-grid {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  align-items: stretch;
  overflow-x: auto;
}

.modern-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Override container max-width for this page */
.container {
  max-width: 1400px !important;
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.grade-card {
  cursor: pointer;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.05));
  flex-wrap: nowrap;
}

.card-content {
  padding: 1rem 2rem 2rem;
}

.grade-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.grade-info h3 {
  margin: 0 0 0.5rem;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.grade-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.stats-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.classes-container {
  padding: 0 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.stat i {
  color: #2563eb;
  font-size: 1.1rem;
}

.modern-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.modern-btn i {
  transition: transform 0.3s ease;
}

.modern-btn:hover i {
  transform: translateX(4px);
}

.back-navigation {
  margin-bottom: 2rem;
  text-align: center;
}

.back-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #2563eb;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: rgba(37, 99, 235, 0.1);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #1e293b;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.class-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.class-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.class-card h3 {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.class-info {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.class-info p {
  margin: 0.4rem 0;
}

.class-info i {
  width: 14px;
  font-size: 0.8rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .classes-grid {
    flex-direction: column;
    overflow-x: visible;
  }
  
  .class-card {
    min-width: auto;
  }
  
  .card-header {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .modern-card {
  background: rgba(30, 41, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(29, 78, 216, 0.1));
}

[data-theme="dark"] .grade-info h3,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .class-card h3 {
  color: var(--text-color);
}

[data-theme="dark"] .grade-subtitle,
[data-theme="dark"] .stat,
[data-theme="dark"] .class-card p {
  color: var(--text-secondary);
}

[data-theme="dark"] .back-btn {
  background: rgba(30, 41, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #60a5fa;
}

[data-theme="dark"] .back-btn:hover {
  background: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .class-card {
  background: rgba(30, 41, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}