body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.5rem;
}

.logo i {
  color: #4285f4;
  margin-right: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
  display: none;
}

main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.tool-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.tool-icon-large {
  font-size: 3rem;
  color: #4285f4;
  margin-bottom: 15px;
}

.tool-header h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #333;
}

.tool-header p {
  margin-top: 10px;
  color: #666;
  font-size: 1.1rem;
}

.converter-container {
  max-width: 800px;
  margin: 0 auto;
}

.converter-section {
  margin-bottom: 30px;
}

.converter-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.converter-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  margin-right: 20px;
}

.converter-tab.active {
  color: #4285f4;
  border-bottom-color: #4285f4;
  font-weight: 500;
}

.converter-content {
  display: none;
}

.converter-content.active {
  display: block;
}

.converter-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.converter-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.converter-group {
  flex: 1;
  min-width: 200px;
}

.converter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.converter-group input,
.converter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.converter-group input:focus,
.converter-group select:focus {
  outline: none;
  border-color: #4285f4;
}

.swap-button {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666;
  transition: all 0.3s;
}

.swap-button:hover {
  background: #eee;
  color: #4285f4;
}

.options-container {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.option-group {
  margin-bottom: 15px;
}

.option-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
}

.option-group input[type="checkbox"],
.option-group input[type="radio"] {
  margin-right: 8px;
}

.action-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.action-button {
  background-color: #4285f4;
  color: white;
  margin-right: 10px;
}

.action-button:hover {
  background-color: #3367d6;
  transform: translateY(-1px);
}

.secondary-button {
  background-color: #f9f9f9;
  color: #333;
  border: 1px solid #ddd;
}

.secondary-button:hover {
  background-color: #eee;
}

.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background-color: #34a853;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.error {
  background-color: #ea4335;
}

.notification.info {
  background-color: #4285f4;
}

footer {
  background-color: #fff;
  padding: 30px 0;
  border-top: 1px solid #eee;
}

.footer-bottom {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  .tool-content {
    padding: 20px 15px;
  }

  .tool-header h1 {
    font-size: 1.8rem;
  }

  .converter-tabs {
    justify-content: center;
  }

  .converter-tab {
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .converter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .swap-button {
    align-self: center;
    transform: rotate(90deg);
  }

  .action-button,
  .secondary-button {
    width: 100%;
    margin: 10px 0;
  }
}
