body {
  background: #011627;
  color: #285092;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  margin: 0;
  min-height: 100vh;
}

h1 {
  color: #82aaff;
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1.5em;
  font-size: 2em;
  font-weight: 600;
}

#notesList {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.8em 2.7em 1.8em;
}

/* Card/response block design */
.ai-response-block {
  background: #18213a;
  color: #ffffff;
  border-radius: 11px;
  box-shadow: 0 6px 32px 0 #157bff15, 0 0.8px 3.5px #3451d61e;
  margin-bottom: 2.3em;
  padding: 1.3em 2em 1em 2em;
  position: relative;
  font-size: 1.09em;
  transition: box-shadow 0.18s;
}

.ai-response-block:hover {
  box-shadow: 0 14px 38px 6px #3359ff34, 0 1.5px 12px #3451d628;
}

.response-date {
  color: #7ed4fb;
  font-size: 0.97em;
  margin-bottom: 0.3em;
  font-weight: 400;
  letter-spacing: .015em;
}

.delete-btn {
  position: absolute;
  top: 16px;
  right: 21px;
  background: #ffd7d7;
  border: none;
  border-radius: 4px;
  color: #c42d2d;
  font-size: 0.97em;
  padding: 4px 14px 4px 10px;
  cursor: pointer;
  font-weight: 600;
  opacity: 0.78;
  transition: background 0.13s, color 0.13s, opacity 0.12s;
  z-index: 3;
}
.delete-btn:hover,
.delete-btn:focus {
  background: #ffb0b0;
  color: #fff;
  opacity: 1;
}

/* Main response inside card */
.ai-response-block > div {
  background: #19263a;
  color: #eaeaea;
  border-radius: 9px;
  padding: 1.18em 1.2em 0.9em 1.15em;
  margin-top: 0.2em;
  font-size: 1.03em;
  line-height: 1.7;
  box-shadow: 0 1px 8px #2222;
  white-space: pre-line;
  font-family: 'Fira Code', monospace;
}

/* Headings and bolds */
.ai-response-block strong {
  color: #ffe082;
  font-weight: 700;
}

.ai-response-block ul {
  list-style: none;
  margin: 1.1em 0 1.1em 0.8em;
  padding-left: 0;
}
.ai-response-block ul li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.38em;
  font-size: 1em;
  line-height: 1.55;
  background: transparent;
  border-radius: 6px;
  transition: background 0.15s;
}
.ai-response-block ul li::before {
  content: '➔';
  position: absolute;
  left: 0.2em;
  top: 0.08em;
  font-size: 1.14em;
  color: #38bdf8;
  font-family: inherit;
  font-weight: bold;
  transition: color 0.2s;
}
.ai-response-block ul li:hover::before {
  color: #fbbe24;
}
.ai-response-block ul li:hover {
  background: rgba(56,189,248, 0.07);
  border-radius: 5px;
}

/* Inline code */




/* Gemini bubble alignment (matches chat) */
.gemini-response {
  background: #19263a;
  color: #eaeaea;
  font-family: inherit;
  font-size: 1.03em;
  line-height: 1.7;
  padding: 0;
  border-radius: 9px;
  box-shadow: none;
  white-space: pre-line;
}

/* Lists and bullets inside gemini-response */
.gemini-response ul {
  list-style: none;
  margin: 1.1em 0 1.2em 1em;
  padding-left: 0;
}
.gemini-response ul li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.4em;
  font-size: 1em;
  background: transparent;
  line-height: 1.55;
  border-radius: 6px;
  transition: background 0.13s;
}
.gemini-response ul li::before {
  content: '➔';
  position: absolute;
  left: 0.2em;
  top: 0.08em;
  font-size: 1.14em;
  color: #38bdf8;
  font-family: inherit;
  font-weight: bold;
  transition: color 0.2s;
}
.gemini-response ul li:hover::before {
  color: #fbbe24;
}
.gemini-response ul li:hover {
  background: rgba(56,189,248, 0.07);
}

/* Empty state for no notes */
.empty-notes {
  color: #91aacb;
  text-align: center;
  margin: 4.5em auto 2em auto;
  font-size: 1.17em;
  font-style: italic;
  letter-spacing: 0.06em;
}

#backBtn, .back-btn {
  display: block;
  margin: 3em auto 1.4em auto;
  background: #192741;
  color: #31bdfe;
  border: none;
  border-radius: 6px;
  padding: 10px 21px 9px 17px;
  font-size: 1.07em;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 10px #24304b12;
  transition: background 0.15s, color 0.12s;
  text-align: center;
}
#backBtn:hover, .back-btn:hover, #backBtn:focus, .back-btn:focus {
  background: #233b56;
  color: #ffdf6b;
}

@media (max-width: 600px) {
  #notesList { padding: 0 0.7em 2em 0.7em; }
  .ai-response-block { padding: 0.85em 0.5em 0.72em 0.8em; }
  h1 { font-size: 1.16em; margin-top: 1em; }
}
/* Make inline code pop */


