/* src/components/button.css */
.btn {
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}
.btn-rounded-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: var(--color-primary, #0071e3);
  color: var(--color-text-light, #fff);
  transition: background 0.2s, transform 0.2s;
}
.btn-sm {
  padding: 0.1875rem 1rem;
  font-size: 0.9375rem;
}
.btn-md {
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
}
.btn-lg {
  padding: 0.8125rem 1.5625rem;
  font-size: 1.0625rem;
}
.btn-xl {
  padding: 0.9375rem 1.875rem;
  font-size: 1.3125rem;
}
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary {
  background: var(--color-primary, #0071e3);
  color: var(--color-text-light, #fff);
}
.btn-primary:hover {
  filter: brightness(0.85);
}
.btn-secondary {
  background: var(--color-secondary, #f5f5f5);
  color: var(--color-text-dark, #000);
  border: 2px solid rgba(0, 0, 0, 0.1);
}
.btn-secondary.active,
.btn-secondary:hover {
  filter: brightness(0.9);
}
.btn-success {
  background: var(--color-success, #28a745);
  color: var(--color-text-light, #fff);
}
.btn-success:hover {
  filter: brightness(0.85);
}
.btn-warning {
  background: var(--color-warning, #ffc107);
  color: var(--color-text-dark, #000);
}
.btn-warning:hover {
  filter: brightness(0.85);
}
.btn-danger {
  background: var(--color-danger, #dc3545);
  color: var(--color-text-light, #fff);
}
.btn-danger:hover {
  filter: brightness(0.85);
}
.btn-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text-dark, #000);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-glass::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 0;
  background: rgba(0, 0, 0, 0.084);
  filter: blur(16px);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.btn-glass:active {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(1px);
}
[class*="btn-["] {
  color: var(--color-text-light, #fff);
  transition: all 0.2s ease;
}
[class*="btn-["]:hover {
  filter: brightness(0.85);
}
:root.dark {
  .btn-primary {
    background: #0558be;
    color: var(--color-text-light, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  .btn-primary:hover {
    background: #2b76d2;
  }
  .btn-secondary {
    background: #1c1c1e;
    color: #f0f0f0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  .btn-secondary.active,
  .btn-secondary:hover {
    background-color: #2a2a2c;
  }
  .btn-success {
    background: #1c3e23;
  }
  .btn-success:hover {
    filter: brightness(1.2);
  }
  .btn-warning {
    background: #664d03;
  }
  .btn-warning:hover {
    filter: brightness(1.2);
  }
  .btn-danger {
    background: #7a1f1f;
  }
  .btn-danger:hover {
    filter: brightness(1.2);
  }
  .btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  .btn-glass::before {
    background: rgba(255, 255, 255, 0.04);
  }
  .btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .btn-glass:active {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

/* src/components/codeblock.css */
.codeblock {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  font-family:
    "SF Mono",
    "Menlo",
    monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fefefe55;
  backdrop-filter: blur(8px);
}
.pre-content {
  margin: 0;
  backdrop-filter: blur(12px);
  color: #000000;
  padding-left: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
  display: block;
  background: transparent;
  color: inherit;
  position: relative;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
.pre-content.collapsed {
  max-height: 0;
  opacity: 0;
}
.pre-copy-btn {
  transition: background 0.2s ease, color 0.2s ease;
}
.pre-copy-btn.btn-in-pre {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}
.pre-top {
  background: rgb(74, 74, 74);
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 9px;
  padding-left: 20px;
}
.pre-top-btns {
  display: flex;
  gap: 8px;
  z-index: 10;
  cursor: pointer !important;
}
.pre-top-btns span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
}
.pre-btn-red {
  background: #ff5f57;
  position: relative;
}
.pre-btn-orange {
  background: #ffbd2e;
  position: relative;
}
.pre-btn-green {
  background: #28c940;
  position: relative;
}
.pre-btn-red::before {
  content: "\d7";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: black;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
}
.pre-btn-orange::before {
  content: "\2013";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: black;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
}
.pre-btn-green::before {
  content: "\26f6";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: black;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
}
.pre-top-btns span:hover::before {
  opacity: 1;
}
.pre-btn-red:hover {
  filter: brightness(1.2);
}
.pre-btn-orange:hover {
  filter: brightness(1.2);
}
.pre-btn-green:hover {
  filter: brightness(1.2);
}
.codeblock .token.comment,
.codeblock .token.prolog,
.codeblock .token.doctype,
.codeblock .token.cdata {
  color: #7f8c8d;
  font-style: italic;
}
.codeblock .token.punctuation {
  color: #2c3e50;
}
.codeblock .token.operator,
.codeblock .token.boolean,
.codeblock .token.symbol,
.codeblock .token.entity {
  color: #2c3e50;
}
.codeblock .token.number {
  color: #d35400;
}
.codeblock .token.property,
.codeblock .token.tag,
.codeblock .token.constant,
.codeblock .token.class-name,
.codeblock .token.function {
  color: #2980b9;
  font-weight: 500;
}
.codeblock .token.selector,
.codeblock .token.attr-name,
.codeblock .token.string,
.codeblock .token.char,
.codeblock .token.builtin,
.codeblock .token.inserted {
  color: #27ae60;
}
.codeblock .token.keyword,
.codeblock .token.atrule,
.codeblock .token.attr-value,
.codeblock .token.deleted,
.codeblock .token.regex,
.codeblock .token.important {
  color: #e67e22;
  font-weight: 500;
}
.codeblock .token.entity {
  cursor: help;
}
.codeblock .token.important,
.codeblock .token.bold {
  font-weight: bold;
}
.codeblock .token.italic {
  font-style: italic;
}
.codeblock ::selection {
  background: rgba(46, 204, 113, 0.2);
}
.codeblock pre::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.codeblock pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.codeblock pre::-webkit-scrollbar-track {
  background: transparent;
}
:root.dark {
  .codeblock {
    background: #1e1e2f88;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
  .pre-content {
    color: #f0f0f0;
  }
  .pre-top {
    background: #2c2c3e;
  }
  .codeblock .token.comment,
  .codeblock .token.prolog,
  .codeblock .token.doctype,
  .codeblock .token.cdata {
    color: #95a5a6;
    font-style: italic;
  }
  .codeblock .token.punctuation {
    color: #ecf0f1;
  }
  .codeblock .token.operator,
  .codeblock .token.boolean,
  .codeblock .token.symbol,
  .codeblock .token.entity {
    color: #ecf0f1;
  }
  .codeblock .token.number {
    color: #e67e22;
  }
  .codeblock .token.property,
  .codeblock .token.tag,
  .codeblock .token.constant,
  .codeblock .token.class-name,
  .codeblock .token.function {
    color: #3498db;
    font-weight: 500;
  }
  .codeblock .token.selector,
  .codeblock .token.attr-name,
  .codeblock .token.string,
  .codeblock .token.char,
  .codeblock .token.builtin,
  .codeblock .token.inserted {
    color: #2ecc71;
  }
  .codeblock .token.keyword,
  .codeblock .token.atrule,
  .codeblock .token.attr-value,
  .codeblock .token.deleted,
  .codeblock .token.regex,
  .codeblock .token.important {
    color: #f39c12;
    font-weight: 500;
  }
}

/* src/components/dropdown.css */
.dropdown {
  position: relative;
  display: inline-block;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  cursor: pointer;
  user-select: none;
}
.dropdown-btn {
  padding: 0.3rem 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--color-bg, #fefefe);
  color: var(--color-text-dark, #000);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-btn:hover {
  background: var(--color-bg-hover, rgba(0, 0, 0, 0.05));
}
.dropdown-btn:after {
  content: "\25be";
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.dropdown.open .dropdown-btn:after {
  transform: rotate(180deg);
}
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 10rem;
  border-radius: 12px;
  margin-top: 0.5rem;
  overflow: hidden;
  overflow-y: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000;
}
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}
.dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown.open .dropdown-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown-item {
  padding: 0.3rem 0.4rem;
  color: var(--color-text-dark, #000);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}
.dropdown-item.active {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.1);
}
.dropdown-item[aria-disabled=true],
.dropdown-item.placeholder {
  color: rgba(0, 0, 0, 0.4);
  cursor: default;
  pointer-events: none;
}
.dropdown input[type=hidden] {
  display: none;
}
.dropdown-divider {
  height: 1px;
  margin: 0.25rem 0;
  background: rgba(0, 0, 0, 0.1);
}
.dropdown-label {
  padding: 0.3rem 0.4rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  cursor: default;
}
:root.dark .dropdown-btn {
  background: #1c1c1e;
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
:root.dark .dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}
:root.dark .dropdown-content {
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
:root.dark .dropdown-item {
  color: #f0f0f0;
}
:root.dark .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
:root.dark .dropdown-item.active {
  background: rgba(255, 255, 255, 0.12);
}
:root.dark .dropdown-divider {
  background: rgba(255, 255, 255, 0.2);
}
:root.dark .dropdown-item[aria-disabled=true],
:root.dark .dropdown-item.placeholder {
  color: rgba(255, 255, 255, 0.4);
}
:root.dark .dropdown-label {
  color: rgba(255, 255, 255, 0.6);
}
:root.dark .dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

/* src/components/input.css */
.sol-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  width: 100%;
}
.sol-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-dark, #000);
  opacity: 0.6;
  margin-left: 0.2rem;
}
.sol-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.3rem 0.4rem;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--color-bg, #fefefe);
  color: var(--color-text-dark, #000);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}
.sol-input::placeholder {
  color: var(--color-text-dark, #000);
  opacity: 0.3;
}
.sol-input:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: var(--color-bg-hover, #ffffff);
}
.sol-input:focus {
  border-color: var(--color-primary, #0071e3);
  box-shadow: 0 0 0 4px var(--color-focus-glow, rgba(0, 113, 227, 0.15)), 0 2px 8px rgba(0, 0, 0, 0.05);
  background: var(--color-bg-hover, #ffffff);
}
.sol-input:disabled {
  background: var(--color-secondary, #f5f5f5);
  color: var(--color-text-dark, #000);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.sol-input-error {
  border-color: var(--color-danger, #dc3545) !important;
}
.sol-input-error:focus {
  box-shadow: 0 0 0 4px var(--color-error-glow, rgba(220, 53, 69, 0.15)) !important;
}
:root.dark .sol-label {
  color: var(--color-text-light, #fff);
  opacity: 0.6;
}
:root.dark .sol-input {
  background: rgba(28, 28, 30, 0.8);
  color: var(--color-text-light, #fff);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.4);
}
:root.dark .sol-input::placeholder {
  color: var(--color-text-light, #fff);
  opacity: 0.3;
}
:root.dark .sol-input:hover {
  background: rgba(44, 44, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}
:root.dark .sol-input:focus {
  background: rgba(44, 44, 46, 1);
  border-color: var(--color-primary-dark, #0a84ff);
  box-shadow: 0 0 0 4px var(--color-focus-glow-dark, rgba(10, 132, 255, 0.2)), 0 4px 12px rgba(0, 0, 0, 0.5);
}
:root.dark .sol-input-error {
  border-color: var(--color-danger, #ff453a) !important;
}

/* src/components/contextMenu.css */
.sol-context-menu {
  position: fixed;
  display: none;
  z-index: 9999;
  min-width: 180px;
  background: transparent;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 5px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  user-select: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sol-context-menu.visible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sol-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.3rem;
  font-size: 0.85rem;
  color: var(--color-text-dark, #000);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.sol-menu-item:hover {
  background: var(--color-primary, #007aff);
  color: #fff;
}
.sol-menu-shortcut {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-left: 20px;
}
.sol-menu-item:hover .sol-menu-shortcut {
  color: #fff;
  opacity: 0.8;
}
.sol-menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 4px 0;
}
:root.dark .sol-context-menu {
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
:root.dark .sol-menu-item {
  color: var(--color-text-light, #f0f0f0);
}
:root.dark .sol-menu-divider {
  background: rgba(255, 255, 255, 0.1);
}

/* src/components/darkToggle.css */

/* src/index.css */
:root {
  --font-body:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    sans-serif;
  --font-display:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  --font-mono:
    "SF Mono",
    "Menlo",
    "Consolas",
    monospace;
}
