* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
  }
  
  .container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 15px;
  }
  .container h3{
    font-size:14px;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    height:40px;
  }
  
  .header-info {
    display: flex;
    font-size: 14px;
    gap: 15px;
    
  }
  
  .settings-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    margin-top:0px;
  }
  
  .mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #444;
    position: absolute;
    /* height:40rem; */
    /* overflow-x:scroll; */
    top: 60px;
    right: 10px;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .mobile-menu a {
    padding: 12px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #555;
  }

  .mobile-menu a:hover {
    background-color: #555;
  }

  /* Show menu when active */
  .mobile-menu.active {
    display: flex;
  }
  /* Popup Menu */
  .popup-menu {
    display: none;
    position: fixed;
    bottom: 56px; /* just above footer */
    left: 60%;
    transform: translateX(-50%);
    background: #1e1e2a;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1001;
    flex-direction: row;
    gap: 40px;
    animation: fadeIn 0.3s ease;
  }

  .popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
  }

  .popup-item:hover {
    color: white;
    transform: scale(1.05);
  }

  .popup-item span {
    font-size: 10px;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }


  .idea-section,
  .aspect-ratio,
  .style-selection {
    /* margin-top: 20px; */
    margin-top: 24px;
  }
  
  textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    height:15vh;
  }
  
  button {
    font-family: Arial, sans-serif;
    padding: 12px;
    margin-top: 10px;
    background-color: #007aff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
  }
  
  button:disabled {
    background-color: #888;
  }
  
  .create-btn {
    width: 90%;
    background: #444;
    color: #fff;
    border: none;
    padding: 14px 0;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
  }

  .create-btn:hover {
    background: #555;
  }
  .aspect-ratio-options{
    display: flex;
    margin-top: 0px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .style-options {
    display: flex;
    justify-content: space-between;
    margin-top: 0px;
    padding-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .ratio-item{
    width: 25%;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    transition: transform 0.3s ease;
  }
  .style-item {
    width: 45%;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
 /* Existing CSS ... */

.ratio-item.active,
.style-item.active {
  /* background-color: #007aff; Highlight selected item */
  transform: scale(1.05); /* Scale up on hover */
  border: 2px solid #005bb5; /* Optional: Change border color */
}

.ratio-item.active p,
.style-item.active p {
  color: white;
  font-size: 14px; /* Ensure text stays visible when active */
}

  
  .ratio-item img{
    width: 25px;
    height: auto;
    border-radius: 2px;
  }
  .style-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }
  
  .ratio-item p,
  .style-item p {
    margin-top: 10px;
    font-size: 14px;
    color: white;
  }
  
    .index-create {
    margin-top: 20px;
    text-align: center;
  }
  footer{
    height: 55px;
  }
  .mobile-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2a;
    width: 100%;
    max-width: 400px;
    padding: 10px 0;
    border-radius: 0px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 1000;
  }

 
  .mobile-footer .nav-item {
    color: rgb(122, 122, 122, 1); /* light green tone */
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:5px;
  }

  .mobile-footer .nav-item.active {
    color: white;
    transform: scale(1.15);
  }
  .nav-item  p{
    font-size:10px;
  }

  
  @media (max-width: 400px) {
    .container {
      padding: 10px;
    }
  
    .header-info {
      /* flex-direction: column; */
      text-align: center;
    }
  
    .ratio-item,
    .style-item {
      margin-top: 10px;
    }
  }
  /* body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: black;
    color: white;
    height: 100vh;
    overflow: hidden;
  } */
  
  #onboarding {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    /* position: absolute; */
    margin: 0px auto;
  }
  
  .slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    justify-content: center;
  }
  
  .slide.active {
    display: flex;
  }
  
  .slide img {
    width: 80%;
    max-width: 300px;
    /* height: auto; */
    height: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  
  .slide h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .slide p {
    font-size:14px;
    margin-bottom: 20px;
    color: #aaa;
    padding: 0 20px;
  }
  
  .actions {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 300px;
  }
  
  .actions button {
    padding: 12px 24px;
    font-size: 14px;
    background: #007aff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
  }
  
  .skip-btn {
    background: transparent !important;
    color: #ccc;
  }
  
  .next-btn, .get-started-btn {
    background: #cc77ff;
    color: white;
    box-shadow: 0 0 10px #cc77ff80;
  }
  
  .dots {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
  }
  
  .dot.active {
    background: #fff;
  }
/* Loader styles */
.loader {
  border: 6px solid #333;
  border-top: 6px solid #7a3fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 20px auto;
}
.loader1 {
  border: 6px solid #333;
  border-top: 6px solid #7a3fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: #0f0f1a; */
  position: relative;
  flex-direction: column;
  gap: 15px;
}
/* Overlay that blurs the whole page */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.4);
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Show the overlay */
.blur-overlay.active {
  display: flex;
}

.effects-grid {
  display: flex;
  /* justify-content: center; */
  flex-wrap: wrap;
  gap: 20px;
}

/* Card container */
.effect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  background-color: #333;
  border: 1px solid #444;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 160px;
  text-align: center;
  transition: transform 0.2s;
  cursor: pointer;
  overflow: hidden;
}

/* Hover lift */
.effect-card:hover {
  transform: translateY(-3px);
}

