* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Google Sans', 'Inter', sans-serif;
  background-color: #131314;
  color: #e3e3e3;
  height: 100vh;
  overflow: hidden;
}

.gemini-app {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* Sidebar */
.gemini-sidebar {
  width: 280px;
  background: #1e1f20;
  display: flex;
  flex-direction: column;
  padding: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.gemini-sidebar.collapsed {
  transform: translateX(-280px);
  position: absolute;
}

/* Mobile Sidebar Backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
}
.sidebar-overlay.active { display: block; }

.sidebar-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.icon-btn-pill {
  background: transparent; border: none; color: #c4c7c5; font-size: 18px;
  cursor: pointer; padding: 8px 12px; border-radius: 50%; transition: all 0.2s ease;
}
.icon-btn-pill:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn-new-chat-pill {
  flex: 1; background: #282a2c; border: none; color: #e3e3e3; padding: 10px 16px;
  border-radius: 24px; font-weight: 500; font-size: 14px; cursor: pointer; text-align: left;
  transition: all 0.2s ease;
}
.btn-new-chat-pill:hover { background: #333538; }

.sidebar-chats-container { flex: 1; overflow-y: auto; }
.history-title { font-size: 11px; font-weight: 700; color: #8e918f; text-transform: uppercase; margin-bottom: 10px; }

.sidebar-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }

.menu-item-btn {
  width: 100%; background: transparent; border: none; color: #c4c7c5;
  font-size: 13px; font-weight: 500; padding: 10px; text-align: left;
  border-radius: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px; transition: all 0.2s ease;
}
.menu-item-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.user-account-box { padding-top: 8px; font-size: 13px; color: #a09cb2; }

/* Main Workspace */
.gemini-main {
  flex: 1; display: flex; flex-direction: column; height: 100vh; position: relative; background: #131314;
}

.gemini-header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }

.brand-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; }
.sparkle-icon {
  color: #7c3aed; font-size: 24px;
  animation: geminiSparkleGlow 3s infinite ease-in-out;
}
@keyframes geminiSparkleGlow {
  0%, 100% { filter: drop-shadow(0 0 4px #7c3aed); transform: scale(1); }
  50% { filter: drop-shadow(0 0 12px #06b6d4); transform: scale(1.15); }
}

.pro-tag { background: rgba(124,58,237,0.2); color: #a855f7; font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 700; }

/* Hero Greeting */
.gemini-hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: 800px; margin: 0 auto; padding: 40px 20px; text-align: center;
}
.gemini-hero.hidden { display: none; }

.hero-greeting { font-size: 44px; font-weight: 500; line-height: 1.2; margin-bottom: 40px; }
.gradient-text {
  background: linear-gradient(135deg, #4285f4, #9b51e0, #e91e63);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gemini-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; width: 100%; }
.gemini-card {
  background: #1e1f20; border-radius: 16px; padding: 18px; text-align: left; cursor: pointer; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.gemini-card:hover { background: #282a2c; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.card-icon { font-size: 24px; display: block; margin-bottom: 12px; }
.gemini-card p { font-size: 13px; color: #c4c7c5; line-height: 1.4; }

/* Messages Stream */
.messages-stream {
  flex: 1; overflow-y: auto; padding: 20px 22%; display: flex; flex-direction: column; gap: 24px; scroll-behavior: smooth;
}

.msg-row {
  display: flex; gap: 16px; max-width: 85%;
  animation: geminiSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.msg-row.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-row.assistant { align-self: flex-start; }

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

.msg-avatar-icon { font-size: 20px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.msg-bubble { background: #1e1f20; border-radius: 18px; padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.msg-row.user .msg-bubble { background: #282a2c; }

/* Google Gemini Shimmer Skeleton Image Loader */
.img-loading-shimmer {
  width: 100%;
  max-width: 500px;
  height: 340px;
  border-radius: 16px;
  background: linear-gradient(90deg, #1e1f20 25%, #333538 50%, #1e1f20 75%);
  background-size: 200% 100%;
  animation: geminiShimmer 1.5s infinite linear;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a09cb2;
  font-size: 13px;
}

@keyframes geminiShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.img-loaded-fade {
  animation: fadeInImg 0.4s ease forwards;
}

@keyframes fadeInImg {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Floating Search Bar Dock */
.gemini-dock { padding: 16px 22% 24px; background: transparent; position: relative; }

.attached-chip {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4); color: #06b6d4; padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.attached-chip.hidden { display: none !important; }

.chip-remove-btn { background: transparent; border: none; color: #06b6d4; cursor: pointer; font-weight: bold; font-size: 12px; }
.chip-remove-btn:hover { color: #fff; }

.input-pill-container {
  background: #1e1f20; border-radius: 28px; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.06); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-pill-container:focus-within { border-color: rgba(255,255,255,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

.dock-input-row { display: flex; align-items: center; gap: 10px; }

.dock-action-btn {
  background: transparent; border: none; color: #c4c7c5; font-size: 16px; cursor: pointer; padding: 8px 12px; border-radius: 20px; display: flex; align-items: center; gap: 6px; transition: background 0.2s ease;
}
.dock-action-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dock-action-btn.active { background: rgba(6,182,212,0.2); color: #06b6d4; }
.websearch-text { font-size: 12px; font-weight: 600; }

textarea {
  flex: 1; background: transparent; border: none; color: #fff; font-family: inherit; font-size: 15px; outline: none; resize: none; max-height: 120px; padding: 8px 0;
}

.btn-send-pill {
  background: #e3e3e3; color: #131314; border: none; width: 38px; height: 38px; border-radius: 50%; font-weight: bold; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.btn-send-pill:hover { background: #fff; transform: scale(1.08); }

.dock-disclaimer { text-align: center; font-size: 11px; color: #8e918f; margin-top: 10px; }

/* Modals */
.modal-backdrop {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-backdrop.hidden { display: none !important; }
.glass-card { background: #1e1f20; border-radius: 24px; padding: 28px; border: 1px solid rgba(255,255,255,0.1); width: 90%; max-width: 440px; }
.modal-card-wide { max-width: 700px; }

.pricing-packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.pack-card { background: #282a2c; border-radius: 16px; padding: 16px; text-align: center; position: relative; }
.pack-name { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pack-price { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.pack-price span { font-size: 12px; color: #a09cb2; font-weight: 400; }

.infinity-card { border: 1px solid #22c55e; box-shadow: 0 4px 20px rgba(34,197,94,0.2); }
.pack-badge { font-size: 10px; font-weight: 800; color: #22c55e; margin-bottom: 6px; }
.btn-glow-infinity { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border: none; padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: #a09cb2; margin-bottom: 4px; }
.input-field { width: 100%; background: #131314; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 14px; color: #fff; outline: none; }
.btn { border: none; padding: 12px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-glow { background: #4285f4; color: #fff; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline-sm { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.hidden-file-input { display: none; }
.copy-input-row { display: flex; gap: 8px; }
pre.code-block { background: #131314; padding: 10px; border-radius: 8px; color: #38bdf8; font-family: 'Fira Code', monospace; font-size: 11px; overflow-x: auto; }

/* 📱 MOBILE RESPONSIVE ADAPTATIONS (iPhones, Android, Tablets) */
@media (max-width: 768px) {
  .gemini-sidebar {
    position: fixed;
    top: 0; left: 0; height: 100vh;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.6);
  }
  .gemini-sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  .messages-stream {
    padding: 16px 12px;
  }
  .msg-row {
    max-width: 95%;
  }
  .gemini-dock {
    padding: 10px 12px 16px;
  }
  .hero-greeting {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .gemini-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .gemini-card {
    padding: 14px;
  }
  .websearch-text {
    display: none;
  }
}
/* Sleek Google Gemini Action Buttons */
.gemini-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gemini-action-btn {
  background: transparent !important;
  border: none !important;
  color: #c4c7c5 !important;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  padding: 0 !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
  outline: none !important;
}

.gemini-action-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  transform: scale(1.08);
}