/* 
 * EVM Verify - Custom Styling
 */

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding-bottom: 50px;
}

/* Header and Main Container */
.container {
  max-width: 1140px;
}

h1 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Card Styling */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: none;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
}

.card-header h5 {
  margin-bottom: 0;
  font-weight: 600;
  color: #2c3e50;
}

.card-body {
  padding: 1.5rem;
}

/* Form Controls */
.form-control, .form-select {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 0.25rem rgba(66, 153, 225, 0.25);
}

/* Buttons */
.btn {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #3182ce;
  border-color: #3182ce;
}

.btn-primary:hover {
  background-color: #2c5282;
  border-color: #2c5282;
}

.btn-secondary {
  background-color: #718096;
  border-color: #718096;
}

.btn-secondary:hover {
  background-color: #4a5568;
  border-color: #4a5568;
}

.btn-info {
  background-color: #4299e1;
  border-color: #4299e1;
  color: white;
}

.btn-info:hover {
  background-color: #3182ce;
  border-color: #3182ce;
  color: white;
}

/* Source Code Preview */
#sourceCodePreview {
  background-color: #f8f9fa;
  font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 1.25rem;
  }
  
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
}

/* Alert Styling */
.alert {
  border-radius: 0.375rem;
  border: none;
}

.alert-success {
  background-color: #c6f6d5;
  color: #276749;
}

.alert-danger {
  background-color: #fed7d7;
  color: #9b2c2c;
}

.alert-info {
  background-color: #bee3f8;
  color: #2c5282;
}

/* Footer */
.footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: #4a5568;
  background-color: #f8f9fa;
  border-top: 1px solid #e2e8f0;
}

.footer a {
  color: #3182ce;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #2c5282;
  text-decoration: underline;
}

/* Group Labels in Dropdowns */
optgroup {
  font-weight: 600;
}

optgroup option {
  font-weight: normal;
  padding-left: 1rem;
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

.form-control:read-only {
  background-color: #f8f9fa;
}

.text-truncate-container {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} 