/* Code blocks: readable, not washed out */
.ai-response-block pre,
.gemini-response pre,
.ai-response-block pre code,
.gemini-response pre code {
  background: #011627!important;  /* Even darker base */
  color: #d6deeb !important;       /* Night Owl: highly readable */
  border-radius: 7px;
  
  overflow-x: auto;
  font-size: 1em;
  line-height: 1.7;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  box-shadow: 0 2px 8px rgba(8, 14, 34, 0.14);
  white-space: pre;
  margin-top: 0px;
}

/* If syntax highlighting library is used, force readable base for code */

#notesList {
  max-width: none;  /* Remove explicit max width */
  width: 100vw;     /* Full viewport width */
  margin: 0;
  padding: 0 0 2.7em 0; /* No left/right padding */
}

.ai-response-block {
  /* You may want to adjust padding for more comfort at screen edge */
  border-radius: 0;
  box-shadow: none;
  padding-left: 0.7em;
  padding-right: 0.7em;
}
.chat-bubble code, .chat-bubble pre {
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-size: 15px;
  background: #181f29 !important;
  color: #ffeb95 !important;
}

.chat-bubble pre {
  background: #011627 !important;
  color: #ffe491;
  padding: 13px 15px;
  border-radius: 9px;
  margin-top: 0px;
  white-space: pre-wrap;
  overflow-x: auto;
  box-shadow: 0 2px 6px #0002;
}
.ai-response-block code,
.gemini-response code {
  
}

.ai-response-block code:hover,
.gemini-response code:hover,
.ai-response-block code:focus,
.gemini-response code:focus {
  
}

/* Only target code NOT inside pre (i.e., inline code) */
.ai-response-block code:not(pre code),
.gemini-response code:not(pre code) {
  background: #181f29 !important;
  color: #ffeb95 !important;
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-size: 18px;
  padding: 0.16em 0.5em;
  border-radius: 4px;

  border: 1px solid #253154;
  box-shadow: 0 1px 4px #232f4b12;
  vertical-align: baseline;
  transition: background 0.14s, color 0.14s, box-shadow 0.15s;
}


.gemini-response ul{
  margin-bottom: 0px;
  margin-top: 0em;
}
.gemini-response ul li{
  line-height: 2em;
  margin-bottom: 0px;
  
}
.code-block-header {
  display: flex;
  justify-content: flex-end;   /* align items to right end */
  gap: 10px;
  padding: 8px 14px;
  background: #011627;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 1px 4px rgba(34, 39, 72, 0.07);

  border-bottom: 2px solid #1d3b53;
}

.code-block-button {
  background: rgba(88,101,242,0.07);
  border: none;
  color: #b5bad3;
  font-size: 15px;
  font-family: inherit;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.17s, color 0.15s;
  outline: none;
}

.code-block-button:hover,
.code-block-button:focus {
  background: #5865F2;
  color: #fff;
}

.code-block pre{
    margin-top: 0px;
}
.code-block {
  background: #011627;

}
#closeBtn {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 5000;
  background: rgba(30, 34, 53, 0.91);
  color: #fff7f0;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2.5px 12px #0116271a,
    0 1.5px 5px #22285e18,
    0 0.5px 1.2px #ccd6f61a;
  cursor: pointer;
  transition:
    background 0.23s cubic-bezier(.23,1.12,.51,1),
    color 0.13s,
    box-shadow 0.2s,
    transform 0.14s;
  outline: none;
  backdrop-filter: blur(2.5px); /* For glassy effect */
}

#closeBtn:hover,
#closeBtn:focus {
  background: linear-gradient(120deg, #fa645a 30%, #ffd24c 110%);
  color: #181a22;
  box-shadow:
    0 10px 32px #fa645a33,
    0 2.5px 12px #ffd24c18;
  transform: translateY(-2px) scale(1.08);
  border: none;
}
.delete-btn {
  display: inline-flex;
  flex-direction: row;      /* Icon and text left to right */
  align-items: center;
  gap: 0.58em;
  white-space: nowrap;

  background: linear-gradient(100deg, #25161a 60%, #401c1e 100%);
  color: #fd7267;
  border: none;
  border-radius: 999px;     /* Fully pill-shaped */
  padding: 0 18px 0 12px;
  height: 38px;

  font-size: 1.07em;
  font-family: inherit;
  font-weight: 600;

  box-shadow: 0 4px 16px #fd72671a;
  cursor: pointer;
  outline: none;
  position: absolute;
  top: 16px;        /* Use these if you want it floating, adjust as needed */
  right: 16px;
  z-index: 11;

  transition: 
    background 0.18s,
    color 0.14s,
    box-shadow 0.14s,
    transform 0.12s,
    letter-spacing 0.13s;
}

.delete-btn:hover,
.delete-btn:focus {
  background: linear-gradient(97deg, #fd7267 30%, #ffd24c 120%);
  color: #231528;
  box-shadow: 0 14px 28px #ffd24c44;
  letter-spacing: 0.5px;
  transform: scale(1.06);
}

/* Optional: icon a little bigger than text */
.delete-btn::before {
  /* Not needed if using emoji, but you can use this for SVG or custom icon tweaks */
}

/* Date styling */


/* Main content styling (optional, adjust to taste) */
.note-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.delete-btn {
  /* Remove position: absolute from previous style! */
  position: static;
  margin-left: 0.6em;
}
