body { 
    font-family: sans-serif; 
    max-width: 700px; 
    margin: 10px auto; 
}

label { 
    display: block; 
    margin-top: 12px; 
    font-weight: bold; 
}

input, textarea { 
    width: 100%; 
    padding: 6px 0px; 
    margin-top: 4px; 
    box-sizing: border-box; 
}




button { 
    margin-top: 16px; 
    padding: 8px 16px; 
    cursor: pointer; 
}

.step-title {
    text-align: center;
    background-color: #f5f5f5;
    margin: 60px auto 20px;
    padding: 10px 0;
    border-bottom: 2px solid black;
}


.banner {
    max-width: 700px;
    height: auto;
    padding-bottom: 30px;
}


.primary-btn {
  /* 1. Reset default browser styles */
  background: none;
  border: none;
  outline: none;
  
  /* 2. Layout & Spacing */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;       /* Top/Bottom, Left/Right padding */
  cursor: pointer;          /* Changes the cursor to a hand icon */
  
  /* 3. Colors & Aesthetics */
  background-color: #0057ff; /* Modern blue background */
  color: #ffffff;            /* White text color */
  border-radius: 6px;        /* Slightly rounded corners */
  
  /* 4. Typography */
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase; /* Optional: Capitalizes all text */
  letter-spacing: 0.5px;
  
  /* 5. Smooth Transitions */
  transition: all 0.3s ease; /* Makes states transition smoothly */
}

.primary-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.5); /* Clear focus indicator ring */
}

.secondary-btn {
  /* 1. Reset default browser styles */
  background: none;
  border: none;
  outline: none;
  
  /* 2. Layout & Spacing */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;       /* Top/Bottom, Left/Right padding */
  cursor: pointer;          /* Changes the cursor to a hand icon */
  
  /* 3. Colors & Aesthetics */
  background-color: #008080;
  color: #ffffff;
  border-radius: 6px;        /* Slightly rounded corners */    
}

.tertiary-btn {
  /* 1. Reset default browser styles */
  background: none;
  border: none;
  outline: none;
  
  /* 2. Layout & Spacing */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;       /* Top/Bottom, Left/Right padding */
  cursor: pointer;          /* Changes the cursor to a hand icon */
  
  /* 3. Colors & Aesthetics */
  background-color: #dcdcdc;
  /* color: #ffffff; */
  border-radius: 6px;        /* Slightly rounded corners */    
}

.clear-btn {
    font-size: 16px;
    background:#c0392b; 
    color:white; 
    padding:6px 14px; 
    border:none; 
    border-radius:4px; 
    cursor:pointer;
}

/* Styles the button itself */
.file-upload-btn::file-selector-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;

  /* Pushes the "No file chosen" text further to the right */
  margin-right: 20px;
}

/* Styles the hover state */
.file-upload-btn::file-selector-button:hover {
  background-color: #45a049;
}


/* Container: Stacks each option onto its own line */
.radio-group {
    display: flex;
    flex-direction: column; /* Force 1 item per row */
    gap: 12px;               /* Space between each row */
    margin: 10px 0px 20px;
    padding: 10px 50px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 10px;
}

/* Row: Aligns the radio button and text horizontally */
.radio-option {
    display: flex;
    align-items: center;    /* Vertically centers radio circle with text */
    gap: 20px;               /* Consistent distance between radio & label */
    width: max-content; /* Prevents container from stretching unnecessarily */
    max-width: 100%;
}

/* Ensures radio buttons don't shrink or shift */
.radio-option input[type="radio"] {
    margin: 0;
    width: 16px;        /* Fixes oversized radio issue */
    height: 16px;
    flex: 0 0 16px;     /* Prevents flex box from expanding/shrinking it */
    cursor: pointer;
}

.radio-option label {
    white-space: nowrap;
    flex: 0 1 auto;     /* Grows or shrinks tightly with text length */
    cursor: pointer;
}



iframe { 
    width: 100%; 
    height: 800px; 
    border: 1px solid #ccc; 
    margin-top: 10px; 
}



#copyBtn { margin-top: 10px; }
#copyStatus { margin-left: 10px; color: green; }


#viewToggle { margin-top: 20px; }
#viewToggle button {
    padding: 6px 14px;
    margin-right: 6px;
    cursor: pointer;
    background: #eee;
    border: 1px solid #ccc;
}
#viewToggle button.active {
    background: #333;
    color: white;
}

#previewWrapper {
    margin-top: 10px;
    border: 1px solid #ccc;
    background: #fafafa;
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

#preview {
    border: none;
    height: 800px;
    transition: width 0.2s ease;
}

#preview.desktop {
    width: 100%;
    max-width: 700px;
}

#preview.mobile {
    width: 375px; /* iPhone-ish viewport width */
}


#loginOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#loginBox {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 300px;

    input, textarea { 
    width: 100%; 
    padding: 6px 10px; 
    margin-top: 4px; 
    box-sizing: border-box; 
}

}

#loginBox h2 { margin-top: 0; }

#loginError { color: red; margin-top: 8px; min-height: 18px; }

#appContent { display: none; } /* hidden until logged in */