/* ==================== public/style.css ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #333;
  margin-bottom: 20px;
  font-size: 2em;
}

h2 {
  color: #555;
  margin: 20px 0 15px 0;
  font-size: 1.5em;
}

h3 {
  color: #666;
  margin-bottom: 10px;
}

p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.header div {
  display: flex;
  gap: 10px;
}

/* Top Bar with Profile Selector */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.nav-link:hover {
  background: #f8f9fa;
}

.profile-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-selector label {
  font-weight: 500;
  color: #333;
}

.profile-selector select {
  padding: 10px 20px;
  border: 2px solid #667eea;
  border-radius: 5px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  min-width: 200px;
}

.profile-selector select:focus {
  outline: none;
  border-color: #5568d3;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Hero Section */
.hero-section {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 400px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-overlay h2 {
  color: white;
  font-size: 3em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.intro-text {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lead-text {
  font-size: 1.15em;
  line-height: 1.8;
  color: #555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Profile Content Sections */
.profile-content {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features Highlight */
.features-highlight {
  margin-bottom: 40px;
}

.features-highlight h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 15px;
  color: #667eea;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.feature-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card.upcoming {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1em;
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  text-align: left;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  font-size: 0.95em;
}

.feature-list li {
  margin-bottom: 8px;
  padding-left: 5px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
}

.btn-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transform: scale(1);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Admin Login Section */
.admin-login-section {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.admin-login-section h2 {
  color: #667eea;
  margin-bottom: 20px;
}

.admin-login-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Welcome Message */
.welcome-message {
  text-align: center;
  padding: 40px 20px;
}

.welcome-message h2 {
  color: #333;
  margin-bottom: 20px;
}

.why-choose-us {
  margin: 50px 0;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.why-choose-us h3 {
  text-align: center;
  color: #667eea;
  font-size: 2em;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefits-grid-centered {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  font-size: 3.5em;
  display: block;
  margin-bottom: 15px;
}

.benefit-item h4 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.benefit-item p {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
}

.cta-section {
  margin-top: 60px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  color: white;
}

.cta-section h3 {
  color: white;
  font-size: 2em;
  margin-bottom: 15px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1em;
  opacity: 0.9;
}

/* Cards */
.card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  color: #667eea;
  margin-bottom: 15px;
}

.provider-card, .profile-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-card {
  max-width: 600px;
}

.provider-card h3 {
  color: #667eea;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn:hover {
  background: #5568d3;
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  margin-right: 5px;
}

.btn-danger {
  background: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}

/* Forms */
.form {
  max-width: 600px;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filters */
.filters {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
}

.filter-form input,
.filter-form select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

/* Providers Grid */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.provider-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
}

table th {
  background: #667eea;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 500;
}

table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

table tr:hover {
  background: #f8f9fa;
}

/* Messages */
.error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
  margin-bottom: 20px;
}

.success {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #c3e6cb;
  margin-bottom: 20px;
}

.info {
  background: #d1ecf1;
  color: #0c5460;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #bee5eb;
}

/* Sections */
section {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 2px solid #eee;
}

section:first-of-type {
  border-top: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .profile-selector {
    width: 100%;
  }

  .profile-selector select {
    width: 100%;
  }

  .hero-overlay h2 {
    font-size: 2em;
  }

  .hero-image {
    height: 300px;
  }

  .subtitle {
    font-size: 1.1em;
  }
  
  .user-type-selection {
    grid-template-columns: 1fr;
  }
  
  .providers-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .benefits-grid-centered {
    grid-template-columns: 1fr;
  }
  
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-form input,
  .filter-form select {
    width: 100%;
  }
  
  table {
    font-size: 14px;
  }
  
  table th,
  table td {
    padding: 8px;
  }

  .btn-large {
    width: 100%;
    text-align: center;
  }
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.btn-warning {
  background: #ffc107;
  color: #000;
}

.btn-warning:hover {
  background: #e0a800;
}

/* Employment Form */
.employment-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.responsibilities-section {
  margin: 20px 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

.checkbox-grid input[type="checkbox"] {
  width: auto;
}

/* Images Grid */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.image-item {
  text-align: center;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
}

.add-image-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

/* Provider Images */
.provider-images {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.provider-image {
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ddd;
}

/* Provider Card Detailed */
.provider-card-detailed {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.provider-card-detailed h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.5em;
}

/* Employment Section in Provider Card */
.employment-section {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #667eea;
}

.employment-section h4 {
  color: #667eea;
  margin-bottom: 10px;
}

.employment-record {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.employment-record p {
  margin: 5px 0;
  font-size: 0.95em;
}

/* Note Section */
.note-section {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #ddd;
}

.note-section h4 {
  color: #333;
  margin-bottom: 10px;
}

.note-section small {
  color: #999;
  font-size: 0.85em;
}

.note-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 10px;
}

.note-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.note-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.word-count {
  font-size: 0.85em;
  color: #666;
  text-align: right;
}

/* Terms and Conditions Alignment */
.form-group .terms-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group .terms-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}