/* Main content area styling */
.tool-main-content {
  padding-top: 120px; /* Adjust based on header height */
  padding-bottom: 4rem;
  min-height: calc(100vh - 150px); /* Ensure content fills space above footer */
}

.tool-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(77, 208, 225, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.tool-header {
  margin-bottom: 2rem;
}

.tool-main-icon {
  font-size: 2.5rem;
  color: #4dd0e1;
  margin-bottom: 1rem;
}

.tool-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.tool-header p {
  font-size: 1.1rem;
  color: #b0b0b0;
}

/* Input and result styling */
.input-container,
.result-container {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.input-container input {
  flex-grow: 1;
  padding: 1rem;
  border: 2px solid rgba(77, 208, 225, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(15, 15, 35, 0.8);
  color: #ffffff;
  transition: all 0.3s ease;
}

.input-container input:focus {
  outline: none;
  border-color: #4dd0e1;
  box-shadow: 0 0 0 3px rgba(77, 208, 225, 0.2);
}

/* Result styles */
.result-container {
  margin-top: 1.5rem;
}

#shortUrlOutput {
  flex-grow: 1;
  padding: 1rem;
  border: 2px solid rgba(129, 199, 132, 0.4);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(15, 15, 35, 0.8);
  color: #81c784; /* Greenish color for success */
  font-family: "Courier New", monospace;
  cursor: default;
}

/* Button specific styles */
#shortenBtn {
  min-width: 120px;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Error message styling */
#errorArea {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .input-container {
    flex-direction: column;
  }
  .result-container {
    flex-direction: column;
  }
  .tool-wrapper {
    padding: 1.5rem;
  }
  .tool-header h1 {
    font-size: 1.8rem;
  }
}
