/* --- Base Styles --- */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  background: #111010;
  color: #FBFBFB;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin:0px;
  min-width: 320px;
}

a {
  text-decoration: none;
  color: #d3d3d3;
}

h1, h2 {
  color: #FBFBFB;
}
h2 {
  color: #55c3ec;
}

.content-inner {
  margin: 0 auto;
  max-width: 1220px;
  padding-top: 70px;
  width: 100%;
}
.inner {
  padding: 0 40px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
}


/* --- Navbar & Burger Menu --- */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #0c0d0c29;
  z-index: 1000;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #21212157;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
  height: 70px;
  position: relative;
}

.nav-header {
  display: flex;
  align-items: center;
}

.nav-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: #fff;
}

.nav img {
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-item a {
  display: flex;
  align-items: center;
  font-weight: bold;
  color:#fff;
  transition: all 0.2s ease;
}

.nav-item a:hover {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #55c3ec;
  transition: all 0.2s ease;
}

.nav-list > li + li::before {
  content: " → ";
  color: #ffc700;
  margin: 0 8px;
}

.button {
  padding: 10px 25px;
  border-radius: 40px;
  margin-left: 10px;
  font-size: 14px;
  background: linear-gradient(135deg, #26c4ff, #016074);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.button:hover {
  background: linear-gradient(135deg, #72d9ff, #26657e);
}

/* --- Burger Menu --- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1100;
}

.nav-burger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
  position: relative;
}

/* --- Responsive Navbar & Burger --- */
@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .nav-list > li::before {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100vw;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0 12px 0;
    display: none;
    z-index: 1099;
    backdrop-filter: blur(20px);
    background-color: #000000d4
  }
  .nav-links .nav-list {
    flex-direction: column;
    width: 100%;
  }
  .nav-links .nav-item {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .nav-links .nav-item a,
  .nav-links .nav-item button {
    width: 100%;
    padding: 16px 24px;
    text-align: center;
    font-size: 18px;
    border: none;
    justify-content: center;
    margin: 0 20px;
  }

  /* Show menu when burger is checked */
  .nav-toggle:checked ~ .nav-burger + .nav-links {
    display: flex;
  }
  /* Animate burger to X */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }
}
/* --- Upload Section --- */
.section {
  margin-bottom: 30px;
  background-color: rgb(67 67 67 / 26%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #2f2e2e80;
  border-radius: 8px;
  padding: 0px 20px 20px 20px;
  width: 100%;
  box-sizing: border-box;
}

.section label {
  cursor: pointer;
}

/* --- Filter Row --- */
.filter-row label {
  display: inline-block;
  margin-right: 16px;
  font-weight: bold;
  cursor: pointer;
}

.filter-row input[type="radio"] {
  accent-color: #55c3ec;
  margin-right: 6px;
}

/* --- Gallery & Hero Grid --- */
#gallery, #hero {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin: 30px 0 0 0;
}

#hero-count-bottom, #gallery-count-bottom {
  flex-basis: 100%;
}

.bottom-action-row {
  margin-top: 30px;
}

/* --- Photo Card --- */
.photo {
  background-color: rgb(67 67 67 / 26%);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #2f2e2e80;
}

.photo img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
}

.photo input[type="text"] {
  width: 100%;
  padding: 4px 6px;
  border-radius: 30px;
  color: rgb(221, 221, 221);
}

.photo button {
  padding: 4px;
  border: none;
  background-color:rgb(121 26 19);
  color: white;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 5px 4px 0 4px;
  width:100%;
}

.photo button:hover {
  background-color: #d32f2f;
}


/* --- Toast Notifications --- */
#toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
}

