* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Navbar */
.navbar {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.hero p {
  font-size: 1.2rem;
  color: #7f8c8d;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  gap: 3rem;
}

.category {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category h2 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.tool-card:hover {
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-card h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.tool-card p {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.tool-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.coming-soon {
  opacity: 0.7;
}

/* Tool Page */
.tool-page {
  max-width: 800px;
  margin: 0 auto;
}

.tool-page h1 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.description {
  color: #7f8c8d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.tool-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Monaco", "Courier New", monospace;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
}

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

.input-section,
.output-section {
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-copy {
  background: #27ae60;
  color: white;
  margin-top: 0.5rem;
}

.btn-copy:hover {
  background: #229954;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-small:hover {
  background: #2980b9;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Generator Options */
.generator-options,
.password-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option label {
  margin: 0;
  font-weight: normal;
}

.option input[type="number"] {
  width: 80px;
}

.option input[type="checkbox"] {
  width: auto;
}

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

.hash-result label {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.hash-output-wrapper {
  display: flex;
  gap: 0.5rem;
}

.hash-output-wrapper input {
  flex: 1;
  font-size: 0.9rem;
}

/* Temperature Converter */
.temp-converter {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.temp-input-group {
  flex: 1;
}

.converter-symbol {
  font-size: 2rem;
  color: #3498db;
}

.temp-reference {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.reference-table th,
.reference-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.reference-table th {
  background: #f8f9fa;
  font-weight: 600;
}

/* Epoch Converter */
.current-time {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.current-time h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.time-display {
  font-family: "Monaco", "Courier New", monospace;
}

.converter-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
}

.converter-section:last-child {
  border-bottom: none;
}

.converter-section h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.converter-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.converter-row input {
  flex: 1;
}

.result {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.result .error {
  color: #e74c3c;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

footer p {
  margin: 0.25rem 0;
}

footer .privacy-notice {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .tool-cards {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  .temp-converter {
    flex-direction: column;
  }

  .converter-symbol {
    transform: rotate(90deg);
  }

  .converter-row {
    flex-direction: column;
  }
}
