/* Consolidated CSS: variables removed, !important added to button and input fields */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  background-color: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
} */

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb !important;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #64748b !important;
}

main {
  display: grid;
  gap: 2rem;
}

.card {
  background: #f8fafc!important;
  border-radius: 8px !important;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 50%), 0 1px 2px -1px rgb(0 0 0 / 60%) !important;
  border: 1px solid #e2e8f0 !important;
	
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b !important;
  border-bottom: 2px solid #2563eb !important;
  padding-bottom: 0.5rem;
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

input[type="text"],
input[type="password"] {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  transition: border-color 0.2s !important, box-shadow 0.2s !important;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1) !important;
}

.slider {
  width: 100% !important;
  height: 8px !important;
  border-radius: 5px !important;
  background: #e2e8f0 !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none !important;
	padding:0px !important;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none !important;
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  background: #2563eb !important;
  cursor: pointer !important;
  transition: background-color 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  background: #1d4ed8;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
}

.rounds-info {
  margin-top: 0.5rem;
}

.security-level {
  font-size: 0.875rem;
  color: #64748b !important;
  font-style: italic !important;
}

.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
}

.btn-primary {
  background-color: #2563eb !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
}

.btn-secondary {
  background-color: #64748b !important;
  color: white !important;
  margin-left: 0.5rem !important;
}

.btn-secondary:hover {
  background-color: #475569 !important;
  transform: translateY(-1px) !important;
}

.btn-clear {
  background-color: #f59e0b !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
}

.btn-clear:hover {
  background-color: #d97706 !important;
  transform: translateY(-1px) !important;
}

.btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.result-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0 !important;
}

.hash-container {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.hash-container input {
  flex: 1 !important;
}

.hash-info {
  font-size: 0.875rem;
  color: #64748b !important;
  margin-top: 0.5rem;
  font-style: italic;
}

.verify-message {
  padding: 1rem;
  border-radius: 8px !important;
  font-weight: 500;
  text-align: center;
}

.verify-message.success {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.verify-message.error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

/* Loading animation */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff !important;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  #app {
    padding: 1rem 0.5rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .hash-container {
    flex-direction: column;
  }
  
  .btn-secondary {
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .btn {
    width: 100% !important;
  }
  
  .section-header .btn-clear {
    width: auto;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
