/* Modern visual refresh for GG AI Studio. Kept in website.css so it layers on top of the existing app styles. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #20231f;
  --muted: #73786f;
  --lime: #d8f36a;
  --lime-strong: #c8e94e;
  --paper: #f7f8f4;
  --surface: #fff;
  --border: #e7e9e2;
  --soft-shadow: 0 12px 36px rgba(34, 39, 28, .07);
  --deep-shadow: 0 24px 70px rgba(34, 39, 28, .12);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 75% -15%, rgba(216,243,106,.17), transparent 38%), var(--paper);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(151, 185, 49, .62); outline-offset: 3px; }
.hidden, [hidden] { display: none !important; }

/* Workspace frame */
#workspace-sidebar, .sidebar {
  background: rgba(255,255,255,.9) !important;
  border-right: 1px solid var(--border) !important;
  box-shadow: 8px 0 32px rgba(29,35,22,.025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { padding-top: 24px; }
.logo {
  font-family: 'Manrope', sans-serif !important;
  letter-spacing: -.075em;
  font-weight: 800 !important;
}
.logo-tagline { color: var(--muted) !important; letter-spacing: .13em; }
.sidebar a, .sidebar button { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.sidebar a:hover, .sidebar button:hover { transform: translateX(2px); }
.main { min-width: 0; }
.view { animation: view-arrive .32s ease both; }
@keyframes view-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Typography and page hierarchy */
h1, h2, h3, .workspace-heading, .eyebrow {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  letter-spacing: -.04em;
}
.workspace-heading { font-weight: 700; }
.view > h1, .view > h2 { color: var(--ink); letter-spacing: -.055em; }
.eyebrow { color: #777e6e; font-weight: 700; letter-spacing: .12em; }
.section-desc { color: var(--muted); line-height: 1.7; }
#desktop-store-announcement {
  border: 1px solid rgba(197,224,94,.38);
  background: rgba(216,243,106,.22);
  color: #555d3c;
  border-radius: 999px;
  letter-spacing: .1em;
}

/* Cards, panels and interactive surfaces */
:where(.card, .panel, .plan-card, .content-card, .tool-card, .contact-card, .library-card, .feature-card) {
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 8px 26px rgba(34,39,28,.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
:where(.card, .panel, .plan-card, .content-card, .tool-card, .contact-card, .library-card, .feature-card):hover {
  border-color: #d7ddc9 !important;
  box-shadow: var(--soft-shadow);
}
button, .button, [role="button"] {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
button:hover, .button:hover { transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }

/* Inputs and chat composer */
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  border-color: #e1e4dc;
  border-radius: 14px;
  background-color: #fff;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: #b6d84e !important;
  box-shadow: 0 0 0 4px rgba(216,243,106,.2) !important;
  outline: 0;
}
textarea { line-height: 1.6; }
#chat {
  min-height: 0;
}
#chat :where(textarea, input[type="text"]) { border-radius: 18px; }
#chat :where(.composer, .chat-input, .input-wrap) {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 34px rgba(34,39,28,.075);
}

/* Dialog and floating surfaces */
dialog, [role="dialog"] {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 24px;
  box-shadow: var(--deep-shadow);
}
dialog::backdrop { background: rgba(24,28,21,.42); backdrop-filter: blur(5px); }

@media (max-width: 760px) {
  body { background: var(--paper); }
  #workspace-sidebar, .sidebar { box-shadow: 0 -8px 28px rgba(29,35,22,.06); }
  .view { animation-duration: .22s; }
  :where(.card, .panel, .plan-card, .content-card, .tool-card, .contact-card, .library-card, .feature-card) { border-radius: 17px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
