/* Dashboard y Profile Editor Styles combinados */

/* ===== DOCTOR DASHBOARD STYLES ===== */
.doctor-dashboard-container,
.doctor-profile-editor-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dashboard-header,
.profile-editor-header {
  text-align: center;
  margin-bottom: 40px;
}

.dashboard-header h1,
.profile-editor-header h1 {
  font-size: 32px;
  color: #245075;
  margin-bottom: 10px;
}

.dashboard-header p,
.profile-editor-header p {
  color: #666;
  font-size: 16px;
}

/* Loading State */
.loading-dashboard,
.loading-profile {
  text-align: center;
  padding: 60px 20px;
}

.loading-dashboard .spinner,
.loading-profile .spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid #f0f0f0;
  border-top-color: #245075;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Subscription Cards */
.subscription-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.subscription-card .card-header {
  background: linear-gradient(135deg, #245075 0%, #3a7ca5 100%);
  color: white;
  padding: 30px;
  position: relative;
}

.expired-subscription .card-header {
  background: linear-gradient(135deg, #d63638 0%, #f06a6d 100%);
}

.no-subscription .card-header {
  background: linear-gradient(135deg, #666 0%, #999 100%);
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.3);
  color: white;
}

.card-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.card-body {
  padding: 30px;
}

/* Subscription Details */
.subscription-details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.detail-item .label {
  color: #666;
  font-weight: 500;
}

.detail-item .value {
  color: #333;
  font-weight: 600;
}

.detail-item .value.warning {
  color: #d63638;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.plan-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: #245075;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(36,80,117,0.15);
}

.plan-card.recommended {
  border-color: #245075;
  border-width: 3px;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #245075;
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #245075;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #1a3d59;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36,80,117,0.3);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  margin-left: 10px;
}

.btn-secondary:hover:not(:disabled) {
  background: #e0e0e0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Profile Editor */
.editor-section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.editor-section h2 {
  font-size: 20px;
  color: #245075;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #245075;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 12px;
}

/* Messages */
.save-message,
.form-message {
  margin: 20px 0;
}

.success-message {
  background: #e6f4ea;
  border-left: 4px solid #00a32a;
  padding: 12px 16px;
  border-radius: 4px;
  color: #00a32a;
  font-weight: 500;
}

.error-message {
  background: #f8d7da;
  border-left: 4px solid #d63638;
  padding: 12px 16px;
  border-radius: 4px;
  color: #d63638;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header h1,
  .profile-editor-header h1 {
    font-size: 24px;
  }

  .card-header h2 {
    font-size: 22px;
  }

  .card-body {
    padding: 20px;
  }

  .plans-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .editor-actions {
    flex-direction: column;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }
}
