.tool-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tool-header {
  text-align: center;
  margin-bottom: 30px;
}

.tool-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.tool-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.tool-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.calculator-tabs {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 20px;
}

.tab {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

.tab:hover:not(.active) {
  color: #0056b3;
  background-color: #f8f9fa;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row label {
  font-weight: 500;
  color: #555;
  min-width: 120px;
}

.form-row input {
  flex: 1;
  min-width: 200px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-row input:focus {
  outline: none;
  border-color: #007bff;
}

.form-row .operator {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.action-button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-button:hover {
  background-color: #0056b3;
}

.action-button.secondary {
  background-color: #6c757d;
}

.action-button.secondary:hover {
  background-color: #545b62;
}

.result-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.result-header {
  margin-bottom: 15px;
}

.result-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.result-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 10px;
}

.result-description {
  font-size: 1.1rem;
  color: #666;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 15px 25px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fa-percentage {
  font-size: 1.4em;
  color: #4285f4;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.error {
  background-color: #dc3545;
}

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) {
  .tool-content {
    padding: 15px;
  }

  .tool-header h1 {
    font-size: 2rem;
  }

  .tabs-header {
    flex-direction: column;
  }

  .tab {
    text-align: left;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row label {
    min-width: auto;
    margin-bottom: 5px;
  }

  .form-row input {
    min-width: auto;
  }

  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    transform: translateY(-100%);
  }

  .notification.show {
    transform: translateY(0);
  }
}
