/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

/* Card Component */
.card {
  padding: 32px;
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--glow-shadow);
  transform: translateY(-4px);
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(15, 17, 26, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.form-select option {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Modal Overlay and Panel */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(15, 17, 26, 0.5);
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-violet);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  border: none;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Success View Overlay */
.success-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

/* Timer Styles */
.timer-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.timer-box {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-glass);
  padding: 16px 24px;
  border-radius: 12px;
  min-width: 90px;
  text-align: center;
  box-shadow: var(--glow-shadow);
}

.timer-digit {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timer-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Accordion curriculum styling */
.accordion {
  margin-top: 30px;
}

.accordion-item {
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-header {
  padding: 20px 24px;
  background: rgba(22, 28, 45, 0.4);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
}

.accordion-header:hover {
  background: rgba(22, 28, 45, 0.7);
}

.accordion-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background: rgba(15, 17, 26, 0.3);
  color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
  padding: 20px 24px;
  max-height: 1000px;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* Chart Visual Blocks */
.chart-container {
  position: relative;
  height: 220px;
  width: 100%;
  margin-top: 24px;
}

.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.chart-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.chart-bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 6px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

.chart-line-svg {
  width: 100%;
  height: 100%;
}

.chart-line-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.data-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges for Year & Major */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-year {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-major {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