.toast {
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  backdrop-filter: blur(20px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background-color: #28a7468c; }
.toast.error { background-color: #dc3545; }

/* img fade in */

.fade-in-img {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  will-change: opacity, transform;
}

.fade-in-img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* --- Tags --- */
.tag-input {
  display: flex;
  align-content: flex-start;
  gap: 4px;
  padding: 4px;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.tag-input input {
  border: none;
  outline: none;
  min-width: 60px;
  background-color: #1f2223;
  border: 1px solid #585858;
  margin-top: 5px;
}

.tag {
  background-color: #074053;
  padding: 0.2em 0.5em;
  border-radius: 15px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.tag .remove-tag {
  margin-left: 4px;
  cursor: pointer;
  font-weight: bold;
}

.tag-input ul.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #181a1b;
  border-top: none;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 8px;
  border-radius: 10px;
}

.tag-input ul.suggestions li {
  padding: 6px 10px;
  cursor: pointer;
}

.tag-input ul.suggestions li:hover {
  background-color: #007782;
  border-radius: 7px;
}

.tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.photo button.validate-tag-btn {
    border-radius: 30px;
    border: none;
    background: #049b3d;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    margin-left: 4px;
    transition: all ease 0.2s;
    width: 35px;
    border: 1px solid #585858;
}

.photo button.validate-tag-btn:hover {
  background: #02cb4e;
} 


.suggestions li.selected {
  background-color: #007782;
  color: white;
  cursor: pointer;
  border-radius: 7px;
}

.suggestions li {
  cursor: pointer;
}

/* --- Flex Utilities --- */
.flex-item {
  display: flex;
}

.modal-actions-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
}

.flex-column {
  flex-direction: column;
}

.flex-full {
  flex: 1;
  flex-direction: column-reverse;
}

.flex-end {
  align-items: flex-end;
  width: 100%
}

/* --- Upload Buttons --- */
.up-btn, .footer-links a{
  display: inline-block;
  background: #00000000;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: all 0.1s ease;
  user-select: none;
  font-size: 14px;
  border: 1px solid #585858;
}

.up-btn:hover, .footer-links a:hover {
  background: #2d2d2d;
}

/* --- Modal Styles --- */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 30px;
}

.modal-content {
  background: #000000a3;
  color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  min-width: 200px;
  max-width: 90vw;
  position: relative;
  text-align: center;
  backdrop-filter: blur(20px);
}

.modal-close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  opacity: 0.7;
}
.modal-close:hover { opacity: 1; }

.modal-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-btn {
  padding: 0.5em 1.5em;
  border-radius: 30px;
  border: none;
  background: #09A0C1;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.modal-btn.danger {
  background: #c62828;
}

.modal-btn:hover {
  background: #55c3ec;
}

.modal-btn.danger:hover {
  background: #d32f2f;
}

/* --- Upload Actions Row --- */
.upload-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* --- Remove All Buttons --- */
#remove-all-hero, #remove-all-gallery, .bottom-remove-btn {
  background: #2d2d2d;
  color: white;
  display: none;
  margin-bottom: 6px;
}

.bottom-remove-btn {
  display: inherit;
}

#remove-all-gallery:hover,
#remove-all-hero:hover, .bottom-remove-btn:hover {
  background: rgb(121, 26, 19);
}

@media (max-width: 500px) {
  .upload-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* --- Forms --- */

fieldset {
  background-color: rgb(67 67 67 / 26%);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #2f2e2e80;
  margin-bottom: 28px;
  padding: 0 28px 32px 28px;
  margin: 32px auto;
}

legend {
  font-size: 1.2em;
  font-weight: 700;
  color: #26c4ff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.input-field {
  flex: 1 1 calc(33.333% - 18px);
  min-width: 150px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #e3e3e3;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

form input,
form textarea,
form select {
  background: #1f2223;
  color: #fff;
  border: 1px solid #585858;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  padding: 10px 14px;
  margin-bottom: 4px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

#theme-editor-form input, #theme-editor-form textarea,#theme-editor-form select {
  margin-bottom: 18px;
}

#theme-editor-form .fields {
  gap: 0 18px;
}

.theme-info {
  margin-bottom: 25px;
}

form input::placeholder,
form textarea::placeholder {
  color: #585858;
  font-style: italic;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #585858;
  background: #161616;
}

form textarea {
  min-height: 60px;
  resize: vertical;
}

#input[type="file"] {
  background: none;
  color: #fff;
  border: none;
  padding: 0;
  margin-top: 2px;
}

img#thumbnail-preview {
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #585858;
}

form button[type="submit"] {
  background: linear-gradient(135deg, #26c4ff, #016074);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 1.1em;
  margin: 16px 0 0 0;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(38,196,255,0.15);
  transition: background 0.2s;
  display: block;
}

form button[type="submit"]:hover {
  background: linear-gradient(135deg, #72d9ff, #26657e);
}

form button[type="button"] {
  background: #00000000;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 7px 18px;
  font-size: 0.98em;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #585858;
}

form button[type="button"]:hover{
  background: #2d2d2d;
  color: #fff;
}


form button.remove-menu-item,
form button.remove-ip-paragraph {
  margin-top: 0px;
  margin-bottom: 4px;
  border-radius: 30px;
  background: #2d2d2d;
}

form button.remove-menu-item:hover,
form button.remove-ip-paragraph:hover {
  background: rgb(121, 26, 19);
}

form button.remove-btn {

  border-radius: 30px;
  background: #2d2d2d;
}

form button.remove-btn:hover {
  background: rgb(121, 26, 19);
}

form .thumbnail-form-label {
  margin-top: 10px;
}

#favicon-preview {
  margin-top: 8px;
}


.fields.color-fields {
  gap: 8px;
  position: relative;
  flex-wrap: nowrap;
}


#theme-editor-form button.color-btn {
  height: 40px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-block;
  margin-top: 0px;
  margin-bottom: 4px;
  width: 40px;
}

