/* Go to Top Button */
.go-to-top-btn {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--highlight-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 20;
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.go-to-top-btn.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.go-to-top-btn:hover {
  background-color: #7c3aed;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.go-to-top-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.go-to-top-btn i {
  font-size: 1.25rem;
}/* Responsive adjustments */

@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-content {

    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .main-content {
    padding-top: 7rem;
  }
  
  .go-to-top-btn {
    bottom: 4.5rem;
    right: 1rem;
  }
}/* Base styles */
:root {
  /* Theme colors */
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #0f172a;
  --text-secondary: #333333;
  --border-color: #e2e8f0;
  --highlight-color: #0f172a;
  --highlight-light: #0f172a1a;
  --highlight-bg: #0f172a1a;
  --success-color: #10b981;
  --success-bg: #d1fae5;
  --error-color: #ef4444;
  --error-bg: #fee2e2;
  --header-bg: rgba(255, 255, 255, 0.95);
  --tab-bg: #f1f5f9;
  --shadow-color: rgba(15, 23, 42, 0.08);
  --modal-overlay: rgba(15, 23, 42, 0.5);
  --info-bg: #f8fafc;
  --active-item: #f3f0ff;
  --hover-bg: #0f172a1a;
  --btn-primary-bg: #a78bfa;
  --btn-primary-text: #4c1d95;
  --btn-primary-hover: #c4b5fd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  line-height: 1.5;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  max-width: 100vw;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
 
}

/* Utility classes */
.hidden {
  display: none !important;
}

.highlight {
  color: var(--highlight-color);
}

/* Layout */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  /* overflow-x: hidden; */
}

.main-content {
  padding: 5rem 1.5rem 5rem;
  flex: 1;
  max-width: 100%;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: 3fr 9fr;
  }
  
  .left-panel {
    position: fixed;
    top: 6rem; /* Header height + some spacing */
    /* left: 50%; */
    /* transform: translateX(-700px); */ /* Half of max-width of container (1400px) to align with grid */
    width: 280px; /* Approx 3fr of the 12fr grid */
    max-height: 500px; /* Subtract header + footer + spacing */
    /* overflow-y: auto; */
  }
  
  .right-panel {
    margin-left: 300px; /* Width of left panel + some spacing */
    grid-column: 1 / span 2;
    position: relative;
    /* position: fixed; */
    top: 1rem;
  }
}

/* Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--header-bg);
  /* box-shadow: 0 4px 20px var(--shadow-color); */
  backdrop-filter: blur(10px);
  z-index: 10;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-direction: row;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #5e17eb);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Desktop Navigation */
.desktop-nav {
  margin: 0 1.5rem;
  flex-grow: 1;
}

.desktop-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.desktop-nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.2s;
  display: block;
}

.desktop-nav-link:hover {
  background-color: var(--hover-bg);
  color: var(--highlight-color);
}

