/* ==================== */
/* BASE STYLES & RESETS */
/* ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
  height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  width: 100vw;
  background-color: var(--bg-body);
  color: var(--color-text-primary);
}




/*==================================*/
/* F O N T  F A M I L Y  S E T U P  */
/* =================================*/
@font-face {
  font-family: "WF Visual Sans Text";
  src: url("https://assets.website-files.com/6491b4dd238fa881faab3d5c/65258e6f9f50f2d876a4f384_WFVisualSans-RegularText.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WF Visual Sans Text";
  src: url("https://assets.website-files.com/6491b4dd238fa881faab3d5c/65258e6ffaf4654a99eceefd_WFVisualSans-SemiBoldText.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WF Visual Sans";
  src: url("https://assets.website-files.com/6491b4dd238fa881faab3d5c/65258e6fd096dfcb63d84a7d_WFVisualSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WF Visual Sans";
  src: url("https://assets.website-files.com/6491b4dd238fa881faab3d5c/65258e6fb4479820549d1044_WFVisualSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WF Visual Sans";
  src: url("https://assets.website-files.com/6491b4dd238fa881faab3d5c/65258e6f74892e61c00dc42e_WFVisualSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body,
html,
* {
  font-family: var(--font-text);
  font-size: var(--text-md);
  font-weight: var(--weight-normal);
}

h1, .h1 {
  font-family: var(--font-headings);
  font-size: var(--h1);
  font-weight: var(--weight-semibold);
  line-height: 1.06;
}

h2, .h2 {
  font-family: var(--font-headings);
  font-size: var(--h2);
  font-weight: var(--weight-semibold);
  line-height: 1;
}

h3, .h3 {
  font-family: var(--font-headings);
  font-size: var(--h3);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

h4, .h4 {
  font-family: var(--font-headings);
  font-size: var(--h4);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

p {
  font-variation-settings: "opsz" 18, "wght" 400;
}



/* ==================== */
/*    ROOT VARIABLES    */
/* ==================== */
:root {
  --bg-main: #2a313c;
  --bg-body: #1c222b;
  --bg-sections: #212830;
  --bgCode: #0e1116;
  --border-other: #2a313c;
  --border-main: #434a55;
  --color-header-bg: #161b22;
  --color-border: #434a55;
  --color-border-secondary: #30363d;
  --color-text-primary: #c9d1d9;
  --color-text-secondary: #8b949e;
  --color-link: #58a6ff;
  --color-btn-primary-bg: #238636;
  --color-btn-primary-hover: #2ea043;
  --color-btn-primary-text: #ffffff;
  --color-repo-bg: #161b22;
  --color-nav-item-active: #ffffff;
  --color-nav-item: #8b949e;
  --color-tag-bg: rgba(56, 139, 253, 0.15);
  --color-tag-text: #58a6ff;
  
  --color-nav-item: #9ca3af;
            --color-nav-item-active: #f3f4f6;
            --nav-bg: #1f2937;
            --nav-hover-bg: rgba(55, 65, 81, 0.6);
            --nav-active-bg: #1f2328;
            --nav-border: #374151;
            --nav-accent: #3b82f6;

  /* Brand Colors */
  --red: #f85149;
  --blue: #58a6ff;
  --green: #56d364;
  --purple: #bc8cff;
  --yellow: #e3b341;

  /* Functional Colors */
  --success: #3fb950;
  --warning: #d29922;
  --error: #f85149;
  --info: #58a6ff;



  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(1, 4, 9, 0.5);
  --shadow-md: 0 5px 15px rgba(1, 4, 9, 0.5);
  --shadow-lg: 0 10px 30px rgba(1, 4, 9, 0.8);

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.4s;

  /* Z-index */
  --z-content: 1;
  --z-overlay: 9;
  --z-sidebar: 101;
  --z-header: 100;
  --z-modal: 1000;
  --z-loading: 1001;



  /* Font Families */
  --font-text: "WF Visual Sans Text", sans-serif;
  --font-headings: "WF Visual Sans", sans-serif;
  --font-mono: Inconsolata, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Heading Sizes */
  --h1: 2.5rem;
  --h2: 3rem;
  --h3: 1.75rem;
  --h4: 1.5rem;

  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

}



/* ==================== */
/*   LAYOUT COMPONENTS  */
/* ==================== */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.main-content {
  transition: margin var(--transition-normal) ease;
  z-index: var(--z-content);
  background-color: var(--bg-body);
  height: auto;
  padding-top: 56px;
  width: 100vw;
  overflow-x: hidden;
}

.page {
  width: 95vw;
  padding: var(--space-sm);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-container {
  width: 100%;
  height: auto;
  max-height: 150vh;
}

/* ==================== */
/* HEADER */
/* ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-header-bg);
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
  z-index: var(--z-header);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  box-shadow: 0 4px 12px rgba(1, 4, 9, 0.8);
}

.header-left * {
  margin-left: 5%;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  z-index: var(--z-content);
}

.header-right {
  margin-left: auto;
  gap: var(--space-md);
}

/* ==================== */
/* SIDEBARS */
/* ==================== */
.sidebar,
.right-sidebar {
  padding: var(--space-sm);
  position: fixed;
  top: 0;
  z-index: var(--z-sidebar);
  width: 275px !important;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition-slow) ease-in-out;
  background-color: var(--bg-main);

  padding-left: 0; padding-right: 0;
}

.sidebar {
  left: 0;
  transform: translateX(-100%);
  border-right: 1px solid var(--color-border);
  border-bottom-right-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.right-sidebar {
  right: 0;
  transform: translateX(100%);
  border-left: 1px solid var(--color-border);
  border-bottom-left-radius: var(--radius-lg);
  border-top-left-radius: var(--radius-lg);
}

.sidebar.open,
.right-sidebar.open {
  transform: translateX(0);
}

/* ==================== */
/* OVERLAY */
/* ==================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal) ease-in-out, visibility var(--transition-normal) ease-in-out;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}



/* ==================== */
/* NAVIGATION */
/* ==================== *
.nav-section {
  margin-bottom: var(--space-lg);
}

.nav-section-title {
  font-size: 12px;
  color: rgba(168, 170, 177, 0.55);
  font-weight: 100;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  margin: var(--space-lg) var(--space-sm) 0 var(--space-xs);
  padding: var(
          --space-xs) 0 0 13rem;
  position: relative;
}
.nav-section-title.underline-center::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 0%;
  height: 1px;
  background-color: rgba(148, 163, 184, 0.35);
  transition: width var(--transition-slow) ease-in-out;
}
.nav-section-title.underline-center:hover::after {
  width: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-nav-item);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  position: relative;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 1rem;
}
.nav-item:hover {
  color: var(--color-nav-item-active);
  background-color: rgba(110, 118, 129, 0.1);
}
.nav-item.active {
  background-color: rgb(31 35 41);
  transition: all 0.35s ease-in-out;
  border-top: 1.5px dashed #3a475a;
  border-bottom: 1.5px dashed #3a475a;
  outline: none;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-shadow: none;
  font-weight: 600;
  color: #e5e7eb;
  overflow: hidden;
  height: 60px;
}
.nav-item-icon {
  margin-right: var(--space-md);
  margin-left: var(--space-md);
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0.75;
}
**/


.nav-section {
  margin-bottom: var(--space-xl);
  position: relative;
}

.nav-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(55, 65, 81, 0.5), transparent);
}

.nav-section-title {
  font-size: 11px;
  color: rgba(156, 163, 175, 0.7);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-md) 0;
  padding: var(--space-md) var(--space-xl) var(--space-sm) var(--space-xl);
  position: relative;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast) ease;
}

.nav-section-title::before {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--nav-accent);
  border-radius: 50%;
  margin-right: var(--space-sm);
  opacity: 0.6;
}

.nav-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), transparent);
  margin-left: var(--space-md);
}

.nav-item {
  display: flex;
  align-items: center;
  color: var(--color-nav-item);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 200 !important;
  overflow: hidden;
  margin: 2px var(--space-md);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  min-height: 44px;
  box-sizing: border-box;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 24px;
  background: var(--nav-accent);
  border-radius: 0 4px 4px 0;
  transition: width var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
  color: var(--color-nav-item-active);
  background: var(--nav-hover-bg);
  transform: translateX(2px);
}

.nav-item:hover::before {
  width: 3px;
}

.nav-item:hover .nav-item-icon {
  opacity: 1;
  transform: scale(1.05);
}

.nav-item.active {
  background-color: var(--nav-active-bg);
  color: #e5e7eb;
  font-weight: 600;
  margin: 2px 0; /* Remove horizontal margin for full-width effect */
  border-radius: 0; /* Remove border radius for sharp edges */
  border-top: 1.5px dashed #3a475a;
  border-bottom: 1.5px dashed #3a475a;
  padding-left: var(--space-xl); /* Add back internal padding */
  padding-right: var(--space-xl);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.nav-item.active::before {
  width: 4px;
  height: 100%;
  top: 0;
  transform: none;
  border-radius: 0;
  background: linear-gradient(180deg, var(--nav-accent), #1e40af);
}

.nav-item.active .nav-item-icon {
  opacity: 1;
  color: var(--nav-accent);
}

.nav-item-icon {
  margin-right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.nav-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .nav-item {
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
  }

  .nav-item.active {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}







/* ==================== */
/* FORMS */
/* ==================== */
.globalInput {
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  transition: all 0.45s ease-in-out;
}
.globalInput:hover {
  border: 1.5px solid #3b82f6;
  transition: all 0.45s ease-in-out;
}


.search-input {
  width: 100%;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
}

.input-field {
  width: 100%;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  font-size: 14px;
  margin-bottom: var(--space-md);
}













.code-input {
  font-family: monospace;
  min-height: 200px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* ==================== */
/* BUTTONS */
/* ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.btn-primary:hover {
  background-color: var(--color-btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-cancel {
  background-color: var(--color-header-bg);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

/* ==================== */
/* TABS */
/* ==================== */
.main-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: var(--space-md);
}

.tab {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-secondary);
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast) ease;
}

.tab:hover {
  color: var(--color-text-primary);
}

.tab.active {
  color: var(--color-text-primary);
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: linear-gradient(90deg, #f78166, #58a6ff);
  animation: tabIndicator var(--transition-normal) ease;
}

/* ==================== */
/* MODAL */
/* ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  justify-content: center;
  align-items: center;
  animation: fadeIn var(--transition-normal) ease;
}

.modal.active,
#createSnippetModal.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-main);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  width: 75%;
  max-width: 600px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal) ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: var(--space-md);
}

label {
  margin-bottom: 5px;
  font-size: 12px;
  letter-spacing: 1.15px;
  font-style: thin;
}

.modal-content input[type="text"] {
  width: 95%;
  height: auto;
  transition: all 0.65s ease-in-out;
}

.modal-content input[type="text"]:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none !important;
  border: 1px solid rgba(59, 130, 246, 1);
  transition: all 0.65s ease-in-out;
}

/* ==================== */
/* EDITOR COMPONENTS */
/* ==================== */
.editor-container {
  position: relative;
  height: 400px;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.editor-status-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ==================== */
/* TAGS */
/* ==================== */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag-item {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-main);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
}
.tag-remove-btn {
  margin-left: 6px;
  cursor: pointer;
  color: var(--text-muted);
}
.tag-remove-btn:hover {
  color: var(--text-primary);
}



/* ==================== */
/* AUTOCOMPLETE */
/* ==================== */
.autocomplete-container {
  position: absolute;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  z-index: 10;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 8px 16px;
  cursor: pointer;
}
.autocomplete-item:hover {
  background-color: var(--bg-tertiary);
}



/* ==================== */
/* SNIPPET ITEMS */
/* ==================== */
.snippet-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.snippet-item:hover {
  background-color: var(--bg-secondary);
}
.snippet-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.snippet-title {
  color: var(--color-link);
  font-size: 16px;
  font-weight: 500;
}
.snippet-language {
  color: var(--color-text-secondary);
  font-size: 14px;
  background-color: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.snippet-footer {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-top: var(--space-md);
}



/* ==================== */
/* CODE BLOCKS */
/* ==================== */
.code-block {
  background-color: var(--bgCode);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background-color: rgba(1, 4, 9, 0.3);
  border-bottom: 1px solid var(--color-border);
}
.code-language {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.code-actions {
  display: flex;
  gap: var(--space-sm);
}
.code-action-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast) ease;
}
.code-action-btn:hover {
  color: var(--color-link);
}
.code-content {
  padding: var(--space-md);
  overflow-x: auto;
}
.code-content pre {
  margin: 0;
  padding: 0;
  background: transparent !important;
}
.code-content code {
  font-family: "Fira Code", Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.hljs {
  color: #d4d4d4 !important;
  padding: 0.35rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.85rem !important;
  line-height: 1.25 !important;
  overflow-x: auto !important;
  font-weight: 400 !important;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
  color: #569cd6 !important;
}

.hljs-string,
.hljs-title,
.hljs-name {
  color: #ce9178 !important;
}

.hljs-number,
.hljs-meta,
.hljs-symbol,
.hljs-bullet {
  color: #b5cea8 !important;
}

.hljs-function .hljs-title {
  color: #dcdcaa !important;
}

.hljs-type,
.hljs-class .hljs-title {
  color: #4ec9b0 !important;
}

.hljs-comment {
  color: #6a9955 !important;
  font-style: italic !important;
}

.hljs-attr,
.hljs-property {
  color: #9cdcfe !important;
}

.hljs-variable,
.hljs-template-variable {
  color: #c586c0 !important;
}

.hljs-punctuation,
.hljs-operator {
  color: #d4d4d4 !important;
}

.hljs::-webkit-scrollbar {
  height: 2px !important;
}
.hljs::-webkit-scrollbar-thumb {
  background: #333 !important;
  border-radius: 10px !important;
}



/* ==================== */
/*     CODE PREVIEW     */
/* ==================== */
.code-preview {
  transition: max-height 0.5s ease, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 1rem;
  border: 1px solid #444;
  border-radius: 0.75rem;
}
.code-preview.expanded {
  max-height: 800px;
  opacity: 1;
}

.toggle-code-btn {
  background-color: #2d2d2d;
  color: #fff;
  border: 1px solid #444;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-code-btn:hover {
  background-color: #3a3a3a;
}



/* ==================== */
/*        LOADING       */
/* ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: var(--z-loading);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal) ease;
}
.loading-overlay.active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-link);
  animation: spin 1s ease-in-out infinite;
}
.loading-text {
  margin-top: var(--space-md);
  color: var(--color-text-primary);
}

#loadingWrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: var(--z-loading);
  overflow: hidden;
  background-color: transparent;
}
#loadingStrip {
  position: absolute;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 118, 255, 1) 0%, rgba(71, 139, 230, 1) 50%, rgba(34, 113, 179, 1) 100%);
  animation: none;
  transition: width 0.2s ease-in-out;
}



/* ==================== */
/*     THEME TOGGLE     */
/* ==================== */
.theme-toggle {
  display: none !important;
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: var(--color-header-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all var(--transition-normal) ease;
}
.theme-toggle:hover {
  transform: rotate(30deg);
}



/* ==================== */
/*    DYNAMIC IFRAME    */
/* ==================== */
#dynamiciFrame {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100vw;
  height: 90vh;
}



/* ==================== */
/* BREADCRUMBS */
/* ==================== */
.otherNavBar-Wrapper {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  position: fixed;
  top: 3rem;
  left: 0;
  right: 0;
  margin: auto;
  width: 100vw;
  z-index: 5;

  background-color: var(--breadcrumb-bg-light, #ffffff);
  border-color: var(--breadcrumb-border-light, #e5e7eb);

  height: 40px;
  display: flex;
}

.otherNavBar {
  max-width: 40rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  position: relative;
  margin: 0 auto;
}

.otherNavScroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.otherNavScroll a {
  scroll-snap-align: start;
  white-space: nowrap;
  text-decoration: none;
  color: #606060;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.35s ease-in-out;
}
.otherNavScroll a:hover {
  color: #282828;
}

body.dark-mode .otherNavBar-Wrapper {
  background-color: var(--breadcrumb-bg-dark, #171717);
  border-color: var(--breadcrumb-border-dark, #404040);
}
body.dark-mode .otherNavScroll a {
  color: #ccc;
}
body.dark-mode .otherNavScroll a:hover {
  background-color: #2a2a2a;
}

.otherNavBar svg {
  font-size: 15px;
  position: relative;
  top: 0;
  bottom: 0;
  margin: auto;
}
.currentPage {
  font-weight: 600;
  color: #58a6ff;
  letter-spacing: 1.15px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}

/* ==================== */
/* CREATE MODAL */
/* ==================== */
#createModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--modalOverlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--zModal);
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity var(--transitionNormal) ease-in-out;
}

#createModal.show {
  pointer-events: auto;
  opacity: 1;
}

#createModal.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content {
  background-color: var(--modalBg);
  border-radius: var(--radiusLG);
  padding: 24px;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px var(--shadowColor);
  transform: translateY(10px) scale(0.95);
  transition: transform var(--transitionNormal) cubic-bezier(0.19, 1, 0.22, 1);
  outline: none;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: var(--text2XL);
  font-weight: var(--weightSemibold);
  color: var(--textA);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: var(--text2XL);
  cursor: pointer;
  color: var(--textB);
  transition: all var(--transitionFast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radiusSM);
}

.close-btn:hover {
  color: var(--textA);
  background-color: var(--hoverBg);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group input,
.form-group textarea {
  background-color: var(--bgB);
  border: none;
  border-radius: var(--radiusMD);
  padding: 12px 16px;
  font-size: var(--textBase);
  color: var(--textA);
  transition: all var(--transitionFast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-primary {
  background-color: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radiusMD);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transitionFast);
}

.btn-primary:hover {
  opacity: 0.9;
}

.radio-inputs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.radio-input {
  position: absolute;
  opacity: 0;
}

.radio-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 8px;
  border-radius: var(--radiusMD);
  border: 2px solid var(--borderA);
  background-color: var(--bgB);
  transition: all var(--transitionFast);
  cursor: pointer;
}

.radio-label {
  color: var(--textB);
  transition: all var(--transitionNormal);
  text-align: center;
  font-size: var(--textSM);
  font-weight: var(--weightMedium);
  margin-top: 6px;
}

.radio-input:checked + .radio-tile {
  border-color: var(--blue);
  background-color: rgba(88, 166, 255, 0.1);
}

.radio-input:checked + .radio-tile .radio-label {
  color: var(--blue);
  font-weight: var(--weightSemibold);
}

.radio-tile:hover {
  border-color: var(--blue);
}

/* ==================== */
/* FORM ACTIONS */
/* ==================== */
.formActions {
  display: flex;
  gap: 0.5rem;
}

.formActions button {
  padding: .375rem .275rem;
  flex: 1;
  justify-items: space-between;
  align-items: center;
  border: none;
  border-radius: var(--radiusSM);
  cursor: pointer;
  color: var(--textPrimary);
  font-size: var(--fontXS);
  font-weight: var(--fontWeightNormal);
  margin: 0 1.95rem;
}

.formActions button:hover {
  background-color: var(--hoverBg);
  color: var(--textPrimary);
}

button.btn.btn-primary.cancelAction {
  background-color: #ff496b;
}

/* ==================== */
/* SNIPPET CARDS */
/* ==================== */
.snippets-container {
  display: grid;
  gap: var(--spaceLG);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.snippet-card {
  background-color: #212830;
  border-radius: var(--radiusLG);
  overflow: hidden;
  box-shadow: var(--shadowMedium);
  transition: transform var(--transitionNormal), box-shadow var(--transitionNormal);
  display: flex;
  flex-direction: column;
  height: 400px;
  border: 1px solid var(--bgC);
  position: relative;
}

.snippet-card:hover {
  transform: translateY(-1px) scale(1.005);
  box-shadow: var(--shadowDark);
}

.snippet-header {
  padding: var(--spaceSM);
  background-color: #262C36;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borderA);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.snippet-title {
  font-weight: var(--weightNormal);
  color: var(--textA);
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.snippet-language {
  font-size: var(--textMD);
  font-weight: var(--weightNormal);
  color: var(--green);
  padding: var(--spaceXS) var(--spaceSM);
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.snippet-code-container {
  padding: var(--spaceMD);
  flex-grow: 1;
  overflow: auto;
  position: relative;
}

.floating-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.snippet-card:hover .floating-actions,
.snippet-card:focus-within .floating-actions {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(208, 215, 222, 0.3);
  backdrop-filter: blur(5px);
  color: var(--textA);
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: scale(1.1);
  background-color: rgba(208, 215, 222, 0.5);
}

.action-btn i {
  font-size: 16px;
}

.edit-btn {
  color: var(--blue);
}

.delete-btn {
  color: var(--red);
}

.share-btn {
  color: var(--purple);
}

.download-btn {
  color: var(--green);
}

.snippet-footer {
  padding: var(--spaceXS) var(--spaceSM);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--borderA);
  height: 0;
  opacity: 0;
  transition: all var(--transitionSlow);
  background-color: #262C36;
  backdrop-filter: blur(10px);
}

.snippet-card:hover .snippet-footer {
  opacity: 1;
  height: 3rem;
  padding: var(--spaceXS) var(--spaceSM);
}

.snippet-date {
  color: var(--textB);
  font-size: var(--textXS);
}

.snippet-actions button {
  background: transparent;
  border: none;
  padding: var(--spaceXS);
  margin-left: var(--spaceXS);
  color: var(--textB);
  border-radius: var(--radiusSM);
  transition: all var(--transitionFast);
  cursor: pointer;
}

.snippet-actions button:hover {
  background-color: var(--hoverBg);
}

.snippet-actions button i {
  transition: transform var(--transitionFast);
}

.snippet-actions button:hover i {
  transform: scale(1.15);
}

/* ==================== */
/* EDIT MODAL */
/* ==================== */
.edit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.edit-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.edit-modal {
  background-color: var(--bgB);
  border-radius: var(--radiusLG);
  box-shadow: var(--shadowDark);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

.edit-modal-overlay.active .edit-modal {
  transform: scale(1);
  opacity: 1;
}

/* ==================== */
/* NAVIGATION ICONS */
/* ==================== */
.iconsAreaNAV {
  position: absolute;
  right: 10%;
  display: flex;
}

.iconItemNAV {
  padding: 0.35rem;
  font-size: 20px !important;
}

.navBarHint {
  z-index: 999999999 !important;
  background-color: var(--bgA) !important;
  border: 1px solid var(--blueAccent);
}

.navBarIcon {
  position: relative;
  margin: auto;
  padding-right: .5rem;
  padding-left: .5rem;
  cursor: pointer;
}

.navBarHint {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  position: absolute;
  z-index: 20;
  top: -2.5rem;
  left: 50%;
  padding-top: .5rem;
  padding-right: .75rem;
  padding-bottom: .5rem;
  padding-left: .75rem;
  transition-timing-function: ease-in-out;
  transition-duration: 300ms;
  transition-property: all;
  transform: translateX(-50%);
  transform: scale(0);
  transform-origin: left;
  border-radius: .5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1),
  0 2px 4px -2px rgba(0, 0, 0, .1);
}

.navBarIcon:hover .navBarHint {
  transform: scale(1);
}

.iconsAreaNAV .navBarHint {
  position: absolute;
  z-index: 20;
}

#infoIcon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  opacity: 0.45;
}

/* ==================== */
/* DROPDOWN */
/* ==================== */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background-color: transparent;
  color: var(--textB);
  border: none;
  border-radius: var(--radiusSM);
  padding: var(--spaceXS);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  transition: all var(--transitionFast);
}

.dropdown-button:hover {
  background-color: var(--hoverBg);
  color: var(--textA);
}

.dropdown-menu {
  position: absolute;
  top: 38px;
  right: 0;
  background-color: var(--bgB);
  border: 1px solid var(--borderA);
  border-radius: var(--radiusMD);
  box-shadow: var(--shadowDark);
  width: 180px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transitionFast);
  z-index: var(--zDropdown);
}

.dropdown-menu.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.action-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.action-item {
  padding: 0;
}

.action-link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--textA);
  text-decoration: none;
  font-size: var(--textSM);
  transition: background-color var(--transitionFast);
}

.action-link i {
  margin-right: 8px;
  font-size: 16px;
}

.action-link:hover {
  background-color: var(--hoverBg);
}

.action-link.edit {
  color: var(--blue);
}

.action-link.delete {
  color: var(--red);
}

.action-link.download {
  color: var(--green);
}

.divider {
  height: 1px;
  background-color: var(--borderA);
  margin: 4px 0;
}

/* ==================== */
/* CODE CONTAINER */
/* ==================== */
.code-container {
  position: relative;
}

.copy-btn {
  position: relative;
  bottom: 8px;
  right: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 28px;
  z-index: 9999;
  border: 3px solid crimson;
}

.copy-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.copy-btn.copied {
  background: rgba(40, 167, 69, 0.8);
  opacity: 1;
  width: 28px;
}

.copy-btn::before {
  content: "Copy";
}

.copy-btn.copied::before {
  content: "✓";
  font-size: 16px;
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tabIndicator {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 1;
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0%, 20%, 50%, 80%, 100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.05);
  }
  60% {
    transform: scale(0.95);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* ==================== */
/* ANIMATION CLASSES */
/* ==================== */
.anim-pulse {
  animation: pulse 2s infinite ease-in-out;
}

.anim-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

.anim-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.anim-spin {
  animation: spin 1.5s linear infinite;
}

.jello {
  animation: jello 0.6s ease;
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */
@media (max-width: 768px) {
  .sidebar,
  .right-sidebar {
    width: 80%;
  }

  .fab,
  .theme-toggle {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  body {
    padding: var(--spaceMD);
  }

  .snippets-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    padding: var(--spaceMD);
  }

  .theme-toggle {
    top: var(--spaceSM);
    right: var(--spaceSM);
  }
}

@media (max-width: 480px) {
  .main-tabs {
    justify-content: center;
  }

  .tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .header {
    padding: 0 var(--space-sm);
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .snippets-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .snippets-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@supports (backdrop-filter: blur(10px)) {
  #createModal {
    backdrop-filter: blur(10px);
  }

  .dropdown-menu {
    backdrop-filter: blur(5px);
    background-color: rgba(var(--bgB), 0.9);
  }
}

/* Color scheme preference detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
  }
}
