/* --- Widget Styles --- */
  #myphoto-widget-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
      font-family: Arial, sans-serif;
  }
  
  .floating-btn {
      background-color: #0056b3;
      color: white;
      border: none;
      border-radius: 50px;
      padding: 14px 28px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 18px;
      font-weight: bold;
      transition: transform 0.2s, background 0.3s;
  }
  
  .floating-btn:hover {
      transform: scale(1.05);
      background-color: #004494;
  }
  
  .btn-icon { font-size: 24px; }
  
  /* --- Chat Window --- */
  .chat-window {
      position: absolute;
      bottom: 80px;
      right: 0;
      width: 380px;
      height: 600px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 5px 25px rgba(0,0,0,0.3);
      display: none;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid #e0e0e0;
  }
  
  @media (max-width: 480px) {
      .chat-window {
          width: 95vw;
          right: -10px;
          height: 80vh;
      }
  }
  
  .chat-header {
      background: #0056b3;
      color: white;
      padding: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
      font-size: 1.1rem;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .header-actions { display: flex; gap: 15px; }

  .header-btn {
      background: none;
      border: none;
      color: white;
      font-size: 1.2rem;
      cursor: pointer;
      opacity: 0.9;
  }
  
  .header-btn:hover { opacity: 1; }

  .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 15px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      background-color: #f0f2f5;
      scroll-behavior: smooth;
  }
  
  .message {
      padding: 14px 18px;
      border-radius: 12px;
      max-width: 90%;
      line-height: 1.6;
      font-size: 1.1rem;
      font-weight: 500;
      color: #111;
      word-wrap: break-word;
      transition: all 0.5s ease;
  }
  
  .message b, .message strong {
      font-weight: 800;
      color: #000;
      text-decoration: underline;
      text-decoration-color: #0056b3;
  }

  .message.history {
      opacity: 0.4;
      filter: grayscale(100%);
  }
  .message.history:hover,
  .message.history:active {
      opacity: 1;
      filter: none;
  }
  
  .bot-msg {
      background: #ffffff;
      align-self: flex-start;
      border: 1px solid #ccc;
      border-bottom-left-radius: 2px;
  }
  
  .user-msg {
      background: #0056b3;
      color: white !important;
      align-self: flex-end;
      border-bottom-right-radius: 2px;
  }
  
  .user-msg b { color: white; text-decoration: none; }

  .chat-controls {
      padding: 15px;
      background: white;
      border-top: 1px solid #eee;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      min-height: 70px;
  }
  
  .chat-btn {
      background: white;
      border: 2px solid #0056b3;
      color: #0056b3;
      padding: 12px 20px;
      border-radius: 25px;
      cursor: pointer;
      font-size: 1.05rem;
      font-weight: 700;
      transition: all 0.2s;
  }
  
  .chat-btn:hover {
      background: #0056b3;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(0,86,179,0.3);
  }

  /* --- Lightbox --- */
  #image-modal-overlay {
      display: none;
      position: fixed;
      z-index: 10000;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.95);
      justify-content: center;
      align-items: center;
  }

  .modal-content-img {
      max-width: 95%;
      max-height: 90%;
      border-radius: 4px;
      box-shadow: 0 0 20px rgba(255,255,255,0.2);
      animation: zoomIn 0.3s;
  }

  .modal-close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      color: white;
      font-size: 3.5rem;
      background: none;
      border: none;
      cursor: pointer;
      padding: 15px;
      font-weight: bold;
      line-height: 1;
  }

  @keyframes zoomIn {
      from {transform: scale(0.9); opacity: 0;}
      to {transform: scale(1); opacity: 1;}
  }