:root {
--idea-page-bg: var(--bg-medium);   /* default */
--idea-header-bg: var(--idea-page-bg); /* optional, lets you separate later */
--bg-darker: #0d101b;
--bg-dark: #121524;
--bg-medium: #2e4566;
--bg-light: #b4c5db;
--bg--lighter: #fff; 
--bg-white: #ffffff;
--text-light: #e6ecf4;
--text-dark: #2e3b4e;
--accent: #506d96;
--border-light: #627b9d;
--border-medium: #ffffff;  
--border-dark: #ffffff;
--shadow-light: 0 4px 8px rgba(0, 0, 0, 0.15);
--arrow-size: 18px;   
--surface-panel: rgba(255,255,255,0.06);          
--surface-border: rgba(255,255,255,0.10);
--card-bg: #fff;
--card-border: #e5e7eb;
--color-text: #0f172a;
--color-idea: #4a90e2;
--color-thought: #ff6f61;
--color-inspiration: #f5a623;
--color-link: #4bab2c;
--color-notebook: #fff;
}

body {
  font-family: 'loubag';
  min-height: 100vh;
  justify-content: center;
  align-content: center;
  align-items: center;
  background: var(--bg-medium);
  scrollbar-width: none !important;
  margin: 0em !important;
  padding: 0em !important;
  overflow-y: scroll!important;
  text-align: center;
}

html, body {
  overflow: scroll !important;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html, body {
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
  background: var(--idea-page-bg);
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Limit Summernote dropdown height + enable scrolling */
.note-editor .note-dropdown-menu {
  max-height: 240px;          /* tweak this */
  overflow-y: auto;
  overflow-x: hidden;
}

/* Optional: make scrollbar nicer */
.note-editor .note-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.note-editor .note-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
}

/* Mobile friendliness */
@media (max-width: 480px){
  .ig-ownerbar{
    gap: 0.4rem;
  }
  .ig-ownerbar__btn{
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
}

.top_wrapper{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  row-gap: 14px;
  column-gap: 24px;
  width: 100%;
  margin: 0em auto;
 padding-top: 2em;
  margin-bottom: 2em;
  background: var(--idea-page-bg);
}


.grid-title{
  grid-column: 2;              
  margin: 0;
  display: flex;
  align-items: baseline;
  color: var(--idea-title-text);
  justify-content: center;
  gap: .35ch;
  font-size: 2.5em;
  padding: .25em;
}

.grid-title .owner{ 
font-family: "tidelines"; 
font-size: 1.5em;
color: var(--idea-title-text);
}

.grid-title .label{ 
font-family: "loubag"; 
} 

.idea_vault_forms_wrapper{ 
display: contents;
margin: 0 !important;
}

.idea_vault_forms_wrapper > .widget_wrapper:nth-child(1){
  grid-column: 1;       
  justify-self: end;
}

.idea_vault_forms_wrapper > .widget_wrapper:nth-child(2){
  grid-column: 2;            
  justify-self: center;
}

.idea_vault_forms_wrapper > .widget_wrapper:nth-child(3){
  grid-column: 3;             
  justify-self: start;
}

.widget_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.note-placeholder {
  color: white;
  font-style: italic;
  width: 100%;
  color: inherit;
  font-family: "anthem";
  font-size: 2em;
}

.control_buttons{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 0.75rem !important;
  margin-left: 1em !important;
}

.upload_button{
  transform: translateX(0); /* kills subpixel rounding */
}

.upload_button,
.delete_button {
border-radius: 10px;
padding-left: 1em;
padding-right: 1em;
padding-top: .5em; 
padding-bottom: .5em;
font-family: "askwhy";
color: white;
cursor: pointer;
}

.upload_button {
    background-color: green;
}

.delete_button {
    background-color: red;
}

/* =========================
   IDEA GRID HEADER: RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .top_wrapper{
    grid-template-columns: 1fr;   /* collapse */
    row-gap: 12px;
    column-gap: 0;
    width: 100%;
    margin-bottom: 1.25em;
  }

  /* put title first */
  .grid-title{
    grid-column: 1;
    order: 0;
    padding: .25em .35em;
    text-align: center;
    flex-wrap: wrap;             /* if owner/label wrap */
  }

  .grid-title .owner{
  }

  /* stop using the 3-column placements on mobile */
  .idea_vault_forms_wrapper{
    display: block;              /* override display: contents */
    width: 100%;
    padding: 0em !important;
    margin: 0em !important;
    scroll: none; 
  overflow-x: hidden !important;
  }

  .idea_vault_forms_wrapper > .widget_wrapper:nth-child(1),
  .idea_vault_forms_wrapper > .widget_wrapper:nth-child(2),
  .idea_vault_forms_wrapper > .widget_wrapper:nth-child(3){
    grid-column: 1;
    justify-self: stretch;
  }

  .widget_wrapper{
    width: 100%;
  }

  .note-placeholder{
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  }

  .control_buttons{
    gap: .5em;
  }

  .upload_button,
  .delete_button{
    width: 100%;                 /* full-width buttons feel best on mobile */
    max-width: 520px;            /* keeps them from being ridiculous on tablets */
  }
  

  .sticky-widget .upload_button{
    width: 25%;
    max-width: 200px;   /* safety cap */
    min-width: 120px;   /* usability */
    margin: 0 auto;
    display: block;
  }
}

