/* tools.css - Stylesheet for specialized mathematical layouts, tables, and visualization overlays */

/* Number Line Component Styles */
.number-line-container {
  width: 100%;
  overflow-x: auto;
  padding: 2rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  position: relative;
}

.number-line-svg {
  display: block;
  margin: 0 auto;
  user-select: none;
}

.number-line-tick {
  stroke: var(--text-muted);
  stroke-width: 2;
}

.number-line-tick-label {
  fill: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
}

.number-line-line {
  stroke: var(--text-secondary);
  stroke-width: 3;
}

.number-line-arrow {
  fill: var(--text-secondary);
}

.number-line-highlight-circle {
  fill: var(--color-secondary);
  stroke: var(--color-primary);
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px rgba(var(--color-primary-rgb), 0.5));
}

.number-line-pointer {
  fill: var(--color-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-normal);
}

.number-line-interactive-tick {
  cursor: pointer;
}

.number-line-interactive-tick:hover rect {
  fill: rgba(var(--color-primary-rgb), 0.1);
}

/* Multiplication Table Generator Layout */
.math-table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.math-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  background-color: var(--bg-card);
}

.math-table th, .math-table td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  min-width: 50px;
}

.math-table th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
}

.math-table td {
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.math-table td:hover {
  background-color: rgba(var(--color-primary-rgb), 0.15);
  color: var(--text-primary);
}

.math-table td.highlighted {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
}

/* Print Specific Overrides */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .navbar, .footer, .breadcrumbs, .tool-sidebar, .calculator-actions, .explanation-card, .back-to-top, .toast-container {
    display: none !important;
  }
  
  .tool-layout {
    grid-template-columns: 1fr !important;
  }
  
  .card, .result-card, .math-table {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
  
  .math-table th {
    background-color: #f1f1f1 !important;
    color: #000000 !important;
  }
}

/* Password Strength Meter Indicator styling */
.strength-meter {
  height: 6px;
  width: 100%;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  margin-top: 0.5rem;
  overflow: hidden;
  position: relative;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width var(--transition-normal), background-color var(--transition-normal);
}

.strength-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.strength-bar.weak { background-color: var(--color-error); }
.strength-bar.medium { background-color: var(--color-warning); }
.strength-bar.strong { background-color: var(--color-success); }
.strength-bar.secure { background-color: var(--color-accent); }

/* Geometry Canvas Preview / Interactive Shapes */
.geometry-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  min-height: 200px;
}

.geometry-svg {
  max-width: 160px;
  max-height: 160px;
}

.shape-outline {
  fill: rgba(var(--color-primary-rgb), 0.1);
  stroke: var(--color-primary);
  stroke-width: 3px;
}

.shape-dimension-line {
  stroke: var(--text-muted);
  stroke-width: 1.5px;
  stroke-dasharray: 4;
}

.shape-dimension-text {
  fill: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
}

/* Step list spacing and division visualization formatting */
.division-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.division-step-row {
  display: flex;
  align-items: center;
}

.division-step-num {
  width: 80px;
  color: var(--text-muted);
}

.division-step-equation {
  flex-grow: 1;
  color: var(--text-primary);
}

/* Share modal component */
.share-links-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-link-btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-link-btn:hover {
  background-color: var(--bg-card);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
