/* Estilos para dashboards */

.dashboard-container {
  min-height: 100vh;
  background: var(--light-gray);
}

.dashboard-header {
  background: white;
  padding: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(244, 180, 0, 0.2);
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-user-info h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.dashboard-user-info p {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.dashboard-user-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #e6a800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dashboard-main {
  padding: 2rem 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-number.savings {
  color: var(--success);
}

.stat-label {
  color: var(--secondary-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.dashboard-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-main-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-widget {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

.service-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(244, 180, 0, 0.2);
  text-decoration: none;
}

.category-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.category-name {
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.recent-activity {
  list-style: none;
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: rgba(244, 180, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.activity-content h4 {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.activity-content p {
  font-size: 0.8rem;
  color: var(--secondary-text);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--secondary-text);
  margin-left: auto;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.action-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.action-btn:hover {
  background: #e6a800;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
  color: white;
}

.action-btn.secondary {
  background: var(--light-gray);
  color: var(--dark-gray);
  border: 2px solid #e1e5e9;
}

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

.placeholder-content {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
  height: 20px;
  margin-bottom: 0.5rem;
}

.placeholder-content.large {
  height: 40px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .service-categories {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .dashboard-main {
    padding: 1rem 0;
  }
  
  .dashboard-main-content,
  .dashboard-widget {
    padding: 1rem;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* Estilos para la vista del perfil del proveedor */
.provider-profile-container {
  min-height: 100vh;
  background: var(--light-gray);
  padding: 2rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.provider-profile-header {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.provider-profile-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.provider-profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.provider-profile-info h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--dark-gray);
  margin: 0 0 0.5rem 0;
}

.profile-subtitle {
  color: var(--secondary-text);
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

.provider-profile-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.provider-rating-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-stars-large {
  color: #ffd700;
  font-size: 1.2rem;
}

.rating-text-large {
  color: var(--secondary-text);
  font-weight: 500;
}

.provider-location,
.provider-experience {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.provider-actions-header {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.provider-btn-large {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.provider-btn-large.primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(244, 180, 0, 0.2);
}

.provider-btn-large.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(244, 180, 0, 0.3);
  text-decoration: none;
  color: white;
}

.provider-btn-large.secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.provider-btn-large.secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.provider-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.provider-main-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.provider-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.provider-widget {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.provider-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.description-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--secondary-text);
}

.description-placeholder i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.edit-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
  display: inline-block;
}

.edit-link:hover {
  text-decoration: underline;
}

.services-count {
  color: var(--secondary-text);
  font-weight: 400;
  font-size: 0.9rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.service-card.inactive {
  opacity: 0.6;
  background: #f8f9fa;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.service-info {
  flex: 1;
}

.service-name {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.service-category {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-price {
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.services-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--secondary-text);
}

.services-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.add-service-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.add-service-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat-item .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--secondary-text);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  text-decoration: none;
  transform: translateX(5px);
}

/* Responsive para el perfil del proveedor */
@media (max-width: 768px) {
  .provider-profile-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .provider-profile-meta {
    justify-content: center;
  }
  
  .provider-actions-header {
    justify-content: center;
  }
  
  .provider-content {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
} 