/* src/client/styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
.graph-calculator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.canvas-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.canvas-container {
  width: var(--canvas-size, 100vw);
  height: var(--canvas-size, 100vw);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.graph-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.graph-canvas:active {
  cursor: grabbing;
}
.ui-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 100;
}
.ui-layer > * {
  pointer-events: auto;
}
.viewport-info {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  font-family:
    "SF Mono",
    "Monaco",
    "Courier New",
    monospace;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.control-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.control-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #333;
  position: relative;
}
.control-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.control-btn:active {
  transform: translateY(0);
}
.control-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: #2196F3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}
.add-btn.circular {
  width: 48px;
  height: 48px;
  background: #2196F3;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}
.add-btn.circular:hover:not(:disabled) {
  background: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}
.add-btn.circular:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}
.add-btn.circular:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}
.viewport-info {
  display: none;
}
.add-btn.circular svg {
  stroke-width: 3;
}
.function-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f44336;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid rgba(255, 255, 255, 0.95);
}
.expression-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.expression-input-container {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 4px;
}
.expression-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family:
    "SF Mono",
    "Monaco",
    "Courier New",
    monospace;
  outline: none;
  color: #333;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  line-height: 1.4;
}
.expression-input.multi-line {
  resize: none;
  overflow-y: auto;
}
.expression-input::placeholder {
  color: #999;
}
.add-btn {
  width: 48px;
  height: 48px;
  background: #2196F3;
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.add-btn:hover:not(:disabled) {
  background: #1976D2;
  transform: translateY(-1px);
}
.add-btn:active:not(:disabled) {
  transform: translateY(0);
}
.add-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}
.error-tooltip {
  position: absolute;
  bottom: 100%;
  left: 20px;
  right: 20px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #f44336;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}
.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #666;
}
.grid-menu-container {
  position: relative;
}
.grid-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 180px;
  z-index: 1000;
}
.grid-option {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  text-align: left;
}
.grid-option:hover {
  background: #f5f5f5;
}
.grid-option.active {
  background: #e3f2fd;
  color: #2196F3;
}
.function-list-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: 320px;
  max-height: calc(100vh - 180px);
  overflow: hidden;
  z-index: 200;
}
.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-content {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 260px);
}
.close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}
.close-btn:hover {
  background: #e0e0e0;
  color: #333;
}
.function-list h4 {
  color: #666;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.function-item {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.function-item:hover {
  background: #e3f2fd;
  border-color: #2196F3;
}
.function-item:last-child {
  margin-bottom: 0;
}
.function-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.visibility-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f8f9fa;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.visibility-btn.visible {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}
.visibility-btn.hidden {
  background: #f5f5f5;
  color: #999;
}
.color-picker {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: none;
}
.remove-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f8f9fa;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: auto;
}
.remove-btn:hover {
  background: #f44336;
  border-color: #f44336;
  color: white;
}
.function-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.function-expression {
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  border-left: 3px solid currentColor;
  color: inherit;
  overflow-x: auto;
  white-space: nowrap;
}
.latex-expression {
  display: block;
  max-width: 100%;
}
.latex-expression .katex {
  color: inherit;
  font-size: 1em;
}
.latex-expression math {
  color: inherit;
  font-size: 1em;
}
.latex-expression-fallback {
  font-family:
    "SF Mono",
    "Monaco",
    "Courier New",
    monospace;
  word-break: break-all;
  white-space: pre-line;
}
.function-stats {
  font-size: 11px;
  color: #666;
  font-style: italic;
}
.examples-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: 380px;
  max-height: calc(100vh - 180px);
  overflow: hidden;
  z-index: 200;
}
.examples-content {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 260px);
}
.example-category {
  margin-bottom: 20px;
}
.example-category h4 {
  color: #666;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.example-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.example-item {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.example-item:hover {
  background: #e3f2fd;
  border-color: #2196F3;
  transform: translateX(2px);
}
.example-name {
  font-weight: 500;
  color: #333;
}
.example-expr {
  font-size: 0.85em;
  color: #666;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.help-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  z-index: 300;
}
.help-header {
  padding: 24px 28px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.help-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-content {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}
.help-section {
  margin-bottom: 32px;
}
.help-section:last-child {
  margin-bottom: 0;
}
.help-section h4 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.1em;
}
.help-section h5 {
  color: #666;
  margin-bottom: 8px;
  font-size: 0.9em;
  font-weight: 600;
}
.help-section p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}
.help-section ul {
  list-style: none;
  padding-left: 0;
}
.help-section li {
  padding: 6px 0;
  color: #666;
  line-height: 1.6;
}
.help-section code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family:
    "SF Mono",
    "Monaco",
    "Courier New",
    monospace;
  font-size: 0.9em;
  color: #e91e63;
}
.function-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.function-grid > div {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}
.function-grid code {
  display: block;
  margin-top: 8px;
  background: transparent;
  padding: 0;
  color: #666;
  font-size: 0.85em;
  line-height: 1.8;
}
.help-content::-webkit-scrollbar,
.examples-content::-webkit-scrollbar,
.panel-content::-webkit-scrollbar {
  width: 8px;
}
.help-content::-webkit-scrollbar-track,
.examples-content::-webkit-scrollbar-track,
.panel-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.help-content::-webkit-scrollbar-thumb,
.examples-content::-webkit-scrollbar-thumb,
.panel-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.help-content::-webkit-scrollbar-thumb:hover,
.examples-content::-webkit-scrollbar-thumb:hover,
.panel-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}
@media (max-width: 768px) {
  .viewport-info {
    top: 10px;
    left: 10px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .control-buttons {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  .control-btn {
    width: 36px;
    height: 36px;
  }
  .function-count {
    top: -4px;
    right: -4px;
    font-size: 9px;
    padding: 1px 4px;
    min-width: 16px;
    height: 16px;
  }
  .expression-bar {
    bottom: 10px;
    width: 95%;
    max-width: none;
  }
  .expression-input {
    padding: 12px 16px;
    font-size: 14px;
  }
  .add-btn {
    width: 44px;
    height: 44px;
  }
  .function-list-panel,
  .examples-panel {
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 60vh;
  }
  .help-panel {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
  }
  .function-grid {
    grid-template-columns: 1fr;
  }
}
.logo-fab {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
}
.logo-fab:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px) scale(1.05);
}
.logo-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}
@media (max-width: 768px) {
  .logo-fab {
    top: 10px;
    left: 6px;
    width: 38px;
    height: 38px;
  }
  .logo-img {
    width: 28px;
    height: 28px;
  }
}
@supports (-webkit-touch-callout: none) {
  body {
    position: fixed;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }
}
.simple-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: 300px;
  max-height: calc(100vh - 180px);
  overflow: hidden;
  z-index: 200;
}
.simple-function-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}
.simple-function-item code {
  flex: 1;
  font-size: 12px;
  margin-right: 8px;
}
.simple-controls {
  display: flex;
  gap: 4px;
}
.simple-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.simple-btn:hover {
  background: #f0f0f0;
}
.simple-category {
  margin-bottom: 16px;
}
.simple-category h4 {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.simple-example {
  display: block;
  width: 100%;
  text-align: left;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.simple-example:hover {
  background: #e3f2fd;
  border-color: #2196F3;
}
.simple-example span {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.simple-example code {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}
.simple-help-content h4 {
  color: #333;
  margin: 16px 0 8px 0;
  font-size: 14px;
}
.simple-help-content ul {
  margin: 0 0 16px 16px;
  font-size: 13px;
  color: #666;
}
.simple-help-content p {
  font-size: 13px;
  color: #666;
  margin: 8px 0;
}
.control-btn.selected {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}
@media (max-width: 768px) {
  .simple-panel {
    right: 10px;
    left: 10px;
    width: auto;
  }
}
.help-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}
.help-footer-section {
  margin-bottom: 20px;
}
.help-footer-section:last-child {
  margin-bottom: 0;
}
.help-footer p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.help-link {
  color: #2196F3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.help-link:hover {
  color: #1976D2;
  text-decoration: underline;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.contact-label {
  color: #666;
  font-weight: 500;
  min-width: 60px;
}
.contact-value {
  color: #333;
  font-family:
    "SF Mono",
    "Monaco",
    "Courier New",
    monospace;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
@media (max-width: 768px) {
  .help-footer {
    margin-top: 32px;
    padding-top: 20px;
  }
  .contact-info {
    gap: 10px;
  }
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .contact-label {
    min-width: auto;
  }
}
/*# sourceMappingURL=index.css.map */
