/* css/frame-styles.css */

/* ======================
   RESET
====================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(circle at top,#eef2ff,#f3f4f6 60%);
  padding:30px;
  color:#111827;
}


/* ======================
   BUTTON SYSTEM
====================== */

.btn{
  border:none;
  border-radius:10px;
  padding:12px 18px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:all .25s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

/* PRIMARY BUTTON */

.btn-primary{
  background:#6366f1;
  color:white;

  box-shadow:
    0 4px 12px rgba(99,102,241,.35);
}

.btn-primary:hover{
  background:#4f46e5;
  transform:translateY(-1px);
  box-shadow:
    0 8px 20px rgba(99,102,241,.45);
}

.btn-primary:active{
  transform:scale(.96);
}

/* SECONDARY BUTTON */

.btn-secondary{
  background:#f3f4f6;
  color:#374151;
  border:1px solid #e5e7eb;
}

.btn-secondary:hover{
  background:#e5e7eb;
}

/* ACTION LAYOUT */

.form-actions{
  display:flex;
  gap:12px;
  margin-top:10px;
}

.form-actions.sticky{
  position:sticky;
  bottom:0;
  background:white;
  padding-top:14px;
  margin-top:20px;
}

.settings-panel{
  background:#fafafa;
  padding:18px;
  border-radius:12px;
  margin-top:20px;
}

.toggle{
  display:flex;
  gap:10px;
  margin:10px 0;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.full{
  grid-column:1 / -1;
}

.tabs{
  display:flex;
  gap:8px;
  margin-bottom:20px;
}

.tab{
  background:#f3f4f6;
  border:none;
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
}

.tab.active{
  background:#6366f1;
  color:white;
}

.container{
  max-width:1000px;
  margin:auto;
}

/* banner */
.info-banner{
  display:flex;
  align-items:center;
  gap:14px;
  background:#f9fafb;
  padding:14px;
  border-radius:12px;
  margin-bottom:18px;
}

.avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#6366f1;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

.muted{
  font-size:13px;
  color:#6b7280;
}

/* ======================
   CARD (GLASS STYLE)
====================== */

.card{
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(14px);
  border-radius:20px;
  padding:32px;
  max-width:900px;
  margin:auto;

  border:1px solid rgba(255,255,255,0.6);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    inset 0 1px rgba(255,255,255,0.6);

  animation:fadeIn .5s ease;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}

/* ======================
   HEADING
====================== */

h2{
  font-size:24px;
  margin-bottom:24px;
  font-weight:700;
  letter-spacing:.3px;
}

/* ======================
   INPUTS
====================== */

input[type="text"],
input[type="password"],
textarea{
  width:100%;
  padding:14px 16px;
  margin-bottom:18px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:white;
  font-size:14px;
  transition:all .25s ease;
}

/* Hover */
input:hover,
textarea:hover{
  border-color:#c7d2fe;
}

/* Focus Glow */
input:focus,
textarea:focus{
  outline:none;
  border-color:#6366f1;
  box-shadow:0 0 0 4px rgba(99,102,241,.15);
  transform:translateY(-1px);
}

/* ======================
   CHECKBOX
====================== */

.checkbox-label{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 16px;
  font-weight:500;
  cursor:pointer;
}

input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:#6366f1;
}

/* ======================
   ADDRESS SECTION
====================== */

#addressBox{
  padding:18px;
  border-radius:14px;
  background:#f8fafc;
  border:1px dashed #dbeafe;
  margin-bottom:18px;
  transition:.3s ease;
}

/* ======================
   IFRAME PREVIEW
====================== */

iframe{
  width:100%;
  height:420px;
  border:none;
  border-radius:16px;
  margin-top:24px;

  background:white;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12);
}

/* ======================
   HIDDEN
====================== */

.hidden{
  display:none !important;
}


/* ======================
   RESPONSIVE
====================== */

@media (max-width:768px){

  body{
    padding:16px;
  }

  .card{
    padding:22px;
  }

  iframe{
    height:340px;
  }
}

@media (max-width:480px){

  h2{
    font-size:20px;
  }

  iframe{
    height:280px;
  }
}