* {
  box-sizing: border-box;
}



body {
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;

}

#dropZone{
  margin:14px auto;
  padding:14px 20px;
  border:2px dashed #cbd5e1;
  border-radius:8px;
  text-align:center;
  font-size:13px;
  color:#64748b;
  max-width:420px;
  cursor:pointer;
  transition:all 0.2s ease;
}

#dropZone:hover{
  border-color:#3b82f6;
  background:#f8fafc;
}
/* 
#dropZone{
  padding:16px 24px;
} */

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}




header h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.room-box {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: "Times New Roman", Times, serif;
  color: #4a4a4a;
}

.room-box input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  width: 170px;
  text-transform: lowercase;
}


.room-box button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 13px;
  cursor: pointer;
}

.secondary {
  background: #e5e7eb;
  color: #0f172a;
}

main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.editor {
  height: 300px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  border-radius: 22px !important;
  

  resize: none;
  outline: none;
}

footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actions {
  display: flex;
  gap: 10px;
}

.actions button,
.file-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
  font-size: 13px;
}

.actions button.primary {
  background: #2563eb;
  color: white;
  border: none;
}

.file-btn:hover {
  background: #d7e1eb;
}

header,
main,
footer {
  width: 100%;
}

header {
  flex-shrink: 0;
}

footer {
  flex-shrink: 0;
}

.file-container {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.file-heading {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  padding-bottom: 10px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.status {
  font-size: 12px;
  color: #64748b;
}

.app-footer {
  background: #f1f5f9;
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* QR MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  padding: 26px 30px;
  border-radius: 14px;
  text-align: center;
  width: 320px;
}

.qr-wrapper {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.close-btn {
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.copypaste:hover {
  background: #eaecf0;
}

.app-logo1 {
  height: 47px;
  width: auto;
  object-fit: contain;
  display: block;
  outline: none;
  
  
}

.app-title {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -2px;
  margin: 0;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  background: linear-gradient(
    to right,
    #d4006a,
    /* pink */ #8b1fa9,
    /* purple */ #5b2dde,
    /* violet */ #3a6bff,
    /* blue */ #8b1fa9 /* purple */
  );
  font-family: "Sora", sans-serif;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.file-container {
  max-height: 220px;
  overflow-y: auto;

  border-radius: 10px;
  padding: 2px;
}

.file-container::-webkit-scrollbar {
  width: 6px;
}

.file-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#fileList {
  padding: 0;
  margin: 0;
}

#fileList li {
  list-style: none;
  margin-bottom: 8px;
}

/* Row layout */
/* .file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: background 0.2s ease;
} */

.file-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}



.file-row:hover {
  background: #f8fafc;
}

/* File left section */
/* .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
} */

.file-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;              /* takes full available space */
  min-width: 0;         /* allows ellipsis */
}

/* Icon */
.file-icon {
  font-size: 16px;
}

/* File name */
/* .file-name {
  text-decoration: none;
  color: #2563eb;
  font-size: 13px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} */

.file-name {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
}



.file-name:hover {
  text-decoration: underline;
}

/* File size */
/* .file-size {
  font-size: 12px;
  color: #94a3b8;
} */


.file-size {
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

/* Right side buttons */
/* .file-actions {
  display: flex;
  gap: 8px;
} */

.file-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.view-btn {
  border: none;
  background: none;
  color: #556479;;
  font-size: 13px;
  cursor: pointer;
}

.view-btn:hover {
  text-decoration: underline;
  color: #2563eb;;
}

.delete-btn {
  border: none;
  background: none;
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
}

.delete-btn:hover {
  opacity: 0.8;
}

button:focus {
  outline: none;
}

/* ===== CLEAN CLICK FEEL BUTTON ===== */

button,
.file-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: white;
  font-size: 13px;
  cursor: pointer;

  transition: transform 0.08s ease-in-out;
}

/* Primary button */
button.primary {
  background: #2563eb;
  color: white;
  border: none;
}

/* Only press effect */
button:active,
.file-btn:active {
  transform: scale(0.97);
}

/* Remove default black focus outline */
button:focus {
  outline: none;
}

/* ================= MODERN MOBILE VIEW ================= */
/* ================= MODERN MOBILE VIEW ================= */
@media (max-width: 768px) {
  input, textarea, select{
    font-size: 16px !important;
  }
  html, body {
    height: 100% !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    overflow-x: hidden !important;
  }

 /* Header row layout on mobile */
header {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 16px !important;
  padding-top: max(14px, env(safe-area-inset-top)) !important;
  flex-wrap: wrap !important;
}

#heading-title {
  justify-content: flex-start !important;
  margin: 0 !important;
}


 #aiChatPanel {
    top: 0 !important;
    left: unset !important;
    right: -100% !important;

    transform: none !important;   /* 🔥 critical */
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;

    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;

    opacity: 1 !important;        /* 🔥 critical */
    pointer-events: all !important; /* 🔥 critical */

    transition: right 0.3s ease !important;
  }

  #aiChatPanel.mobile-open {
    right: 0 !important;
  }

  #aiChatOverlay {
    display: none !important;
  }

