/* Subjects View Styles */
.subjects-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.subjects-view .header {
  text-align: center;
  margin-bottom: 40px;
}

.subjects-view .header h1 {
  color: #1f2937;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.subjects-view .header p {
  color: #6b7280;
  font-size: 1.1rem;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.subject-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid #e5e7eb;
}

.subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.subject-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f4f6;
}

.subject-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.icon-placeholder {
  width: 40px;
  height: 40px;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #6b7280;
}

.subject-info {
  flex: 1;
}

.subject-info h3 {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.subject-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.4;
}

.subject-arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.subject-card:hover .subject-arrow {
  color: #6b7280;
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading p {
  color: #6b7280;
  font-size: 1.1rem;
}

.error {
  text-align: center;
  padding: 60px 20px;
}

.error h3 {
  color: #dc2626;
  margin-bottom: 10px;
}

.error p {
  color: #6b7280;
  margin-bottom: 20px;
}

.retry-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.retry-btn:hover {
  background: #1d4ed8;
}

/* Dynamic content container */
#dynamic-content {
  min-height: 100vh;
  background: #f9fafb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .subjects-view {
    padding: 15px;
  }
  
  .subjects-view .header h1 {
    font-size: 2rem;
  }
  
  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .subject-card {
    padding: 20px;
  }
  
  .subject-icon {
    width: 50px;
    height: 50px;
  }
  
  .subject-icon img {
    width: 32px;
    height: 32px;
  }
}