/* Advanced Tools Pages Styling */
.tool-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tool-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tool-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.tool-header h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.tool-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.tool-form {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #eee;
  position: relative;
}

.tool-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #4158D0, #C850C0);
  border-radius: 5px 5px 0 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #4158D0;
  box-shadow: 0 0 0 3px rgba(65, 88, 208, 0.1);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4158D0, #C850C0);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: ripple 1s linear;
}

@keyframes ripple {
  from { transform: scale(0.5); opacity: 0.5; }
  to { transform: scale(1.5); opacity: 0; }
}

.result-container {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  background: #f5f9ff;
  border: 1px solid #e0e7ff;
  display: none;
}

.result-container.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-instructions {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid #4158D0;
}

.tool-instructions h3 {
  color: #4158D0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.tool-instructions ol {
  padding-left: 1.5rem;
}

.tool-instructions li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tool-container {
    padding: 1.5rem;
  }
  
  .tool-header h1 {
    font-size: 1.8rem;
  }
  
  .tool-form {
    padding: 1.5rem;
  }
}

/* Tool-specific elements */
.copy-btn {
  background: #4158D0;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

.tool-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4158D0;
}

/* Tooltip styling */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}