/* DPC Mentor Platform - Custom Styles */

:root {
  /* Medical-inspired color palette */
  --primary-blue: #0d6efd;
  --secondary-blue: #6c757d;
  --accent-teal: #20c997;
  --success-green: #198754;
  --warning-amber: #ffc107;
  --danger-red: #dc3545;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}

/* Typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.navbar-brand {
  font-size: 1.5rem;
}

/* Cards and containers */
.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
  transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Profile cards */
.mentor-card {
  border-left: 4px solid var(--accent-teal);
}

.mentee-card {
  border-left: 4px solid var(--primary-blue);
}

/* Status badges */
.status-badge {
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending {
  background-color: var(--warning-amber);
  color: var(--dark-gray);
}

.status-approved {
  background-color: var(--success-green);
  color: white;
}

.status-rejected {
  background-color: var(--danger-red);
  color: white;
}

.status-under-review {
  background-color: var(--secondary-blue);
  color: white;
}

/* Form enhancements */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

/* File upload area */
.file-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  background-color: var(--light-gray);
  transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.file-upload-area:hover {
  border-color: var(--accent-teal);
  background-color: rgba(32, 201, 151, 0.05);
}

.file-upload-area.dragover {
  border-color: var(--primary-blue);
  background-color: rgba(13, 110, 253, 0.05);
}

/* Progress bars */
.progress {
  height: 0.75rem;
}

.progress-bar {
  transition: width 0.6s ease;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

/* Mobile-first enhancements */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
  }
}

/* Hero sections */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
  color: white;
  padding: 4rem 0;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
}

/* Feature boxes */
.feature-box {
  text-align: center;
  padding: 2rem;
}

.feature-box i {
  font-size: 3rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Custom alerts */
.alert {
  border: none;
  border-radius: 0.5rem;
}

.alert-info {
  background-color: rgba(13, 202, 240, 0.1);
  color: #055160;
}

.alert-success {
  background-color: rgba(25, 135, 84, 0.1);
  color: #0f5132;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #664d03;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #842029;
}

/* Document list styling */
.document-item {
  border-left: 3px solid var(--light-gray);
  transition: border-color 0.2s ease;
}

.document-item.verified {
  border-left-color: var(--success-green);
}

.document-item.expired {
  border-left-color: var(--danger-red);
}

.document-item.expiring-soon {
  border-left-color: var(--warning-amber);
}

/* Tables */
.table th {
  font-weight: 600;
  border-top: none;
  border-bottom: 2px solid #dee2e6;
}

.table-responsive {
  border-radius: 0.375rem;
}

/* PWA and mobile enhancements */
.touch-friendly {
  min-height: 44px;
  min-width: 44px;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .alert {
    display: none !important;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
}