/* DOWNLOAD CODE STYLING */
.popup-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  min-width: 300px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
  font-family: sans-serif;
  transition: background 0.3s, color 0.3s;
}

.popup-label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.popup-input {
  width: 70%;
  padding: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border 0.2s;
}

.popup-input:focus {
  border-color: #007bff;
}

.popup-ext {
  font-weight: bold;
  margin-left: 8px;
  color: #555;
}

.popup-actions {
  margin-top: 16px;
}

.popup-btn {
  padding: 8px 16px;
  font-size: 14px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 8px;
}

.popup-btn:hover {
  background: #0056b3;
}

.popup-btn.cancel {
  background: #ddd;
  color: #333;
}

.popup-btn.cancel:hover {
  background: #bbb;
}

/* Dark mode */
[data-theme="dark"] .popup-container {
  background: #1e1e1e;
  color: #eee;
  box-shadow: 0 4px 32px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .popup-label,
[data-theme="dark"] .popup-ext {
  color: #eee;
}

[data-theme="dark"] .popup-input {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
}

[data-theme="dark"] .popup-input:focus {
  border-color: #66afe9;
}

[data-theme="dark"] .popup-btn {
  background: #3399ff;
}

[data-theme="dark"] .popup-btn.cancel {
  background: #444;
  color: #ccc;
}

/* PRISM JS HIGHLIGHT STYLING*/
code[class*="language-"],
pre[class*="language-"] {
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  color: #eee;
  background: #2f2f2f;
  font-family: Roboto Mono, monospace;
  font-size: 1em;
  line-height: 1.5em;

  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

code[class*="language-"]::-moz-selection,
pre[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection,
pre[class*="language-"] ::-moz-selection {
  background: #363636;
}

code[class*="language-"]::selection,
pre[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"] ::selection {
  background: #363636;
}

:not(pre) > code[class*="language-"] {
  white-space: normal;
  border-radius: 0.2em;
  padding: 0.1em;
}

pre[class*="language-"] {
  overflow: auto;
  position: relative;
  margin: 0.5em 0;
  padding: 1.25em 1em;
}

.language-css > code,
.language-sass > code,
.language-scss > code {
  color: #fd9170;
}

[class*="language-"] .namespace {
  opacity: 0.7;
}

.token.atrule {
  color: #c792ea;
}

.token.attr-name {
  color: #ffcb6b;
}

.token.attr-value {
  color: #a5e844;
}

.token.attribute {
  color: #a5e844;
}

.token.boolean {
  color: #c792ea;
}

.token.builtin {
  color: #ffcb6b;
}

.token.cdata {
  color: #80cbc4;
}

.token.char {
  color: #80cbc4;
}

.token.class {
  color: #ffcb6b;
}

.token.class-name {
  color: #f2ff00;
}

.token.comment {
  color: #616161;
}

.token.constant {
  color: #c792ea;
}

.token.deleted {
  color: #ff6666;
}

.token.doctype {
  color: #616161;
}

.token.entity {
  color: #ff6666;
}

.token.function {
  color: #c792ea;
}

.token.hexcode {
  color: #f2ff00;
}

.token.id {
  color: #c792ea;
  font-weight: bold;
}

.token.important {
  color: #c792ea;
  font-weight: bold;
}

.token.inserted {
  color: #80cbc4;
}

.token.keyword {
  color: #c792ea;
}

.token.number {
  color: #fd9170;
}

.token.operator {
  color: #89ddff;
}

.token.prolog {
  color: #616161;
}

.token.property {
  color: #80cbc4;
}

.token.pseudo-class {
  color: #a5e844;
}

.token.pseudo-element {
  color: #a5e844;
}

.token.punctuation {
  color: #89ddff;
}

.token.regex {
  color: #f2ff00;
}

.token.selector {
  color: #ff6666;
}

.token.string {
  color: #a5e844;
}

.token.symbol {
  color: #c792ea;
}

.token.tag {
  color: #ff6666;
}

.token.unit {
  color: #fd9170;
}

.token.url {
  color: #ff6666;
}

.token.variable {
  color: #ff6666;
}

[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  color: #90a4ae;
  background: #fafafa;
  font-family: Roboto Mono, monospace;
  font-size: 1em;
  line-height: 1.5em;

  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

[data-theme="dark"] code[class*="language-"]::-moz-selection,
[data-theme="dark"] pre[class*="language-"]::-moz-selection,
[data-theme="dark"] code[class*="language-"] ::-moz-selection,
[data-theme="dark"] pre[class*="language-"] ::-moz-selection {
  background: #cceae7;
  color: #263238;
}

[data-theme="dark"] code[class*="language-"]::selection,
[data-theme="dark"] pre[class*="language-"]::selection,
[data-theme="dark"] code[class*="language-"] ::selection,
[data-theme="dark"] pre[class*="language-"] ::selection {
  background: #cceae7;
  color: #263238;
}

[data-theme="dark"] :not(pre) > code[class*="language-"] {
  white-space: normal;
  border-radius: 0.2em;
  padding: 0.1em;
}

[data-theme="dark"] pre[class*="language-"] {
  overflow: auto;
  position: relative;
  margin: 0.5em 0;
  padding: 1.25em 1em;
}

[data-theme="dark"] .language-css > code,
[data-theme="dark"] .language-sass > code,
[data-theme="dark"] .language-scss > code {
  color: #f76d47;
}

[data-theme="dark"] [class*="language-"] .namespace {
  opacity: 0.7;
}

[data-theme="dark"] .token.atrule {
  color: #7c4dff;
}

[data-theme="dark"] .token.attr-name {
  color: #39adb5;
}

[data-theme="dark"] .token.attr-value {
  color: #f6a434;
}

[data-theme="dark"] .token.attribute {
  color: #f6a434;
}

[data-theme="dark"] .token.boolean {
  color: #7c4dff;
}

[data-theme="dark"] .token.builtin {
  color: #39adb5;
}

[data-theme="dark"] .token.cdata {
  color: #39adb5;
}

[data-theme="dark"] .token.char {
  color: #39adb5;
}

[data-theme="dark"] .token.class {
  color: #39adb5;
}

[data-theme="dark"] .token.class-name {
  color: #6182b8;
}

[data-theme="dark"] .token.comment {
  color: #aabfc9;
}

[data-theme="dark"] .token.constant {
  color: #7c4dff;
}

[data-theme="dark"] .token.deleted {
  color: #e53935;
}

[data-theme="dark"] .token.doctype {
  color: #aabfc9;
}

[data-theme="dark"] .token.entity {
  color: #e53935;
}

[data-theme="dark"] .token.function {
  color: #7c4dff;
}

[data-theme="dark"] .token.hexcode {
  color: #f76d47;
}

[data-theme="dark"] .token.id {
  color: #7c4dff;
  font-weight: bold;
}

[data-theme="dark"] .token.important {
  color: #7c4dff;
  font-weight: bold;
}

[data-theme="dark"] .token.inserted {
  color: #39adb5;
}

[data-theme="dark"] .token.keyword {
  color: #7c4dff;
}

[data-theme="dark"] .token.number {
  color: #f76d47;
}

[data-theme="dark"] .token.operator {
  color: #39adb5;
}

[data-theme="dark"] .token.prolog {
  color: #aabfc9;
}

[data-theme="dark"] .token.property {
  color: #39adb5;
}

[data-theme="dark"] .token.pseudo-class {
  color: #f6a434;
}

[data-theme="dark"] .token.pseudo-element {
  color: #f6a434;
}

[data-theme="dark"] .token.punctuation {
  color: #39adb5;
}

[data-theme="dark"] .token.regex {
  color: #6182b8;
}

[data-theme="dark"] .token.selector {
  color: #e53935;
}

[data-theme="dark"] .token.string {
  color: #f6a434;
}

[data-theme="dark"] .token.symbol {
  color: #7c4dff;
}

[data-theme="dark"] .token.tag {
  color: #e53935;
}

[data-theme="dark"] .token.unit {
  color: #f76d47;
}

[data-theme="dark"] .token.url {
  color: #e53935;
}

[data-theme="dark"] .token.variable {
  color: #e53935;
}
