@import url("../vendor/inter.css");

:root {
  /* Dark theme (default) */
  --bg: #1a1a1f;
  --fg: #f8f8f2;
  --comment: #7970a9;
  --menu: #2d2d37;
  --visual: #44475a;
  --gutter-fg: #4b5263;
  --nontext: #424450;
  --selection: #454158;
  --red: #ff9580;
  --green: #8aff80;
  --yellow: #ffff80;
  --purple: #9580ff;
  --pink: #ff80bf;
  --cyan: #80ffea;
  --white: #f8f8f2;
  --bright-red: #ffaa99;
  --bright-green: #a2ff99;
  --bright-yellow: #ffff99;
  --bright-blue: #aa99ff;
  --bright-magenta: #ff99cc;
  --bright-cyan: #99ffee;
  --bright-white: #ffffff;

  /* Standardized aliases for this project */
  --primary-color: var(--purple);
  --secondary-color: var(--comment);
  --tertiary-color: var(--selection);
  --text-color: var(--fg);
  --bg-color: var(--bg);
  --card-bg: var(--menu);
  --border-color: var(--visual);
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --border-radius: 8px;
  --selection-color: var(--selection);
  --code-bg: #1a1a24;
  --hover-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  /* Light theme */
  --bg: #f5f5f5;
  --fg: #1f1f1f;
  --comment: #635d97;
  --menu: #e5e5e5;
  --visual: #c5c5c5;
  --gutter-fg: #4f4f4f;
  --nontext: #3f3f3f;
  --selection: #cfcfde;
  --red: #cb3a2a;
  --green: #14710a;
  --yellow: #846e15;
  --purple: #644ac9;
  --pink: #a3144d;
  --cyan: #036a96;
  --white: #1f1f1f;
  --bright-red: #cb3a2a;
  --bright-green: #14710a;
  --bright-yellow: #846e15;
  --bright-blue: #336699;
  --bright-magenta: #644ac9;
  --bright-cyan: #036a96;
  --bright-white: #f5f5f5;

  /* Standardized aliases for this project */
  --primary-color: #644ac9;
  --secondary-color: var(--comment);
  --tertiary-color: var(--visual);
  --text-color: var(--fg);
  --bg-color: var(--bg);
  --card-bg: var(--menu);
  --border-color: var(--visual);
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --selection-color: var(--selection);
  --code-bg: #e8e8e8;
  --hover-bg: rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.app-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  text-align: center;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.theme-toggle:hover {
  background-color: var(--visual);
  color: var(--primary-color);
}

.theme-icon {
  width: 24px;
  height: 24px;
}

/* Main Content */
.main-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  width: 100%;
  flex: 1;
}

.app-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

/* Terminal Styles */
.command-terminal {
  background: var(--code-bg);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  width: 100%;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow: hidden;
}

.terminal-header {
  background: var(--bg-color);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.terminal-controls {
  display: flex;
  align-items: center;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.terminal-dot.red {
  background-color: #ff5f56;
}

.terminal-dot.yellow {
  background-color: #ffbd2e;
}

.terminal-dot.green {
  background-color: #27c93f;
}

.terminal-title {
  margin-left: 12px;
  color: var(--comment);
  font-size: 14px;
  font-family: monospace;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-content {
  padding: 16px;
  color: var(--green);
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  background: var(--code-bg);
  text-align: left;
}

.terminal-line {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.terminal-prompt {
  color: var(--text-color);
  user-select: none;
  margin-right: 0.5em;
  flex-shrink: 0;
}

.terminal-command {
  color: var(--green);
  overflow-x: auto;
}

/* Reset Button */
.reset-button {
  background-color: transparent;
  color: var(--comment);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.reset-button:hover {
  background-color: var(--hover-bg);
  border-color: var(--visual);
  color: var(--fg);
}

.reset-button.confirm {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  color: #f59e0b;
}

.reset-button.complete {
  background-color: rgba(185, 28, 28, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.copy-icon {
  color: var(--comment);
  cursor: pointer;
  transition: color 0.2s ease;
}

.copy-icon:hover {
  color: var(--primary-color);
}

.copy-icon.copied {
  color: var(--green);
}

/* Tabs */
.tabs-container {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.tab-button {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  color: var(--comment);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-button:hover {
  color: var(--text-color);
  background-color: var(--hover-bg);
}

.tab-button.active {
  color: var(--text-color);
  background-color: var(--card-bg);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
}

.tab-button i {
  margin-right: 8px;
}

.tab-content {
  padding: 24px;
  display: none;
  background-color: var(--card-bg);
}

.tab-content.active {
  display: block;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.option-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.option-card:hover {
  border-color: var(--visual);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.ruby-red {
  color: var(--primary-color);
}

/* Form Elements */
.form-input,
.form-select {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(100, 74, 201, 0.2);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-custom {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.checkbox-custom input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-custom input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-custom input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  font-size: 0.875rem;
  color: var(--text-color);
}

/* Exclude Options */
.exclude-category {
  margin-bottom: 24px;
}

.exclude-category-title {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.exclude-category-title i {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 20px;
}

.exclude-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.exclude-option-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.exclude-option-card:hover {
  border-color: var(--visual);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.exclude-option-card.excluded {
  border-color: var(--comment);
  background-color: rgba(102, 102, 102, 0.1);
  opacity: 0.7;
}

.exclude-option-card.excluded::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--comment);
}

.exclude-option-card.excluded .exclude-option-title {
  text-decoration: line-through;
  color: var(--comment);
}

.exclude-option-card.excluded .exclude-option-description {
  color: var(--comment);
}

.exclude-option-card.excluded .exclude-option-icon {
  background-color: var(--card-bg);
  opacity: 0.5;
}

.exclude-option-card.excluded .exclude-option-icon i {
  color: var(--comment);
}

.exclude-option-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.exclude-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.exclude-option-icon i {
  font-size: 18px;
  color: var(--primary-color);
  transition: all 0.2s ease;
}

.exclude-option-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.exclude-option-description {
  font-size: 14px;
  color: var(--comment);
  line-height: 1.4;
  transition: all 0.2s ease;
}

.exclude-option-checkbox {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* Exclusion checkbox styles */
.exclude-checkbox-custom {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.exclude-checkbox-custom input {
  opacity: 0;
  width: 0;
  height: 0;
}

.exclude-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.exclude-checkbox-custom input:checked ~ .exclude-checkmark {
  background-color: var(--comment);
  border-color: var(--comment);
}

.exclude-checkmark:after {
  content: "\f00d";
  /* FontAwesome times icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  display: none;
  color: white;
  font-size: 12px;
}

.exclude-checkbox-custom input:checked ~ .exclude-checkmark:after {
  display: block;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
  color: var(--comment);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.footer a {
  color: var(--comment);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--primary-color);
}