input[type="color"].color-input {
  margin:0;
  padding: 0;
  cursor: pointer;
  height:100%;
  position:absolute; 
  left:0; 
  top:0;
  opacity:0;
}

fieldset p, .section p {
    font-size: 14px;
    font-style: italic;
    color: #b3b3b3;
    margin-top: 0px;
}

.font-name {
  background: #1f2223;
  color: #b3b3b3;
  border: 1px solid #585858;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  padding: 10px 14px;
  margin-bottom: 4px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

#theme-editor-form button[type="button"]#choose-font-btn {
  margin-top: 16px;
}

.section-status {
  font-style: normal;
}

/* --- Stepper --- */

#stepper {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  align-items: stretch;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

#stepper li,
#stepper > div {
  display: flex;
  align-items: center;
  
}

  #stepper > div::before {
    content: "→";
    color: #ffc700;
  }

#stepper li a, #stepper li button, #stepper > div  {
justify-content: center;
  min-width: 100px;
  border: 1px solid #585858;
  padding: 16px;
  border-radius: 8px;
  background: #111010;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

#stepper li a, #stepper li button {
  height: 100%;
  align-items: center;
  display: flex;
  font-weight: bold;
}

#stepper li button#stepper-build {
  background: linear-gradient(135deg, #26c4ff, #016074);
  transition: all 0.2s ease;
  font-weight: bold;
  color:#fff;
  font-size: 16px;
}

#stepper li button#stepper-build:hover {
  background: linear-gradient(135deg, #72d9ff, #26657e);
  transition: all 0.2s ease;
  color:#fff;
  cursor: pointer;
}

#stepper li a:hover, #stepper li a.step-active {
  color: #fff;
  transition: all 0.2s ease;
  background: #277fa0;
  font-weight: bold;
}

#stepper li button#stepper-build::before {
  content: "🚀 ";
  margin-right: 8px;
}

#stepper li a {
  text-decoration: none;
  color:#d3d3d3
}

#stepper li {
  flex: 1 1 auto; 
}

#stepper > div {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffc700;
  border: none;
  background: none;
  padding: 0;
  min-width: 0;
  width: auto;
}

.stepper {
  width: 100%;
}

/* --- Footer --- */

#footer {
  background-color: #0c0d0c29;
  z-index: 1000;
  backdrop-filter: blur(20px);
  border-top: 1px solid #21212157;
  width: 100%;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}


.footer-links, .footer-links a {
  display: flex;
  gap: 12px;
}

.footer-links a {
  gap: 8px;
}

.lum-first {
 font-weight: bold;
}
.lum-second {
  color: #55c3ec;
  font-weight: bold;
}

#footer a {
  color: #fff;
  margin: auto;
}

.footer-credit .lum-first::before {
  content: url(/img/favicon.svg);
  display: inline-block;
}

#footer .content-inner {
  padding-top: 0px;
}

.icon {
    width: 16px;
    height: 16px;
    display: flex;
    margin: auto;
}

.icon-text {
    display: flex;
}

/* --- Global Loader & Spinner --- */
#global-loader {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 99999;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
}

#global-loader.active {
  display: flex;
}

.loader-inner {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.4,0,.2,1);
  background: #0c0d0c29;
  padding: 32px 48px;
  border-radius: 16px;
  box-shadow: 0 2px 24px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(20px);
}

#global-loader.active .loader-inner {
  opacity: 1;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #55c3ec;
  border-top: 6px solid #222;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#loader-text {
  margin-top: 18px;
  color: #fff;
  font-size: 18px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {

  .nav {
    padding: 0 20px;
  }
  .inner {
    padding: 0 20px;
  }
  .section label {
    display: block;
    margin-bottom: 10px;
  }

  #menu-items-list > div {
    flex-direction: column;
  }

  form button[type="button"], form button[type="submit"],   #stepper li {
    width: 100%;
  }

  #stepper {
    flex-direction: column;
  }

  .footer-container, .footer-links {
    flex-direction: column;
  }

  #ip-list > div {
    flex-direction: column;
  }
  #stepper > div {
    flex-direction: column;
  }
  #stepper > div::before {
    content: "↓";
    color: #ffc700;
  }
  #stepper > div {
    /* Hide the default arrow */
    color: transparent;
  }

  .input-field {
    min-width: 100%;
    margin-bottom: 12px;
  }

  #site-info-form button[type="submit"], #theme-editor-form button[type="submit"] {
    width: 100%;
  }

  #color-picker .input-field{
    min-width: 170px;
  }
  #theme-editor-form .fields.color-fields {
    gap: 0 8px;
    position: relative;
    flex-wrap: nowrap;
  }
}