.desktop-nav-link.active {
  color: var(--highlight-color);
  background-color: #0f172a1a;
  font-weight: 600;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-link {
  color: var(--text-secondary);
  transition: color 0.2s, transform 0.2s;
}

.social-link:hover {
  color: var(--highlight-color);
  transform: scale(1.1);
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  background-color: var(--highlight-color);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  /* box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25); */
  min-width: 120px;
}

.btn-primary:hover {
  background-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #0f172a45;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.btn-primary i {
  font-size: 0.9rem;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 5px;
  border: none;
  background-color: var(--highlight-color);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-right: 14px;
}
.copyright2{
  color: #0f172a;
}

.icon-button:hover {
  background-color: var(--highlight-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #0f172a45;
}

.icon-button:active {
  transform: translateY(0);
}

.icon-button:disabled {
  background-color: var(--tab-bg);
  color: var(--text-secondary);
  cursor: not-allowed;
  box-shadow: none;
}

.info-button {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--highlight-bg);
  border: none;
  color: var(--highlight-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  font-weight: 500;
}

.info-button:hover {
  background-color: var(--highlight-light);
  color: #7c3aed;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  /* box-shadow: 0 4px 15px var(--shadow-color); */
  padding: 1.5rem;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.card:last-child {
  margin-bottom: 0;
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.full-height {
  /* height: 100%; */
  display: flex;
  flex-direction: column;
}

/* Color List */
.color-list {
  /* display: flex; */
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  height: 500px;
  padding-right: 15px;
  margin-top: 3px;
}

.color-item {
  display: flex;
  align-items: center;
  padding: 0.85rem;
  border-radius: 0.5rem;
  background-color: var(--tab-bg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.1, 0.7, 0.3, 1);
  border: 1px solid transparent;
  border: 1px solid var(--border-color);
}

.color-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
  background-color: var(--hover-bg);
}

.color-item.selected {
  background-color: var(--active-item);
  border-color: var(--highlight-color);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.color-swatch {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  margin-right: 0.85rem;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-details {
  flex-grow: 1;
}

.color-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.color-hex {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.color-actions {
  display: flex;
  gap: 0.35rem;
}

.color-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.4rem;
  border: none;
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.color-action:hover {
  background-color: var(--highlight-bg);
  color: var(--highlight-color);
}

.color-action.edit:hover {
  color: var(--highlight-color);
}

.color-action.delete:hover {
  color: var(--error-color);
  background-color: var(--error-bg);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  width: 92%;
  max-width: 520px;
  max-height: 75vh;
  overflow-y: auto;
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 110;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.4rem;
  border: none;
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: var(--error-bg);
  color: var(--error-color);
}

.modal-content {
  padding: 1.75rem;
  height: 400px;
  overflow: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-color);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Color Editor */
.color-picker-container {
  margin-bottom: 1.5rem;
}

.color-picker {
  width: 100%;
  height: 4rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.color-picker:hover, .color-picker:focus {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.text-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  font-size: 1rem;
}

.text-input:focus {
  outline: none;
  border-color: var(--highlight-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.color-info {
  margin-top: 1.5rem;
}

.info-item {
  margin-bottom: 1rem;
}

.info-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.info-value {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--tab-bg);
  font-family: monospace;
  font-size: 0.95rem;
  word-break: break-all;
  border: 1px solid var(--border-color);
}

.code-block {
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Tabs */
.tabs {
  /* display: flex; */
  display: none;
  overflow-x: auto;
  background-color: var(--tab-bg);
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.tab {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab:hover {
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.5);
}

.tab.active {
  color: var(--highlight-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background-color: var(--highlight-color);
  border-radius: 3px 3px 0 0;
  transition: width 0.2s;
}

.tab.active:hover::after {
  width: 50%;
}

.tab-content {
  flex: 1;
  padding: 1.75rem;
  /* overflow-y: auto; */
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
  display: block;
}

/* Panel Components */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.info-box {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--info-bg);
  border: 1px solid var(--border-color);
  /* box-shadow: 0 2px 10px var(--shadow-color); */
}

.info-title {
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.info-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Contrast Table */
.table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  /* box-shadow: 0 2px 10px var(--shadow-color); */
  margin-bottom: 1.5rem;
}

.contrast-table {
  width: 100%;
  border-collapse: collapse;
}

.contrast-table th, .contrast-table td {
  padding: 0.85rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.contrast-table th {
  background-color: var(--tab-bg);
  font-weight: 600;
  color: var(--text-color);
}

.contrast-table th:first-child, .contrast-table td:first-child {
  text-align: left;
  background-color: var(--tab-bg);
  width: 13%;
}

.color-swatch-small {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.4rem;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contrast-sample {
  margin: 0.25rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.contrast-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contrast-value i {
  font-size: 16px;
}

/* Color Blindness */
.colorblindness-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .colorblindness-grid {
    grid-template-columns: 1fr 1fr;
  }

}

.colorblindness-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--tab-bg);
  border: 1px solid var(--border-color);
  /* box-shadow: 0 2px 10px var(--shadow-color); */
  transition: transform 0.2s, box-shadow 0.2s;
}

.colorblindness-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.colorblindness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.colorblindness-type {
  font-weight: 600;
  font-size: 1.1rem;
}

.colorblindness-description {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.color-comparisons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.color-comparison {
  text-align: center;
  width: 85px;
  transition: transform 0.2s;
}

.color-comparison:hover {
  transform: scale(1.05);
}

.color-comparison-swatches {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.comparison-swatch {
  width: 3rem;
  height: 3rem;
  border-radius: 0.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.comparison-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.comparison-hex {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  background-color: var(--bg-color);
  padding: 0.25rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
}

.comparison-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Gradients */
.gradients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .gradients-grid {
    grid-template-columns: 1fr 1fr;
  }
  
}

@media (min-width: 1200px) {
  .gradients-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
}

.gradient-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--tab-bg);
  border: 1px solid var(--border-color);
  /* box-shadow: 0 2px 10px var(--shadow-color); */
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.gradient-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.gradient-preview {
  height: 9rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gradient-colors {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.gradient-code {
  padding: 2.2px;
  border-radius: 0.5rem;
  background-color: var(--bg-color);
  font-family: monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
  border: 1px solid var(--border-color);
  max-height: 100px;
  overflow-y: auto;
}

/* Font Sizes */
.font-sizes-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.font-size-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--tab-bg);
  border: 1px solid var(--border-color);
  /* box-shadow: 0 2px 10px var(--shadow-color); */
}

.font-size-header {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.font-size-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

@media (min-width: 640px) {
  .font-size-examples {
    grid-template-columns: 1fr 1fr;
  }
  
}

.font-example {
  margin-bottom: 0.75rem;
}

.text-sample {
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.contrast-badge {
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-pass {
  background-color: var(--success-bg);
  color: var(--success-color);
}

.badge-fail {
  background-color: var(--error-bg);
  color: var(--error-color);
}

.font-size-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Patterns */
.patterns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .patterns-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .patterns-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.pattern-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--tab-bg);
  border: 1px solid var(--border-color);
  /* box-shadow: 0 2px 10px var(--shadow-color); */
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pattern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.pattern-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pattern-preview {
  height: 9rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  background-repeat: repeat !important;
  background-position: center center !important;
}

.pattern-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pattern-colors {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.pattern-colors-label {
  font-weight: 600;
}

.pattern-contrast {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pattern-contrast-label {
  font-weight: 600;
}

.pattern-code {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--bg-color);
  font-family: monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  max-height: 100px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Footer */
.app-footer {
  position: fixed;
  text-align: center;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--header-bg);
  /* box-shadow: 0 -4px 20px var(--shadow-color); */
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  z-index: 10;
  border-top: thin solid #e2e8f0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--highlight-color);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--card-bg);
  z-index: 100;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-menu:hover {
  color: var(--error-color);
}

.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-link:focus {
  background-color: var(--hover-bg);
  color: var(--highlight-color);
}

.mobile-nav-link.active {
  border-left-color: var(--highlight-color);
  color: var(--highlight-color);
  background-color: var(--highlight-bg);
}

.mobile-menu-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Media query for mobile menu */
@media (max-width: 968px) {
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* .social-links {
    display: none;
  } */
  
  .header-logo {
    flex-shrink: 1;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }

}

@media (min-width: 969px) {
  .menu-toggle {
    display: none;
  }
}

/* Custom Scrollbars */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 var(--bg-color);
  /* height: 300px; */
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .left-panel {
    top: 7rem;
    left: 71%;
    width: 100%;
}
.right-panel {
  top: 2rem;
}
}

.footer_logo{
  position: relative;
  top: 5px;
  left: 3px;
}



/* Inline Color Picker Styles */
.inline-color-picker {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 2px;
  background-color: transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.inline-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.inline-color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 0.4rem;
}

.inline-color-picker:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Updated Color Item Layout */
.color-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  border-radius: 0.5rem;
  background-color: var(--tab-bg);
  transition: all 0.25s cubic-bezier(0.1, 0.7, 0.3, 1);
  border: 1px solid var(--border-color);
  gap: 5px;
  cursor: default;
}

.color-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
  background-color: var(--hover-bg);
}

.color-details {
  flex-grow: 1;
  margin-right: 0.85rem;
}

.color-hex {
  font-size: 0.95rem;
  font-weight: 500;
  font-family: monospace;
  color: var(--text-color);
}




