/* Auth and Profile Pages Styles */
.auth-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f7ff, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.auth-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  margin-bottom: 32px;
  display: block;
}

.auth-logo span {
  color: var(--orange);
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Nunito', sans-serif;
}

.auth-subtitle {
  color: var(--gray-600);
  margin-bottom: 32px;
  font-family: 'Lora', serif;
  line-height: 1.6;
}

/* Form Styles */
.auth-form {
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--gray-100);
  border-radius: 12px;
  font-family: 'Lora', serif;
  font-size: 16px;
  background: var(--gray-50);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  display: none;
}

.error-message.show {
  display: block;
}

.auth-button {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.auth-button:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.auth-button:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-link {
  color: var(--blue);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: var(--navy);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--gray-400);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

.auth-divider span {
  padding: 0 16px;
}

/* Role Selection Cards */
.role-selection {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.role-bubble {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--gray-400);
    background: white;
    flex-shrink: 0;
    margin-left: auto;
    margin-top: auto;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    position: relative;
}

.role-card.selected .role-bubble {
    border-color: var(--orange);
    background: var(--orange);
}

.role-card.selected .role-bubble::after {
    content: '•';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    line-height: 1;
    text-align: center;
    color: white;
}

.role-card.selected {
    border-color: var(--orange) !important;
    background: #fff7ed !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.role-card.selected .role-title {
    color: var(--orange) !important;
}

.role-card:hover {
    border-color: var(--blue);
    background: var(--sky);
    transform: translateY(-2px);
}

.role-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 18px;
}

.role-description {
  color: var(--gray-600);
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Multi-step Setup */
.setup-container {
  max-width: 800px;
  margin: 0 auto;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-100);
  z-index: 1;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 0;
  height: 2px;
  background: var(--blue);
  z-index: 2;
  transition: width 0.3s ease;
}

.progress-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.progress-step.active .progress-number {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.progress-step.completed .progress-number {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.progress-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
  max-width: 100px;
}

.progress-step.active .progress-label {
  color: var(--navy);
}

.setup-step {
  display: none;
}

.setup-step.active {
  display: block;
  animation: fadeUp 0.3s ease-out;
}

.setup-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.nav-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.nav-button.back {
  background: var(--gray-100);
  color: var(--gray-600);
}

.nav-button.back:hover {
  background: var(--gray-200);
}

.nav-button.next {
  background: var(--blue);
  color: white;
}

.nav-button.next:hover {
  background: #1d4ed8;
}

.nav-button.skip {
  background: transparent;
  color: var(--gray-600);
  text-decoration: underline;
}

.nav-button.skip:hover {
  color: var(--navy);
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gray-50);
}

.file-upload:hover {
  border-color: var(--blue);
  background: var(--sky);
}

.file-upload.dragover {
  border-color: var(--blue);
  background: var(--sky);
  transform: scale(1.02);
}

.file-upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--gray-400);
}

.file-upload-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.file-upload-subtext {
  font-size: 14px;
  color: var(--gray-400);
  font-family: 'Lora', serif;
}

.file-input {
  display: none;
}

.file-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--warm);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 24px;
}

.file-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}

.file-size {
  font-size: 12px;
  color: var(--gray-600);
  font-family: 'Lora', serif;
}

.remove-file {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

/* Child Cards */
.child-card {
  background: var(--warm);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.child-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.child-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
}

.remove-child {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

.child-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.child-age {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 14px;
}

.child-restrictions {
  margin-top: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
}

.restriction-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 8px;
}

.restriction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.restriction-badge {
  background: var(--sky);
  color: var(--navy);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

/* Profile View */
.profile-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.profile-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 24px;
}

.edit-button {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.edit-button:hover {
  background: #1d4ed8;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.verification-badge.pending {
  background: #fff7ed;
  color: var(--orange);
}

.verification-badge.verified {
  background: #f0fdf4;
  color: #16a34a;
}

.verification-badge.rejected {
  background: #fef2f2;
  color: #ef4444;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 12px;
  text-transform: uppercase;
}

.profile-value {
  font-family: 'Lora', serif;
  color: var(--navy);
  font-size: 16px;
}

/* Cases List */
.cases-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cases-list {
  display: grid;
  gap: 16px;
}

.case-card {
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.case-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.case-number {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
}

.case-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.case-status.active {
  background: #f0fdf4;
  color: #16a34a;
}

.case-status.pending {
  background: #fff7ed;
  color: var(--orange);
}

.case-status.closed {
  background: #f3f4f6;
  color: var(--gray-600);
}

.case-type {
  color: var(--gray-600);
  font-family: 'Lora', serif;
  font-size: 14px;
  margin-bottom: 8px;
}

.case-parties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.party-badge {
  background: var(--gray-50);
  color: var(--gray-600);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

/* Success Message */
.success-message {
  background: #f0fdf4;
  color: #16a34a;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 24px;
    margin: 16px;
  }
  
  .setup-container {
    margin: 0 16px;
  }
  
  .progress-bar {
    margin-bottom: 24px;
  }
  
  .progress-label {
    font-size: 10px;
    max-width: 80px;
  }
  
  .setup-navigation {
    flex-direction: column;
  }
  
  .nav-button {
    width: 100%;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .case-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .child-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 16px;
  }
  
  .auth-card {
    padding: 20px;
  }
  
  .auth-title {
    font-size: 28px;
  }
  
  .role-selection {
    gap: 12px;
  }
  
  .role-card {
    padding: 16px;
  }
}

.nav-button.next {
    min-width: 140px;
}
