* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg,#4b0082,#0f172a);
  color: #e5e7eb;
}

.top-header {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align:center;
}

.container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.glass {
  background: rgba(30,41,59,0.6);
  backdrop-filter: blur(12px);
  padding:1rem;
  border-radius:16px;
}

.form-section { width: 35%; min-width: 300px; padding: 1.5rem; border-radius: 18px; }

.preview-section {
  width: 60%;
  background: white;
  color: black;
  border-radius: 14px;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}

h2, h3 { color: var(--headingColor,#1e3a8a); }

label { font-weight: bold; margin-top: 1rem; display:block; }

input, textarea { width:100%; padding:10px; margin-top:6px; border-radius:8px; border:none; background:#334155; color:white; }

button {
  margin-top:10px;
  width:100%;
  padding:10px;
  border-radius:10px;
  border:none;
  background: linear-gradient(135deg,#2563eb,#38bdf8);
  color:white;
  font-weight:bold;
  cursor:pointer;
}

.invoice-header {
  display:flex;
  gap:1.5rem;
  border-bottom:2px solid #ddd;
  padding-bottom:1rem;
}

#profile-pic {
  width:130px;
  height:130px;
  border-radius:12px;
  object-fit:cover;
  display:none;
  border:2px solid #1e3a8a;
}

section { margin-top:1.5rem; border-bottom:1px dashed #ccc; padding-bottom:0.5rem; }

@media screen and (max-width:768px){
  .container{ flex-direction:column; }
  .form-section, .preview-section{ width:100%; }
}

@media print{
  body * { visibility:hidden; }
  #resume, #resume * { visibility:visible; }
  #resume { position:absolute; top:0; left:0; width:100%; }
}




