/* === PANEL KLIENTA === */
.user-panel-container {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 2rem;
  margin: 5rem auto 3rem;
  max-width: 800px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-panel-container h1 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #18a0fb;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.user-panel-container .user-info {
  background: rgba(34, 4, 4, 0.915);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.user-panel-container .user-info p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.user-panel-container strong {
  color: #25c7e0;
}

.followed-shops {
  background: rgba(34,4,4,0.915);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.followed-shops h2 {
  color: #18a0fb;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.followed-shops ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.followed-shops li {
  background: rgba(255,255,255,0.05);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.followed-shops li:hover {
  background: rgba(255,255,255,0.1);
}

.followed-shops button {
  background-color: #ff4d4d;
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-left: 1rem;
}

.followed-shops button:hover {
  background-color: #e63939;
  transform: scale(1.05);
}

/* Styl pustej listy */
.followed-shops li:last-child:only-child {
  text-align: center;
  color: #ccc;
  font-style: italic;
  justify-content: center;
}

/* ========================================
   USER AUTHENTICATION PANEL
   ======================================== */

.user-info-panel {
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  max-width: 400px;
  margin-left: 1rem;
}

.user-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 11000;
}

.user-info-panel.active {
  transform: translateX(0);
}

.user-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Icon visible only on mobile */
.user-toggle {
  display: block;
}

@media (min-width: 768px) {
  .user-info-panel {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    transform: none;
    box-shadow: none;
  }
  .user-overlay {
    display: none;
  }

  .user-toggle {
    display: none;
  }
}

.user-info-panel .greetings {
  margin: 0;
  line-height: 1.4;
}

.user-info-panel strong {
  color: #18a0fb;
}

.logout-form {
  margin: 0;
}

/* Responsywność */
@media (max-width: 600px) {
  .user-panel-container {
    padding: 1.5rem;
    margin-top: 6rem;
  }
  .followed-shops li {
    flex-direction: column;
    gap: 0.8rem;
  }
  .followed-shops button {
    width: 100%;
  }

  .user-info-panel {
    flex-direction: column;
    align-items: flex-start;
    max-width: 90%;
    right: 0.5rem;
    left: 0.5rem;
  }

  .btn-logout {
    width: 100%;
    text-align: center;
  }
}