/* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ */
/* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ */
/* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ *//* ↓ todas los css lo deben de tener ↓ */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Candara, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: #1a1818;
}

.sidebar {
  width: 250px;
  background-color: #d8d8d8;
  color: white;
  padding: 20px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.sidebar .logo-link {
  display: block;
  text-align: center;
}

.sidebar .logo {
  width: 200px;
  height: auto;
  transition: transform 0.4s ease;
}

.sidebar .logo-link:hover .logo {
  transform: scale(1.05);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 15px 0;
}

.sidebar li a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;  
  padding: 10px 20px;
  background-color: #D50000;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25);
}

.sidebar li a:hover {
  background-color: #e42f2f;
  transform: scale(1.05);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.35);
}

.main-content {
  margin-left: 250px;
  padding: 20px;
  color: white;
}

.icono-inicio,
.icono-perfil,
.icono-subir,
.icono-guardar,
.icono-amigos {
  width: 23px;
  height: 23px;
  margin-right: 15px;
}

.title img{
    height: 200px;
    width: 250px;
    align-items: center;
}

.fafa img{
    height: 100px;
    width: 300px;
    align-items: center;
}

/* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ */
/* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ */
/* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ *//* ^ todas los css lo deben de tener ^ */

/* esta cagada es el rectangulo de los datos, sirve para subir recetas y para el inicio y registro (no tocar 😁) */
label {
  color: white;
  margin-bottom: 10px;
  display: block;
}
/* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ */
/* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ */
/* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ *//* ↓ parte del index ↓ */
/* ↓ parte del index ↓ */
.search-container {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

#searchInput {
  height: 50px;
  width: 300px;
  padding: 0 20px;
  border-radius: 25px;
  font-size: 18px;
  border: 2px solid #D50000;
  transition: all .3s ease;
  margin-top: 20px;
  background-color: #f0f0f0;
  color: #333;
  margin-right: 10px;
}


#searchInput:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(213, 0, 0, 0.5);
}

.btn-search {
  width: 50px;
  height: 50px;
  background: #D50000;
  border-radius: 0 25px 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .5s;
  margin-top: 10px;
  border: none;
  border-left: none;
}

.btn-search:hover {
  background: #b30000;
}

.btn-search i {
  font-size: 20px;
  color: white;
  transition: all .7s ease;
}
.main-content input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.main-content input:focus{
  border-color: #D50000;
  box-shadow: 0 0 8px rgba(213, 0, 0, 0.7);
}
  


.container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  margin-top: 20px;
}

.container input {
  height: 50px;
  width: 300px;
  padding: 0 20px;
  border-radius: 25px;
  font-size: 18px;
  border: 2px solid #D50000;
  transition: all .3s ease;
  margin-top: 10px;
}

.container .btn-search {
  width: 50px;
  height: 50px;
  background: #D50000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .5s;
}

.container .btn-search:hover {
  background: #cc0000;
}

.container .btn-search i {
  font-size: 25px;
  width: 400px;
  color: white;
  transition: all .7s ease;
  display: flex;
  justify-content: center;
  align-content: center;
}

.container .btn-search i:hover{
  transform: rotate(360deg);
}

.recipes-section {
  display: flex;
  gap: 70px;
  flex-wrap: wrap;
  margin-left: 50px;
}

.recipe-card {
  width: 27%;
  border-radius: 5%;
  overflow: hidden;
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5%;
  transition: transform 0.9s ease, box-shadow 0.9s ease;
}

.recipe-card:hover {
  transform: scale(1.03);
}

.recipe-info {
  padding: 10px;
  color: white;
}

.recipe-card h3 {
  margin-bottom: 10px;
}

.recipe-card p {
  font-size: 0.9rem;
}

