/* =====================================================================
   INTRODUCTION TO TRIGONOMETRY — Class 10 Maths Notes
   Layout and theme styles for geometric proofs, identity figures, 
   and the step-by-step animated table generator.
   ===================================================================== */

/* Diagram Wrappers */
.trig-diagram-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 22px auto;
  max-width: 460px;
}

.trig-diagram-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

.trig-diagram-caption {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

/* Proof Container Box */
.proof-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

.proof-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  margin-bottom: 8px;
}

/* SVG Line & Geometry Elements */
.geo-triangle {
  fill: rgba(37, 99, 235, 0.05);
  stroke: #0f172a;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.geo-side-accent {
  stroke: #2563eb;
  stroke-width: 2.5;
}

.geo-hypotenuse {
  stroke: #dc2626;
  stroke-width: 2.5;
}

.geo-construction {
  stroke: #64748b;
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
}

.geo-dot {
  fill: #0f172a;
}

.geo-right-angle {
  fill: none;
  stroke: #0f172a;
  stroke-width: 1.5;
}

.geo-angle-arc {
  fill: rgba(37, 99, 235, 0.16);
  stroke: #2563eb;
  stroke-width: 1.8;
}

.geo-text {
  font-size: 14px;
  font-weight: 600;
  fill: #1e293b;
}

.geo-text-accent {
  font-size: 14px;
  font-weight: 700;
  fill: #2563eb;
}

.geo-text-red {
  font-size: 14px;
  font-weight: 700;
  fill: #dc2626;
}

.geo-text-muted {
  font-size: 12.5px;
  font-weight: 500;
  fill: #64748b;
}

/* =====================================================================
   Animated Table Builder Styles
   ===================================================================== */
.trick-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trick-step-display {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.trick-step-number {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.05em;
  margin-right: 10px;
}

.trick-step-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.anim-trig-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
  background: #ffffff;
}

.anim-trig-table th,
.anim-trig-table td {
  border: 1px solid #cbd5e1;
  padding: 10px 8px;
  height: 28px;
}

.anim-trig-table thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.anim-trig-table tbody th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
}

.anim-trig-table td {
  color: #334155;
  font-weight: 600;
  transition: all 0.3s ease;
}

.anim-trig-table td.cell-updated {
  background-color: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  transform: scale(1.03);
}

.trick-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.trick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trick-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
}

.trick-btn-primary:hover {
  background-color: #1d4ed8;
}

.trick-btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.trick-btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}