
/* =========================
   LOCAL FONT (TTF)
========================= */


@font-face {
  font-family: "Hack";
  src: url("assets/fonts/Hack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Hack";
  src: url("assets/fonts/Hack-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Hack", monospace;
}

/* THEMES */
:root {
  --bg: #1e1f22;
  --card: #2b2d31;
  --text: #e6e6e6;
  --muted: #a0a0a0;
  /*--accent: #ff5c4d;*/
  /*--accent: #2ecc71;*/
  --accent: #2563eb;
  --border: #3c3f41;
}

body[data-theme="light"] {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #111;
  --muted: #555;
  --accent: #2563eb;
  --border: #d0d7de;
}

/* BODY */
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;

  display: flex;
  justify-content: center;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 750px;
  padding: 0px;
}

/* TITLE */
.title {
  padding-top: 30px;
  text-align: center;
  margin-bottom: 10px;
}

/* DESCRIPTION */
.description {
  text-align: center;
  color: var(--muted);
  margin-bottom: 15px;
}

/* BUTTON Show Layout*/
.layout-btn {
  width: 100%;
  margin: 10px 0 15px;
  padding: 10px;
  font-size:larger;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* CARD */
.card {
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* OPTIONS */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

/* BUTTON */
.generate-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: large;
  font-weight: bold;
  cursor: pointer;
}

/* RESULT */
.result-box {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

#copyBtn {
  background: var(--accent);
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}


/* Display Layout Qwerty */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  
  align-items: center;
}

.hidden {
  display: none;
}

.modal-content {
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  width: min(1100px, 92vw);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  border: 1px solid var(--border);
  text-align: center;
}

.modal-content img {
  width: 100%;
  max-width: 1100px;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* CLOSE */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}


/* SLIDER Numbers */
.slider-container {
  margin: 10px 0 20px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  appearance: none;
  background: #444;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent);
}


/* container  Switch options Lower*/
.ios-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
}

/* hide default checkbox */
.ios-switch input {
  display: none;
}

/* label text */
.ios-switch .text {
  flex: 1;
  margin-left: 12px;
  color: var(--text);
  font-size: 14px;
}

/* switch track */
.ios-switch .slider {
  width: 44px;
  height: 24px;
  background: #3a3d42;
  border-radius: 999px;
  position: relative;
  transition: 0.25s ease;
  flex-shrink: 0;
}

/* switch circle */
.ios-switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ON state */
.ios-switch input:checked + .slider {
  background: var(--accent);
}

.ios-switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* hover effect */
.ios-switch:hover .slider {
  filter: brightness(1.1);
}




/* SECTION */
.theme-section {
  margin-top: 25px;
  text-align: center;
  color: var(--muted);
}

/* LABEL WRAPPER */
.theme-toggle {
  display: flex;
  justify-content: center;
  cursor: pointer;
  margin-top: 10px;
}

/* HIDE INPUT */
.theme-toggle input {
  display: none;
}

/* TRACK */
.theme-toggle .track {
  width: 70px;
  height: 34px;
  background: #2c2f34;
  border-radius: 999px;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 10px;
  box-sizing: border-box;

  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

/* ICONS (SVG CENTER FIXED) */
.theme-toggle .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #9aa0a6;
  stroke-width: 2;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* SUN SPECIAL FILL */
.theme-toggle .sun {
  fill: none;
}

/* THUMB */
.theme-toggle .thumb {
  position: absolute;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s ease;

  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ACTIVE STATE */
.theme-toggle input:checked + .track {
  background: #34d399;
}

/* MOVE THUMB */
.theme-toggle input:checked + .track .thumb {
  transform: translateX(36px);
}

/* ICON COLOR SWITCH */
.theme-toggle input:checked + .track .moon {
  stroke: #777;
}

.theme-toggle input:checked + .track .sun {
  stroke: #111;
}



/* =========================
   BOTTOM BLOCKS
========================= */

.bottom-blocks {
  width: 100%;
  max-width: 50%;
    
  padding: 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* BOX STYLE */
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* TITLE */
.info-box h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

/* TEXT */
.info-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.strength-box {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.strength-bar {
  flex: 1;
  height: 6px;
  background: #333;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 10px;
}

#strengthFill {
  height: 100%;
  width: 0%;
  background: red;
  transition: 0.3s ease;
  border-radius: 999px;
}




@media (max-width: 768px) {

  .bottom-blocks {
    max-width: 100%;
    width: 100%;
    padding: 10px;
  }

  .info-box {
    width: 100%;
  }

  .container {
  width: 100%;
  max-width: 750px;
  padding: 10px;
}

}