.header-bar {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;   
  align-items: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

.container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iniciar,
.registro {
  position: absolute;
  top: 65px;                  
  background: #D50000;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s, transform 0.25s;
}

.iniciar:hover,
.registro:hover {
  background: #9b0000;
  transform: scale(1.03);
}

.iniciar {
  right: 145px;  
}

.registro {
  right: 20px;
}

.botones-receta {
  margin: 15px 0;
  display: flex;
  gap: 10px;
}

.botones-receta button {
  background-color: #f2f2f2;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.botones-receta button:hover {
  background-color: #ddd;
}
.imagen-receta-modal {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.popup-receta {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-receta.oculto {
  display: none;
}

.popup-fondo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-texto {
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  cursor: pointer;
  color: white;
}
/* Estilos para las recetas filtradas */
.recipe-card[style*="display: none"] {
  display: none !important;
}

/* Mensaje cuando no hay resultados */
.no-results {
  color: white;
  text-align: center;
  width: 100%;
  margin-top: 50px;
  font-size: 1.2rem;
  display: none;
}

/* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ */
/* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ */
/* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ *//* ^ parte del index ^ */

/* ↓ parte del inicio de sesion y registro ↓ *//* ↓ parte del inicio de sesion y registro ↓ *//* ↓ parte del inicio de sesion y registro ↓ */
/* ↓ parte del inicio de sesion y registro ↓ *//* ↓ parte del inicio de sesion y registro ↓ *//* ↓ parte del inicio de sesion y registro ↓ */
/* ↓ parte del inicio de sesion y registro ↓ *//* ↓ parte del inicio de sesion y registro ↓ *//* ↓ parte del inicio de sesion y registro ↓ */

.auth-page {
  max-width: 400px;
  margin: 80px auto;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  color: white;
}

.auth-page h2 {
  text-align: center;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form label {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.auth-form input {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.auth-form select {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.auth-submit {
  padding: 10px;
  background: #D50000;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.3s;
}

.auth-submit:hover {
  background: #cc0000;
  transform: scale(1.02);
}

.auth-switch {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

.auth-switch a {
  color: #D50000;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.tipode {
    margin-bottom: 10px;
}

.select {
}

/* ============ ESTILOS PARA RECUPERACIÓN DE CONTRASEÑA ============ */
.password-recovery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #1a1818;
  padding: 20px;
}

.password-recovery-card {
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.password-recovery-title {
  color: #fff;
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #D50000;
}

.password-recovery-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-label {
  display: block;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: #333;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #D50000;
  box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.2);
  outline: none;
}

.form-input::placeholder {
  color: #aaa;
}

.recovery-button {
  width: 100%;
  padding: 12px;
  background: #D50000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.recovery-button:hover {
  background: #b30000;
  transform: translateY(-2px);
}

.back-to-login {
  display: block;
  margin-top: 15px;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.back-to-login:hover {
  color: #D50000;
  text-decoration: underline;
}

.recovery-instructions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 14px;
}

/* Mensajes de estado */
.recovery-message {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: bold;
}

.recovery-message.success {
  background: rgba(0, 200, 83, 0.2);
  border-left: 4px solid #00C853;
  color: #69f0ae;
}

.recovery-message.error {
  background: rgba(213, 0, 0, 0.2);
  border-left: 4px solid #D50000;
  color: #ff6b6b;
}
/* ============ ESTILOS ESPECÍFICOS PARA EDITAR PERFIL ============ */
.edit-profile-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.edit-profile-container h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  border-bottom: 2px solid #D50000;
  padding-bottom: 10px;
}

/* Formulario de edición */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edit-form label {
  color: #fff;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.edit-form input[type="text"],
.edit-form input[type="email"],
.edit-form input[type="password"],
.edit-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #333;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.edit-form input[type="text"]:focus,
.edit-form input[type="email"]:focus,
.edit-form input[type="password"]:focus,
.edit-form select:focus {
  border-color: #D50000;
  box-shadow: 0 0 8px rgba(213, 0, 0, 0.5);
  outline: none;
}

.edit-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

/* Sección de contraseña */
.password-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #555;
}

.password-section p {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Botones */
.edit-form .button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.edit-form .button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-form .button[type="submit"] {
  background: #D50000;
  color: white;
}

.edit-form .button[type="submit"]:hover {
  background: #b30000;
  transform: translateY(-2px);
}

.edit-form .button.secondary {
  background: #444;
  color: white;
  text-align: center;
  text-decoration: none;
}

.edit-form .button.secondary:hover {
  background: #555;
  transform: translateY(-2px);
}

/* Alertas */
.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: bold;
}

.alert.error {
  background: rgba(213, 0, 0, 0.2);
  border-left: 4px solid #D50000;
  color: #ff6b6b;
}

/* Sección de foto de perfil */
.profile-picture-section {
  margin: 20px 0;
  text-align: center;
}

.profile-picture-section label {
  display: block;
  margin-bottom: 10px;
}

.profile-picture-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #D50000;
  margin: 0 auto 15px;
  display: block;
}

.profile-picture-upload {
  display: none;
}

.profile-picture-label {
  display: inline-block;
  padding: 8px 15px;
  background: #444;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-picture-label:hover {
  background: #555;
}
/* ^ parte del inicio de sesion y registro ^ *//* ^ parte del inicio de sesion y registro ^ *//* ^ parte del inicio de sesion y registro ^ */
/* ^ parte del inicio de sesion y registro ^ *//* ^ parte del inicio de sesion y registro ^ *//* ^ parte del inicio de sesion y registro ^ */
/* ^ parte del inicio de sesion y registro ^ *//* ^ parte del inicio de sesion y registro ^ *//* ^ parte del inicio de sesion y registro ^ */

/* Estilos para la página de Subir Receta */
/* Estilos para la página de Subir Receta */
body.subir-receta .main-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 270px; /* Respeta el espacio del sidebar */
    padding-right: 20px;
    box-sizing: border-box;
}

body.subir-receta .title {
   font-size: 2rem;
    margin: 20px 0 30px;
    text-align: center;
}

body.subir-receta form {
   background-color: #2a2a2a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

body.subir-receta form label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

body.subir-receta input[type="text"],
body.subir-receta textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.subir-receta textarea {
    resize: vertical;
    min-height: 120px;
}

body.subir-receta input[type="text"]:focus,
body.subir-receta textarea:focus {
    border-color: #D50000;
    box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.2);
    outline: none;
}

body.subir-receta button[type="submit"] {
    background-color: #D50000;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    width: 200px;
    text-align: center;
    font-weight: bold;
}

body.subir-receta button[type="submit"]:hover {
    background-color: #b30000;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    body.subir-receta .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    body.subir-receta .main-content {
        margin-left: 0;
        padding-top: 20px;
        width: 90%;
    }
    
    body.subir-receta form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body.subir-receta .main-content {
        width: 95%;
        padding: 15px;
    }
    
    body.subir-receta button[type="submit"] {
        width: 100%;
    }
}
/* ↓ parte del AMIGOS ↓ *//* ↓ parte del AMIGOS ↓ *//* ↓ parte del AMIGOS ↓ */
/* ↓ parte del AMIGOS ↓ *//* ↓ parte del AMIGOS ↓ *//* ↓ parte del AMIGOS ↓ */
/* ↓ parte del AMIGOS ↓ *//* ↓ parte del AMIGOS ↓ *//* ↓ parte del AMIGOS ↓ */
/* Estilos específicos para la sección de amigos */
.amigos-content {
    padding: 30px;
}

.search-friends {
    display: flex;
    margin: 20px 0;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 25px 0 0 25px;
    border: 2px solid #D50000;
    background: #333;
    color: white;
    font-size: 16px;
}

.search-button {
    width: 50px;
    background: #D50000;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
    height: 45px;
}

.search-button:hover {
    background: #b30000;
}

.friends-tabs {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-button.active {
    color: white;
    font-weight: bold;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #D50000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para las tarjetas de amigos */
.friends-grid, .suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.friend-card, .suggestion-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
}

.friend-card:hover, .suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.friend-avatar, .suggestion-avatar, .request-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #D50000;
}

.friend-info h4, .suggestion-info h4, .request-info h4 {
    margin: 0 0 5px 0;
    color: white;
}

.friend-info p, .suggestion-info p, .request-info p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

.friend-actions, .request-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-view-profile, .btn-add-friend, .btn-accept {
    padding: 5px 10px;
    background: #D50000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-remove-friend, .btn-decline {
    padding: 5px 10px;
    background: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-view-profile:hover, .btn-add-friend:hover, .btn-accept:hover {
    background: #b30000;
}

.btn-remove-friend:hover, .btn-decline:hover {
    background: #555;
}

/* Estilos para las solicitudes pendientes */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
}

.request-info {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .friends-grid, .suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .friends-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #444;
    }
    
    .tab-button.active::after {
        display: none;
    }
}

/* Estilos para la foto de perfil en el header */
.user-header {
  position: absolute;
  top: 59.5px;
  right: 70px;
  z-index: 100;
}

.profile-pic-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #D50000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.profile-pic-container:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ajuste para el main-content cuando hay foto de perfil */
.main-content {
  position: relative;
  margin-left: 250px;
  padding: 20px;
  color: white;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.profile-pic[src=""]::before {
  content: "<?php echo substr($_SESSION['nombre'], 0, 1); ?>";
  font-size: 24px;
}

.popup-receta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-fondo {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.popup-contenido {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-imagen {
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.detalles-receta {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.oculto {
    display: none;
}
/* Barra de búsqueda */
.search-bar {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Grid de amigos */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Tarjetas de amigos */
.friend-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s;
}

.friend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.friend-avatar img {
    width: 100%;
    border-radius: 50%;
    max-width: 100px;
    display: block;
    margin: 0 auto 15px;
}

.friend-info h3 {
    margin: 0 0 5px;
    text-align: center;
}

.friend-info p {
    color: #666;
    text-align: center;
    margin: 0 0 15px;
}

/* Botones */
.btn-view-profile, 
.btn-remove-friend,
.btn-add-friend {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-view-profile {
    background-color: #2196F3;
    color: white;
}

.btn-remove-friend {
    background-color: #f44336;
    color: white;
}

.btn-add-friend {
    background-color: #4CAF50;
    color: white;
}

.no-friends {
    text-align: center;
    grid-column: 1 / -1;
    color: #666;
    padding: 20px;
}