/* 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);
  margin-bottom: 0.85rem;
  cursor: pointer;
}

.color-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
  background-color: var(--hover-bg);
}

.color-item.active {
  border-color: var(--highlight-color);
  background-color: var(--highlight-bg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.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);
}

/* Color Actions */
.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.info:hover {
  color: var(--highlight-color);
}

.color-action.delete:hover {
  color: var(--error-color);
  background-color: var(--error-bg);
}

/* Color Codes Table Styles */
.tonalcheck-color-codes {
  margin-top: 2rem;
  margin-bottom: 2rem;
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.tonalcheck-color-codes-header {
  padding: 1.25rem;
  padding-bottom: 0rem;
  /* border-bottom: 1px solid var(--border-color); */
}

.tonalcheck-color-codes-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.tonalcheck-color-codes-container {
  padding: 1.25rem;
  overflow-x: auto;
}

.tonalcheck-color-table {
  width: 100%;
  border-collapse: collapse;
}

.tonalcheck-color-table th {
  background-color: var(--tab-bg);
  padding: 0.3rem 1rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-color);
}

.tonalcheck-color-table td {
  padding: 0.3rem;
  border-top: 1px solid var(--border-color);
  font-family: monospace;
  vertical-align: middle;
}

.tonalcheck-color-table tr:first-child td {
  border-top: none;
}

.tonalcheck-color-swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  display: block;
}

.tonalcheck-color-table tr:hover td {
  background-color: var(--highlight-bg);
}

.tonalcheck-color-value {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

.tonalcheck-color-value:hover {
  background-color: var(--highlight-bg);
  color: var(--highlight-color);
}

.tonalcheck-color-value.copied {
  background-color: var(--success-bg);
  color: var(--success-color);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .tonalcheck-color-table th,
  .tonalcheck-color-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .tonalcheck-color-swatch {
    width: 2rem;
    height: 2rem;
  }
}