* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  color: #7f8c8d;
  margin: 0 auto;
}

.table-container{
  background-color: #fff;
  margin-top: 25px;
  border-radius: 12px;
  overflow: hidden;
}
.controls {
  padding: 20px;
  background: white;
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #eee;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: #6a11cb;
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.filter-options {
  display: flex;
  gap: 15px;
}

.filter-btn {
  background: #f1f2f3;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.filter-btn.active {
  background: #6a11cb;
  color: white;
}

.filter-btn:hover {
  background: #e0e0e0;
}

.filter-btn.active:hover {
  background: #5a0db3;
}

.stats {
  background: #fff;
  padding: 15px 20px;
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
}

.stats div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-table {
  width: 100%;
  border-collapse: collapse;
}

.color-table th {
  background: #2c3e50;
  color: white;
  text-align: left;
  padding: 18px 20px;
  font-weight: 600;
}

.color-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.color-name {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-value {
  font-family: 'Courier New', monospace;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  background: #f8f9fa;
  display: inline-block;
  transition: all 0.2s;
}

.color-value:hover {
  background: #e9ecef;
}

.color-preview {
  height: 40px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.w3c-badge {
  background: #4CAF50;
  color: white;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

footer {
  background: #2c3e50;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  border-radius: 12px;
}

.footer-section {
  flex: 1;
  padding: 0 10px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section p {
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 15px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
  visibility: visible;
}

.copy-icon {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.copy-icon:hover {
  opacity: 1;
}
