/* Test Preview Styles */
.test-preview-container {
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.test-preview-question {
    font-weight: var(--font-weight-semibold);
    color: #1f2937;
    font-size: var(--text-lg);
    line-height: var(--line-height-normal);
    font-family: var(--font-family);
    margin-bottom: 1.25rem;
}

.test-preview-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-preview-option:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background-color: #f0f9ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.test-preview-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
}

.test-preview-option:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.test-preview-option input {
    margin-right: 10px;
}

.test-preview-option label {
    flex-grow: 1;
    cursor: pointer;
    font-size: var(--text-base);
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
}

.test-preview-image {
    display: block;
    max-width: 100%;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.test-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.test-preview-progress {
    font-size: var(--text-sm);
    color: #6b7280;
}

.test-preview-timer {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: #1f2937;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
}

.test-preview-timer i {
    margin-right: 6px;
    color: #4b5563;
}

/* Animation for options */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.test-preview-option.selected {
    animation: pulse 0.3s ease-in-out;
}

/* Test Preview Professional Typography */
:root {
  /* Professional Typography Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Font Family */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Elements
-------------------------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  color: #1f2937;
  font-family: var(--font-family);
  line-height: var(--line-height-normal);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 8px;
  background-color: white;
  color: #1f2937;
  font-family: var(--font-family);
  line-height: var(--line-height-normal);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
}

.form-control:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.form-radio {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(209, 213, 219, 0.8);
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.form-radio:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-radio:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-radio:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Button Standardization
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
  line-height: var(--line-height-normal);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}