.app-logo1 {
  height: 36px !important;
  margin-top: 0 !important;
}

/* Show hamburger on mobile */
#menuBtn {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.menu-bar {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  display: block;
}
/* This extends the white background behind the status bar */
body {
  background: #ffffff !important;
}

  .app-logo1 {
    height: 45px !important;
    margin-top: 0;
  }

  header {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    padding-top: max(18px, env(safe-area-inset-top)) !important;
    padding-bottom: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 14px;
  }

  .app-title {
    font-size: 28px;
  }

  .room-box {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .room-box input {
    width: 100%;
  }

  .room-box button {
    width: 100%;
  }

  main {
    width: 100%;
    padding: 16px;
    gap: 16px;
  }

  .editor {
    height: 220px;
    width: 100%;
  }

  .file-container {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 6px !important;
  }

  .file-container::-webkit-scrollbar {
    width: 6px;
  }

  .file-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }

  .file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px !important;
    border-radius: 10px;
  }

  .file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .file-name {
    display: block;
    max-width: 80px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .file-size {
    display: none !important;
  }

  .file-actions {
    display: flex;
    align-items: center;
    gap: 6px !important;
    flex-shrink: 0;
  }

  .view-btn {
    font-size: 11px !important;
    padding: 4px 6px !important;
  }

  .ask-ai-btn {
    font-size: 11px !important;
    padding: 4px 8px !important;
    white-space: nowrap;
  }

  footer {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 16px;
  }

  .actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .actions button,
  .file-btn {
    flex: 1 1 45%;
  }

  .status {
    width: 100%;
  }

  .app-footer {
    font-size: 11px !important;
    padding-top: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  /* ===================== */
  /* CHAT PANEL MOBILE     */
  /* ===================== */

  

 #aiChatPanel {
  width: 100% !important;
  height: 100% !important;
  box-shadow: none !important;
  border-left: none !important;
}

  #aiMessages {
    padding: 12px !important;
  }

  .chat-bubble {
    max-width: 85% !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
  }

  .avatar {
    width: 24px !important;
    height: 24px !important;
  }

  .avatar img {
    width: 20px !important;
    height: 20px !important;
  }

  .msg-label {
    font-size: 10px !important;
  }



}

/* ===================== */
/* OUTSIDE MEDIA QUERY   */
/* ===================== */
#heading-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
}

.tagline {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 500;
  color: #050505;
}

/* ===================== */
/* HAMBURGER MENU        */
/* ===================== */

#menuBtn {
  display: none;
}

#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99998;
  display: none;
}

#mobileMenu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  border-left: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  padding: 70px 24px 24px;
  gap: 0;
}

#mobileMenu::before {
  content: 'Menu';
  position: absolute;
  top: 28px;
  left: 24px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
}

#menuCloseBtn {
  position: absolute !important;
  top: 20px !important;
  right: 16px !important;
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  cursor: pointer !important;
  color: #666 !important;
  box-shadow: none !important;
  padding: 4px !important;
}

#mobileMenu a {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#mobileMenu a:last-child {
  border-bottom: none;
}

#mobileMenu a::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  display: block;
}

#mobileMenu a:hover {
  color: #2563eb;
  padding-left: 6px;
  transition: all 0.2s ease;
}

/* ===============================
   CLEAN BUTTON + SHADOW POLISH
   (No layout changes)
================================= */

