/* ========== GLOBAL RESET ========== */
body {
  margin: 0;
  font-family: sans-serif;
  background: #eee;
}

/* ========== MAIN PANEL WRAPPER ========== */
/*.main {
  max-width: 400px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px #0002;
  display: flex;
  flex-direction: column;
  height: 600px;
  position: relative;
  overflow: hidden;
}
*/
.main-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
  transition: background-image 0.2s;
}

.panel-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}


.panel-header {
  background: var(--header-color, #075e54);
  color: #fff;
  padding: 14px;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-buttons,
.sessions-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.panel-header button {
  margin-left: 8px; /* optional spacing between buttons */
}

.panel-header .header-buttons button,
.panel-header .sessions-header-actions button {
  margin-left: 0;
}

.panel-footer {
  background: #f7f7f7;
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.panel-footer button {
  padding: 8px 16px;
  border-radius: 5px;
  background: #25d366;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.panel-footer button:hover {
  background: #1ebf57;
}

.hidden { display: none; }

.panel-title {
font-weight: bold; font-size: 20px; text-align: center; margin-bottom: 6px;
}

button.btn-green {
    padding: 9px; border-radius: 5px; background: #25d366; color: #fff;
    font-weight: bold; border: none; cursor: pointer; font-size: 16px;
}
button.btn-green:hover {
        background: #1da851;
}	

button.btn-red {
    padding: 9px; border-radius: 5px; background: #e05f5f; color: #fff;
    font-weight: bold; border: none; cursor: pointer; font-size: 16px;
}
button.btn-red:hover {
        background: #700e0e;
}	

button.btn-blue {
    padding: 9px; border-radius: 5px; background: #0077cc; color: #fff;
    font-weight: bold; border: none; cursor: pointer; font-size: 16px;
}
button.btn-blue:hover {
        background: #005fa3;
}

.form-title {font-weight: bold; font-size: 20px; text-align: center; margin-bottom: 6px;}

.form-container {
      background: #fff; border-radius: 10px; box-shadow: 0 2px 12px #0002;
      padding: 26px 22px 14px 22px; min-width: 230px;
      display: flex; flex-direction: column; gap: 2px;
      z-index: 2;
    }	
 
/* Inputs: add space *after* each input (before the next label) */
.form-container input {
  padding: 9px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 15px;

  margin: 0 0 10px 0;   /* creates separation to the next label */
  box-sizing: border-box;
}

.btn-panel-header {
	float: none;
	margin-left: 12px;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 13px;
	cursor: pointer;
	padding: 3px 10px;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	}
.btn-panel-header:hover {
	background: rgba(255,255,255,0.14);
	color: #ffffff;
	}
.btn-panel-header-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
  border-radius: 8px;
}
.btn-panel-header-icon-only:hover {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}
.btn-panel-header-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.22));
}

@media (hover: none), (pointer: coarse), (max-width: 699px) {
  .panel-header {
    padding: 13px 12px;
  }

  .header-buttons,
  .sessions-header-actions {
    gap: 6px;
  }

  .btn-panel-header-icon-only {
    width: 41px;
    min-width: 41px;
    height: 41px;
    border-radius: 8px;
  }

  .btn-panel-header-icon {
    width: 24px;
    height: 24px;
  }

}


  /* Buttons (Edit & Delete) */
  
.delete-btn, .edit-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.edit-btn {
    right: 48px;
}

/* Small, dark-grey form labels */
.label-sm {
  font-size: 10px;        /* nice and compact */
  color: #4b5563;         /* dark grey (good contrast) */
  display: block;          /* Ensure labels take full width above the input */
  margin-bottom: 2px;      /* Reduced from default ~8px */
  font-weight: 500;       /* optional: a bit of emphasis */
}






:root{
  /* tweak the simulated phone size for desktop only */
  --phone-w: 400px;
  --phone-h: 700px;

  /* ── DagaEngine shared palette ── */
  --dg-pink: #ec4899;
  --dg-pink-soft: rgba(236, 72, 153, 0.18);
  --dg-pink-gradient: linear-gradient(160deg, #f472b6, #fb7185);
  --dg-blue: #3b82f6;
  --dg-blue-light: #60a5fa;

  --dg-text-dark: #25162d;
  --dg-text-body: #5f4a66;
  --dg-text-muted: #725f78;
  --dg-text-accent: #8a5f82;
  --dg-text-error: #a93d59;
  --dg-text-on-dark: #fff8fd;

  --dg-surface: rgba(255, 255, 255, 0.98);
  --dg-surface-tint: rgba(248, 244, 250, 0.97);
  --dg-card-bg: rgba(255, 255, 255, 0.92);
  --dg-card-border: rgba(255, 255, 255, 0.84);

  --dg-card-dark: #6c2d58;
  --dg-card-dark-deep: #2a1023;

  --dg-shadow: rgba(44, 24, 55, 0.14);
  --dg-border-muted: rgba(196, 160, 201, 0.22);
  --dg-media-placeholder: linear-gradient(160deg, rgba(255, 234, 243, 0.9), rgba(224, 234, 255, 0.9));

  --header-color: var(--dg-pink);
}

/* Make the app able to fill the viewport on phones */
html, body, #app { height: 100%; }
body { background: #eee; margin: 0; }



/* Background should also be full-bleed on phones */
.main-bg {
  border-radius: 0;
}

/* Header radius only on desktop; keep flat on phones */
.panel-header {
  border-radius: 0;
}




/* ===== MOBILE FIRST (full screen) ===== */
.main {
  inline-size: 100%;
  block-size: 100dvh;        /* fill the mobile viewport */
  max-block-size: none;      /* no artificial cap on phones */
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  /* respect iOS safe areas */
  padding: env(safe-area-inset-top)
           env(safe-area-inset-right)
           env(safe-area-inset-bottom)
           env(safe-area-inset-left);
  box-sizing: border-box;
}

/* ===== DESKTOP (emulator style) ===== */
@media (hover: hover) and (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    background: #0b0f14;
    padding: 24px;
  }

  .main {
    inline-size: min(var(--phone-w), 100vw - 48px);
    block-size: min(var(--phone-h), 100vh - 48px);
    max-block-size: var(--phone-h);   /* cap the “phone” height */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    overflow: clip;
    background: #fff;
  }

  .main-bg { border-radius: 20px; }
  .panel-header { border-radius: 20px 20px 0 0; }
}
#boot{
  position:fixed; inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#f6dbe6;
  color:#000000;
  font:600 16px system-ui; z-index:9999;
  text-align:center;
}

#boot .boot-title{
  font-size:22px;
  font-weight:700;
  letter-spacing:0.02em;
}

#boot .boot-dots{
  margin-top:10px;
  min-height:1.2em;
}

#boot .boot-dots span{
  display:inline-block;
  width:3ch;
  overflow:hidden;
  white-space:nowrap;
  font:600 20px ui-monospace, SFMono-Regular, Consolas, monospace;
  animation: boot-dots 1.2s steps(4, end) infinite;
}

@keyframes boot-dots{
  0% { width: 0ch; }
  25% { width: 1ch; }
  50% { width: 2ch; }
  75% { width: 3ch; }
  100% { width: 0ch; }
}
.hidden{ display:none !important; }