/* Video styling */
.effect-video {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* Name overlay on video */
.effect-name {
  /* position: absolute;
  bottom: 0;
  left: 0; */
  width: 100%;
  padding: 5px 0;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  /* background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0)); */
  /* background: #1a1a1a; */
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  border-radius: 0 0 8px 8px;
}

/* Remove old button style */
.use-btn {
  font-size: 14px;
  display: none;
}

.create-card {
  width: 150px;
  height: 150px;
  background-color: #2d2d2d; /* dark grey */
  color: #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.create-card:hover {
  background-color: #3a3a3a;
  transform: scale(1.05);
}

.create-card .plus {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

.create-card p {
  font-size: 12px;
  margin: 0;
  color: #aaa;
}

.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* --- Modal Box --- */
.error-modal-content {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  width: 80%;
  max-width: 360px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.3s ease;
}

/* --- Error Text --- */
#errorMessage {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 0px;
  word-wrap: break-word;
}

/* --- OK Button --- */
#errorOkBtn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 25%;
  transition: background 0.2s ease;
}

#errorOkBtn:hover {
  background: #008cff;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


@media (max-width: 360px) {
  .effect-card {
    width: 140px;
  }
  .effect-video {
    height: 100px;
  }
}

/* Presentation CSS */

/* Label */
/* .label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
} */

/* Textarea */
/* textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  resize: none;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
} */

/* textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
} */

/* Button */
/* button {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
} */

/* button:active {
  transform: scale(0.98);
} */

/* Loader */
/* #loader {
  position: fixed;
  inset: 0;
  z-index: 999;
} */

/* .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
} */

/* .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
} */

/* #percent {
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
}

#statusText {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.7;
} */

/* Result */
/* #result {
  margin-top: 20px;
  text-align: center;
} */


/* Utilities */
.hidden {
  display: none;
}

/* @keyframes spin {
  to { transform: rotate(360deg); }
} */
/* .label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
} */

.sub-link {
  font-size: 12px;
  font-weight: normal;
}

.sub-link a {
  color: #2563eb;
  text-decoration: none;
}

.sub-link a:hover {
  text-decoration: underline;
}

/* Wrapper */
.select-wrapper {
  position: relative;
  margin-bottom: 14px;
}

/* Select */
.select-wrapper select {
  width: 100%;
  padding: 12px 42px 12px 12px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid #444;
  background: #333;
  color: #fff;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border .2s, box-shadow .2s;
}

/* Focus */
/* .select-wrapper select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
} */

/* Icon */
.select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 16px;
  color: #fff;
}

/* Selected state (optional) */
.select-wrapper select:not([value=""]) {
  font-weight: 500;
}

.field {
  margin-top: 16px;
}

.label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  margin-top: 10px;
}

.hint {
  font-weight: 400;
  color: #6b7280;
  font-size: 12px;
}

.length-box {
  background: #333;
  border: 1px solid #444;
  color: #6b7280;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
}

.length-box input[type="range"] {
  width: 63%;
  accent-color: #2563eb;
  margin-bottom: 12px;
}

.length-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.length-value input {
  width: 70px;
  padding: 8px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  border: 1px solid #444;
  font-size: 14px;
  text-align: center;
}

.length-value span {
  font-size: 14px;
  color: #6b7280;
}

.select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #444;
  background: #333;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Templates Css */

.templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 16px;
  max-width: 420px;
  margin: 20px auto;
}

/* Card */
.template-card {

  background: #333;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .15s ease;
}

.template-card:active {
  transform: scale(0.97);
}

.template-card img {
  width: 100%;
  height: 200px;
  /* object-fit: cover; */
}

.template-name {
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: #333;
  border-radius: 16px;
  overflow: hidden;
}

.modal-content img {
  width: 100%;
  display: block;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 34px;
  height: 35px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.select-btn {
  width: 100%;
  padding: 14px;
  border: none;
  margin-top:0px;
  border-radius:0px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Selected Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #10b981;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

/* View css */

.header {
  position: fixed;
  left: 0;
  right: 0;
  height: 56px;
  max-width: 375px;
  margin: 20px auto;
  padding: 0 14px;
  z-index: 10;
  float:right;
}

.header span {
  font-size: 15px;
  font-weight: 500;
}

.download-btn1 {
  background: #007AFF;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

/* Viewer */
.viewer {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 375px;
  margin: 20px auto 60px auto;
}

.viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Presentation CSS */

.grid {
  display: flex;
  /* grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); */
  flex-wrap: wrap;
  gap: 16px;
}

.card {
  width: 47%;
  /* background: #333;
  border-radius: 12px; */
  /* padding: 16px ; */
  /* box-shadow: 0 10px 20px #444; */
  display: flex;
  flex-direction: column;
}
.thumb img {
  width: 103px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-left: -10px;
  /* background: #eef2ff; */
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff;
}
.info{
  width:275px;
  background: #333;
  border-radius: 12px;
  padding: 14px 10px;
}
.card .date {
  font-size: 13px;
  color: #fff;
  margin-bottom: 10px;
}

.card .prompt {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* 🔹 kitni lines dikhani hain (2 ya 3) */
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;
  /* text-align:center; */
}

.card .actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  width: 35%;
}

.card button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* Edit Slide CSS */


.slide_heading {
  margin-bottom: 20px;
  font-size: 20px;
}

.slide_no {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  border: 1px solid #444;
  font-size: 14px;
  text-align: center;
  margin-bottom: 10px;
}

/* Loader CSS */
#pageLoader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

