/* Front/assets/css/style_perfil.css */

body {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Section */
.header-section {
    background-color: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-button {
    background: none;
    border: none;
    font-size: 20px;
    color: #007bff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #f0f2f5;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Main Content */
.main-content {
    padding-top: 1px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: calc(100vh - 80px);
}

/* Profile Picture Section */
.profile-picture-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px 20px;
    background-color: #ffffff;
}

.profile-picture-container {
    text-align: center;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9e9e9;
    margin-bottom: 15px;
}

.picture-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-picture-btn,
.camera-picture-btn {
    background: none;
    border: 1px solid #25d366;
    color: #25d366;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit-picture-btn:hover,
.camera-picture-btn:hover {
    background-color: #25d366;
    color: white;
}

.edit-picture-btn:disabled,
.camera-picture-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f2f5;
    border-color: #ccc;
    color: #999;
}

.edit-picture-btn i,
.camera-picture-btn i {
    font-size: 16px;
}

/* Estilos para el input de archivo */
#fileInput {
    display: none;
}

/* Indicador de carga */
.uploading {
    opacity: 0.7;
    pointer-events: none;
}

/* Profile Information */
.profile-info {
    padding: 0 20px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f2f5;
}

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

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    border-radius: 50%;
    margin-right: 20px;
}

.info-icon i {
    font-size: 20px;
    color: #666;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-value {
    font-size: 17px;
    color: #333;
    font-weight: 400;
}

/* Logout Section */
.logout-section {
    padding: 30px 20px;
    text-align: center;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: #c82333;
}

.logout-btn i {
    font-size: 18px;
}

/* Loading spinner styles */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #007bff;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


  /* Estilos para la ventana emergente de desuscripción */
  .unsubscribe-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
  }

  .unsubscribe-modal.show {
      display: flex;
  }

  .unsubscribe-content {
      background: white;
      border-radius: 15px;
      padding: 30px;
      text-align: center;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      margin: 20px;
  }

  .unsubscribe-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #2d5a3d;
      margin-bottom: 20px;
  }

  .unsubscribe-buttons {
      display: flex;
      gap: 15px;
      justify-content: center;
      margin-top: 25px;
      flex-wrap: wrap;
  }

  .btn-no-thanks {
      background-color: #dc3545;
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 25px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.3s ease;
      min-width: 120px;
  }

  .btn-no-thanks:hover {
      background-color: #c82333;
  }

  .btn-unsubscribe {
      background-color: #2d5a3d;
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 25px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.3s ease;
      min-width: 120px;
  }

  .btn-unsubscribe:hover {
      background-color: #1e3d2a;
  }

  /* Estilos responsivos para la ventana emergente */
  @media (max-width: 767px) {
      .unsubscribe-content {
          max-width: 350px;
          padding: 25px;
      }
      
      .unsubscribe-title {
          font-size: 1.3rem;
      }
      
      .unsubscribe-buttons {
          flex-direction: column;
          gap: 10px;
      }
      
      .btn-no-thanks,
      .btn-unsubscribe {
          min-width: 100%;
          padding: 14px 20px;
      }
  }

  @media (max-width: 480px) {
      .unsubscribe-content {
          max-width: 300px;
          padding: 20px;
      }
      
      .unsubscribe-title {
          font-size: 1.2rem;
      }
  }

  /* Estilos para el botón de desuscripción en el perfil */
  .unsubscribe-btn {
      background-color: #6c757d;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
  }

  .unsubscribe-btn:hover {
      background-color: #5a6268;
  }

  .unsubscribe-btn:disabled {
      background-color: #adb5bd;
      cursor: not-allowed;
  }

  /* Estilos para el botón de resuscripción */
  .resubscribe-btn {
      background-color: #28a745;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
  }

  .resubscribe-btn:hover {
      background-color: #218838;
  }

  /* Estilo para el botón en estado "Desuscrito" */
  .unsubscribe-btn.unsubscribed-state {
      background-color: transparent;
      border: 1px solid #28a745;
      color: #333;
  }

  /* Contenedor de botones de notificación para Flexbox */
  .notification-buttons-container {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
  }

  /* Eliminar margen izquierdo hardcodeado */
  #resubscribeBtn {
      margin-left: 0 !important;
  }

  /* Estilos responsivos para los botones de notificación */
  @media (max-width: 480px) {
      .notification-buttons-container {
          flex-direction: column;
          align-items: stretch; /* Estira los botones al ancho completo */
      }
  }
