.tool-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Tab Navigation */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

/* Tab Content */
.tab-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-panel {
  display: none;
  padding: 2rem;
}

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

.tab-panel h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
}

/* Tool Sections */
.tool-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Input Groups */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.input-group textarea,
.input-group input[type="text"] {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  resize: vertical;
  transition: var(--transition);
}

.input-group input[type="text"] {
  min-height: auto;
  height: 45px;
}

.input-group textarea:focus,
.input-group input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Output Groups */
.output-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.output-group textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  resize: vertical;
}

.copy-btn {
  position: absolute;
  top: 2rem;
  right: 0.5rem;
  padding: 0.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.8;
}

.copy-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Button Groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tool-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tool-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tool-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-color: var(--primary-color);
}

.tool-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Hash Options */
.hash-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.hash-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
}

.hash-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

/* Hash Results */
.hash-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hash-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.hash-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hash-value {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  background: var(--bg-primary);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* JWT Parts */
.jwt-parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.jwt-part {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.jwt-part h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.jwt-part pre {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(102, 126, 234, 0.1);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* UUID Options */
.uuid-options {
  display: flex;
  gap: 2rem;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.uuid-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
}

.uuid-options input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

/* Timestamp Info */
.timestamp-info {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.current-time h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.time-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.time-display > div {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  padding: 0.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.time-display span {
  color: var(--accent-color);
  font-weight: 600;
}

/* Timestamp Results */
.timestamp-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timestamp-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.timestamp-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timestamp-value {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background: var(--bg-primary);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Color Input Group */
.color-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.color-preview {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  border: 3px solid rgba(102, 126, 234, 0.2);
  background: #667eea;
  transition: var(--transition);
}

#colorPicker {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  background: none;
}

/* Color Results */
.color-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.color-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(102, 126, 234, 0.1);
  text-align: center;
}

.color-swatch {
  width: 100%;
  height: 60px;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.color-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.color-value {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background: var(--bg-primary);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Validation Result */
.validation-result {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  font-weight: 600;
}

.validation-result.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.validation-result.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-tabs {
    justify-content: center;
  }
  
  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .tab-panel {
    padding: 1rem;
  }
  
  .button-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tool-btn {
    width: 100%;
  }
  
  .hash-options,
  .uuid-options {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .jwt-parts {
    grid-template-columns: 1fr;
  }
  
  .color-input-group {
    flex-direction: column;
  }
  
  .time-display {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tool-tabs {
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .tool-container {
    padding: 0 1rem;
  }
  
  .input-group textarea,
  .input-group input[type="text"] {
    font-size: 0.8rem;
  }
  
  .copy-btn {
    position: static;
    margin-top: 0.5rem;
    align-self: flex-start;
  }
} 