/* Custom styles for AlphaMix */

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.7;
}

/* Typography improvements */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

/* Improve spacing between sections */
section, .section {
  margin-bottom: 3rem;
}

/* Better paragraph spacing */
p {
  margin-bottom: 1.25rem;
}

/* Ensure bullet points render properly */
ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin: 1rem 0;
}

ul li {
  margin: 0.5rem 0;
  display: list-item;
}

/* Ensure nested lists also work */
ul ul {
  list-style-type: circle;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero h3 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 0;
  opacity: 0.95;
}

/* Grid layout improvements */
.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.g-col-md-4 {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.g-col-md-4 h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.g-col-md-4 {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.g-col-md-4:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Registration form */
.registration-form {
  max-width: 600px;
  margin: 2rem auto;
}

.registration-form-container {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Callout improvements */
.callout-note {
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.callout-tip {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

/* Logo/Brand Styling - Increased size and prominence */
/* Note: Navbar has dark/blue background, so logo needs to be light/white */
.navbar-brand {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: #ffffff !important; /* White for visibility on dark navbar */
}

.navbar-brand:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.navbar-title {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  /* Gradient effect that works on dark background */
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 992px) {
  .navbar-brand {
    font-size: 2rem !important;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem !important;
  }
}

/* Footer */
footer {
  background: var(--bg-light);
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
    margin: 2rem 0;
  }
  
  .hero h3 {
    font-size: 1.75rem;
  }
  
  .registration-form-container {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* Admin panel styles */
.admin-panel {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-light);
  font-weight: 600;
}

.admin-table tr:hover {
  background: var(--bg-light);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #d1fae5;
  color: #065f46;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin: 0 0.25rem;
}

/* Form validation styles */
.form-control.is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.98-.98-.98-.98-.66.66.98.98.98-.98.66.66-.66.66z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='m6.2 8.4-.4-.4-.4.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.form-text {
  margin-top: 0.25rem;
  font-size: 0.875em;
}

/* Spinner styles */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Loading button state */
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Character counter */
#useCaseCounter {
  display: block;
  margin-top: 0.25rem;
}

