/* :root {
    --primary: #2563eb;
    --bg: #f1f5f9;
    --border: #e2e8f0;
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */

/* =========================
   GLOBAL / BODY BACKGROUND
   ========================= */

:root {
    --bg-1:#070b1a;
    --bg-2:#0d1230;
    --bg-3:#12183d;

    --glass-bg: rgba(18, 28, 58, 0.45);
    --glass-border: rgba(255,255,255,0.08);

    --text:#f5f7ff;
    --added-text: white;
    --muted:#9aa4c7;

    --glow:#6f5cff;
    --cyan:#35d0ff;
}

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

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    color: #ffffff;
    
    /* 1. Deep dark base color */
    background-color: #0b0914;
    
    /* 2. Layered soft radial glows (Teal on right, Purple on left) */
    background-image: 
        radial-gradient(circle at 85% 30%, rgba(15, 118, 110, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 10% 40%, rgba(107, 33, 168, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
    
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Optional: Center your layout */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 250px;    
}

/* subtle blur glow blobs */
body::before,
body::after{
  content:"";
  position:absolute;
  width:42rem;
  height:42rem;
  border-radius:50%;
  filter:blur(9rem);
  z-index:-1;
}

body::before{
  top:-12rem;
  left:-12rem;
  background:rgba(110,92,255,0.18);
}

body::after{
  bottom:-14rem;
  right:-10rem;
  background:rgba(0,210,255,0.12);
}

.container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    width: 100%;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0px;
    z-index: 50;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 0.8rem;
    overflow: visible !important;
}

h2 {
    color: var(--text);
    margin-top: 0;
    border-bottom: 0.2rem solid var(--bg);
    padding-bottom: 1rem;
}

.card {
    background: rgba(248, 250, 252, 0.1);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
    background-color: transparent;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible !important;
}

label {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.added-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--added-text);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

input,
textarea {
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.sub-list {
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    padding-left: 15px;
    border-left: 2px solid var(--primary);
}

.list-row {
    display: flex;
    margin-top: 0.7rem;
}

.list-row input {
    flex: 1;
}

.btn {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-add {
    background: var(--primary);
    color: white;
    margin-top: 10px;
}

.btn-rm {
    background: #ef4444;
    color: white;
    z-index:10;
}

.btn-submit {
    background: #10b981;
    color: white;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
}

.remove-card {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* =========================
   GLASS CARD
   ========================= */
.glass-card {
    /* 1. Subtle directional sheen (slightly brighter top-left, fading out) */
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        rgba(255, 255, 255, 0.01) 100%
    );

    /* 2. Heavy background blur to frost the glowing background */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    /* 3. Crisp, delicate outer border highlight */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;

    /* 4. Deep outer shadow for elevation + faint ambient highlight */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Subtle inner top highlight */

    padding: 40px;
    
    /* Optional transitions if you want a hover effect */
    transition: all 0.3s ease;

    font-size: 1rem;

    overflow: visible !important;
}

/* Optional: Slight lift on hover */
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.glass {
    background: linear-gradient(180deg,rgba(255,255,255,0.12) 0%,rgba(255,255,255,0.06) 100%);
    backdrop-filter: blur(18px) saturate(140%);
    overflow: visible !important;

}

/* =========================
   GLASS NAVBAR
   ========================= */

.navbar{
    position: sticky;
    top: 0;

    z-index: 1000;
    width:fit-content;
    margin: auto auto;

    padding:1.4rem 2.2rem;
    border-radius:1.8rem;

    display:flex;
    gap:2.8rem;
    align-items:center;

    /* glass */
    background:rgba(20, 28, 50, 0.45);

    border:1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(1.8rem);
    -webkit-backdrop-filter: blur(1.8rem);

    box-shadow:
        0 0.8rem 3.2rem rgba(0,0,0,0.35),
        inset 0 0.1rem 0 rgba(255,255,255,0.05);
}

.navbar a{
    color:#c9d2f0;
    text-decoration:none;
    font-size:1.4rem;
    transition:0.25s ease;
}

.navbar a:hover{
    color:white;
}

/* green circle */
.status-dot{
    display: inline-block;
    width: 10px;
    height: 10px;
    width:10px;
    height:10px;
    border-radius:50%;
    margin-right: 8px;

    background:#4dff88;

    /* halo / glow */
    box-shadow:
        0 0 0 4px rgba(77,255,136,0.15),
        0 0 12px rgba(77,255,136,0.9),
        0 0 24px rgba(77,255,136,0.45);
}

.v-align-self {
    margin-top: auto;
    margin-bottom: auto;
}

/* =========================
   Drilldown template items
   ========================= */
.custom-select {
  position: relative;
  width: 220px;
  overflow: visible !important;
}

.custom-select-trigger {
  padding: 1rem 1.4rem;
  font-size: 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.custom-select-trigger:hover {
  background: rgba(255,255,255,0.15);
}

.custom-select-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: visible !important;
  z-index: 999999;
}

section.glass.glass-card {
  overflow: visible !important;
  position: relative;
  z-index: 10;
}

.custom-option {
  padding: 1rem 1.4rem;
  font-size: 1.4rem;
  color: white;
  cursor: pointer;
  transition: background 0.15s;
}

.custom-option:hover {
  background: rgba(255,255,255,0.12);
}

.custom-option.selected {
  background: rgba(111, 92, 255, 0.3);
}

.pdf-preview-box {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-75%, -5%);
  width: 420px;
  height: 520px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 2147483647;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
}

#selectTrigger {
  position: relative;
  z-index: 99999;
  pointer-events: all;
}

#template-section {
  position: relative;
  z-index: 99999 !important;
  overflow: visible !important;
}

#template-section * {
  overflow: visible !important;
}

section.glass.glass-card {
  position: relative;
  z-index: 1;
  overflow: visible !important;
}
