@charset "UTF-8";
/*



 */
/* OVERLAY */
.flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999; }

/* CARD */
.flash-card {
  padding: 18px 26px;
  border-radius: 16px;
  min-width: 320px;
  max-width: 520px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px); }

/* VARIANTI */
.flash-success {
  background: rgba(40, 167, 69, 0.92);
  color: white; }

.flash-error {
  background: rgba(220, 53, 69, 0.92);
  color: white; }

.flash-warning {
  background: rgba(255, 193, 7, 0.92);
  color: #333; }

.flash-info {
  background: rgba(75, 0, 130, 0.92);
  color: white; }

/* ANIMAZIONE */
.animate-flash {
  animation: flashFadeIn 0.5s ease both; }

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

/* =========================
   AUTH PAGES (LOGIN + SIGNUP)
   ========================= */
.auth-hero {
  min-height: calc(100vh - 96px);
  background: linear-gradient(rgba(75, 0, 130, 0.75), rgba(75, 0, 130, 0.75)), url(/assets/hero_salad-d4ab2f0db95ef323cd336357eb7a5cfb2586d3152c610a81a7d8470b9deeae3e.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px; }

/* CARD */
.auth-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  padding: 40px 45px;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  width: 100%; }

/* TITLE */
.auth-title {
  font-weight: 700;
  color: #4B0082;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem; }

/* INPUT */
.auth-input {
  border: 2px solid #e8e2f3;
  padding: 10px 14px;
  border-radius: 10px; }

.auth-input:focus {
  border-color: #4B0082;
  box-shadow: 0 0 8px rgba(75, 0, 130, 0.25); }

/* BUTTON AUTH (FIX VISIBILITÀ) */
.auth-btn {
  background-color: #4B0082 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 16px;
  width: 100%;
  box-shadow: 0 5px 18px rgba(75, 0, 130, 0.35);
  transition: all 0.25s ease; }

.auth-btn:hover {
  background-color: #3a0066 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(75, 0, 130, 0.45); }

/* LINK */
.auth-link {
  color: #4B0082;
  font-weight: 600; }

.auth-link:hover {
  text-decoration: underline; }
/* --- CARD VERSIONE PRO --- */

.card-pro {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    background: white;
    border: 2px solid transparent;
  }
  
  /* Glow pulsante */
  .card-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 120%, rgba(75,0,130,0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
  }
  
  /* Effetto hover principale */
  .card-pro:hover {
    transform: translateY(-55px) scale(1.22) rotateX(14deg) rotateY(-14deg);
    box-shadow:
      0 55px 85px rgba(0, 0, 0, 0.45),
      0 0 65px rgba(75, 0, 130, 0.85),
      0 0 95px rgba(138, 43, 226, 0.45);
    border-color: #4B0082;
    filter: brightness(1.18);
  }
  
  
  .card-pro:hover::before {
    opacity: 1;
  }
  
  /* Effetto zoom immagine */
  .card-pro img {
    transition: transform 0.6s ease, opacity 0.6s ease;
  }
  
  .card-pro:hover img {
    transform: scale(1.12);
    opacity: 0.9;
  }
  
  /* Testo */
  .card-pro .card-title {
    transition: color 0.45s ease;
  }
  
  .card-pro:hover .card-title {
    color: #4B0082;
  }
  
  /* Pulsante */
  .card-pro .btn {
    transition: all 0.45s ease;
  }
  
  .card-pro:hover .btn {
    background-color: #4B0082;
    color: white;
    transform: scale(1.08);
  }
  
  /* --- Ripple effect al click --- */
  .card-pro:active {
    transform: scale(0.97);
  }
  
  .card-pro:active::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(75, 0, 130, 0.35);
    border-radius: 50%;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%) scale(1);
    animation: ripple 0.6s ease-out forwards;
  }
  
  @keyframes ripple {
    from { transform: translate(-50%, -50%) scale(0); opacity: 0.9; }
    to   { transform: translate(-50%, -50%) scale(12); opacity: 0; }
  }
  .card-god {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                filter 0.35s ease,
                border-color 0.35s ease;
    transform-style: preserve-3d;
    will-change: transform;
  }
  
  .card-god {
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    will-change: transform;
  }
  
  .card-god:hover {
    transform: translateY(-25px) scale(1.07);   /* sollevamento leggero ed elegante */
  
    box-shadow:
      0 18px 35px rgba(0, 0, 0, 0.18),         /* ombra morbida */
      0 8px 18px rgba(75, 0, 130, 0.15);       /* leggero accento viola */
  
    filter: brightness(1.08);
    border-radius: 14px;                       /* dà un feeling più premium */
  }
  
  .footer-link {
    color: #ffffffd4;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-link:hover {
    color: #ffffff;
  }
  
  .footer-social {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  
  .footer-social:hover {
    transform: scale(1.2);
    color: #e0e0e0;
  }
  
  /* Distanza orizzontale tra le card */
  .card-spacing {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
  
  /* Per evitare overflow della row */
  .row {
    margin-left: -20px;
    margin-right: -20px;
  }
  
  
  /* 🎮 GOD MODE HOVER – con sollevamento senza rotazione */
  .card-god {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
    transform-origin: center;
  }
  
  .card-god:hover {
    transform: translateY(-22px) scale(1.12);   /* più alto e più grande */
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.35); /* ombra molto potente */
  }
  
.section-title {
  margin-top: 30px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #4a4a4a; }

.timeline-entry {
  border-left: 3px solid #0d6efd;
  padding-left: 10px; }

.timeline-entry .btn {
  font-size: 0.8rem; }

.client-header {
  background: linear-gradient(135deg, #f7f9fc, #ffffff);
  border-left: 6px solid #6a1b9a; }

.client-avatar {
  font-size: 48px;
  color: #6a1b9a; }

/* FORM NUOVA NOTA */
.note-form {
  background: #f9f7fb;
  border-left: 5px solid #6a1b9a; }

.note-form textarea {
  font-size: 0.95rem; }

/* ========== ADD NOTE ========== */
.clinical-add-note {
  background: #f8f6fb;
  border-left: 5px solid #6a1b9a;
  padding: 15px 18px;
  margin-bottom: 30px; }

.clinical-add-note h6 {
  margin-bottom: 10px;
  font-weight: 600; }

.clinical-textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 0.95rem;
  resize: vertical; }

.clinical-actions {
  text-align: right;
  margin-top: 8px; }

/* ========== TIMELINE ========== */
.clinical-timeline {
  position: relative;
  margin-left: 20px; }

.clinical-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #6a1b9a; }

.clinical-entry {
  display: flex;
  position: relative;
  margin-bottom: 25px; }

.clinical-dot {
  width: 14px;
  height: 14px;
  background: #6a1b9a;
  border-radius: 50%;
  position: relative;
  left: -1px;
  margin-top: 6px;
  flex-shrink: 0; }

.clinical-content {
  margin-left: 15px;
  background: #ffffff;
  padding: 12px 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 100%; }

.clinical-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 6px; }

.clinical-author {
  font-weight: 600; }

.clinical-delete {
  margin-left: auto;
  font-size: 0.75rem;
  color: #c62828;
  text-decoration: none; }

.clinical-delete:hover {
  text-decoration: underline; }

.clinical-text {
  font-size: 0.95rem;
  line-height: 1.5; }

/* ================= CLIENT HEADER ================= */
.client-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f8f6fb, #ffffff);
  padding: 15px 20px;
  border-left: 5px solid #6a1b9a;
  border-radius: 4px; }

.client-icon {
  font-size: 36px;
  color: #6a1b9a; }

/* ================= SECTION TITLES ================= */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 35px 0 15px;
  font-weight: 600;
  color: #333; }

/* ================= ADD NOTE ================= */
.clinical-add-note {
  background: #f8f6fb;
  border-left: 5px solid #6a1b9a;
  padding: 15px 18px;
  margin-bottom: 30px; }

.clinical-add-note h6 {
  margin-bottom: 8px;
  font-weight: 600; }

.clinical-textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 0.95rem;
  resize: vertical; }

.clinical-actions {
  text-align: right;
  margin-top: 8px; }

/* ================= TIMELINE ================= */
.clinical-timeline {
  position: relative;
  margin-left: 20px; }

.clinical-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #6a1b9a; }

.clinical-entry {
  display: flex;
  position: relative;
  margin-bottom: 25px; }

.clinical-dot {
  width: 14px;
  height: 14px;
  background: #6a1b9a;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0; }

.clinical-content {
  margin-left: 15px;
  background: #ffffff;
  padding: 12px 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 100%; }

.clinical-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 6px; }

.clinical-author {
  font-weight: 600; }

.clinical-delete {
  margin-left: auto;
  font-size: 0.75rem;
  color: #c62828;
  text-decoration: none;
  opacity: 0.7; }

.clinical-delete:hover {
  opacity: 1;
  text-decoration: underline; }

.clinical-text {
  font-size: 0.95rem;
  line-height: 1.5; }

.inline-delete-form {
  display: inline; }

.inline-delete-form button {
  background: none;
  border: none;
  padding: 0;
  color: #c62828;
  cursor: pointer;
  font-size: 0.75rem; }

.inline-delete-form button:hover {
  text-decoration: underline; }

.modal {
  border-radius: 6px; }

.modal h5 {
  margin-bottom: 10px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px; }
/* =========================
   AUTH PAGES (LOGIN + SIGNUP)
   ========================= */
html, body {
  height: 100%; }

.auth-hero {
  min-height: calc(100vh - 96px);
  background: linear-gradient(rgba(75, 0, 130, 0.75), rgba(75, 0, 130, 0.75)), url(/assets/hero_salad-d4ab2f0db95ef323cd336357eb7a5cfb2586d3152c610a81a7d8470b9deeae3e.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px; }

/* CARD */
.auth-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  padding: 40px 45px;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  width: 100%; }

/* TITLE */
.auth-title {
  font-weight: 700;
  color: #4B0082;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem; }

/* INPUT */
.auth-input {
  border: 2px solid #e8e2f3;
  padding: 10px 14px;
  border-radius: 10px; }

.auth-input:focus {
  border-color: #4B0082;
  box-shadow: 0 0 8px rgba(75, 0, 130, 0.25); }

/* BUTTON */
.auth-btn {
  background: #4B0082;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  width: 100%; }

/* LINK */
.auth-link {
  color: #4B0082;
  font-weight: 600; }

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