/* Smooth button animation */
button,
.file-btn {
  transition: all 0.2s ease !important;
  border-radius: 10px !important;
}

/* Top buttons (Create / Share / QR) */
.room-box button {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
}

/* Save button same premium style */
.actions .primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
}

/* Soft hover lift */
button:hover,
.file-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

/* Click press effect */
button:active,
.file-btn:active {
  transform: scale(0.97);
}

/* Add soft card shadow to textarea */
.editor {
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06) !important;
}

/* Soft card feel for file container */
.file-container {
  box-shadow: 0 6px 25px rgba(15, 23, 42, 0.05) !important;
}


/* ===============================
   ROOM CODE INPUT PREMIUM STYLE
================================= */

.room-box input {
  background: #ffffff !important;
  border: 1px solid #dbe2ea !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  transition: all 0.25s ease !important;

  /* subtle depth */
  box-shadow: 
    inset 0 1px 2px rgba(15, 23, 42, 0.05),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Focus effect */
.room-box input:focus {
  border-color: #2563eb !important;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.15),
    0 4px 12px rgba(37, 99, 235, 0.10);
  outline: none !important;
}

/* Placeholder softer */
.room-box input::placeholder {
  color: #94a3b8;
}


.editor {
  height: 250px !important;
}









.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.download-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px; /* slightly bigger */

  font-size: 13px;
  font-weight: 600;
  font-family: Inter, sans-serif;

  color: #111;
  background: #fff;

  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;

  background-image: 
    linear-gradient(#fff, #fff),
    linear-gradient(
      90deg,
      #ff00f7,
      #8600f4,
      #0463fc,
      #ffffff,   /* 👈 highlight */
      #ff00f7
    );

  background-origin: border-box;
  background-clip: padding-box, border-box;

  background-size: 100% 100%, 400% 400%; /* bigger for visible movement */

  transition: all 0.25s ease;
}


.ai-btn:hover {
  animation: gradientMove 1.4s linear infinite; /* faster = visible */
  transform: translateY(-0.8px) ;
  box-shadow: 0 8px 20px rgba(190, 111, 255, 0.35);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%, 0% 50%;
  }
  100% {
    background-position: 0% 50%, 120% 50%;
  }
}


.ai-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

/* .ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;

  font-size: 13px;
  font-weight: 600;
  font-family: Inter, sans-serif;

  color: #111;
  background: #fff;

  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;


  background-image: 
    linear-gradient(#fff, #fff),
    linear-gradient(90deg, #ff00f7, #8600f4, #0463fc, #ff00f7);

  background-origin: border-box;
  background-clip: padding-box, border-box;

  background-size: 100% 100%, 300% 300%;

  transition: all 0.25s ease;
}

.ai-btn:hover {
  animation: gradientMove 2s linear infinite;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(142, 4, 255, 0.25);
}


@keyframes gradientMove {
  0% {
    background-position: 0% 50%, 0% 50%;
  }
  100% {
    background-position: 0% 50%, 100% 50%;
  }
}


.ai-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
} */





/* ── DROPTEXT LOGO ── */
/* .dt-logo {
  display: flex;
  align-items: center;
  gap: 20px;
 
  padding: 20px 36px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* Bottom blue line like in image */
/* .dt-logo::after {
  display: none;
} */

/* Glow behind icon */
/* .dt-logo::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
  pointer-events: none;
} */

/* 
.dt-logo::before {
  display: none;
} */

/* Icon box */
/* .dt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 60%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
 
}

.dt-icon svg {
  width: 46px;
  height: 46px;
} */

/* Text */
/* .dt-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1;

}

.dt-wordmark {
  font-family: 'Syne', sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;

   letter-spacing: -1px; 
}


 

 
/* put anywhere in main CSS (NOT inside @media) */
body.chat-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

#aiMessages {
  overscroll-behavior: contain;
}

#aiInput::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

#aiInput {
  transition: height 0.15s ease;
}


.chat-bubble {
  white-space: pre-wrap;
}


.mic-wave {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid #ff4d4f;
  opacity: 0;
}

.mic-active .mic-wave {
  animation: wavePulse 1.2s infinite;
}

@keyframes wavePulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}



/* .chat-bubble.user {
  background: #e8f0ff;  
} */


button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


