* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    color: #333;
  }
  
  .container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 15px;
  }
  .container h3{
    font-size:14px;
  }
  .header-section{
    width: 100%;
    max-width: 400px;
    height:57px;
    background-color: #fff;
    margin: 0 auto;
  }
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    border-bottom: 2px solid #d3d3d3;
    margin: 0px auto;
    padding-top: 5px;
    padding-bottom:5px;
    position:fixed;
    z-index:999;
  }
  
  .header-info {
    display: flex;
    font-size: 14px;
    gap: 10px;
    /* margin-bottom:25px; */
    
  }
  
  .settings-btn {
    background: none;
    border: none;
    color: #03309C;
    font-size: 18px;
    margin-top:0px;
    margin-right:10px;
  }
  
  .mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: fixed;
    /* height:40rem; */
    /* overflow-x:scroll; */
    top: 60px;
    left: 0px;
    margin: 0px auto;
    width: 100%;
    max-width: 400px;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.3); */
    z-index: 999999;
  
  }

  .mobile-menu a {
    padding: 12px;
    color: #333;
    text-decoration: none;
    /* border-bottom: 1px solid #d3d3d3; */
  }

  .mobile-menu a:hover {
    background-color: #e5e5e5;
  }
  .mobile-menu a.active {
    background-color: #d3d3d3;
    font-weight: 600;
  }

  /* Show menu when active */
  .mobile-menu.active {
    display: flex;
  }
  #closemenu{
    display:none;
  }
  /* 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;
    margin-top: 30px;
  }
  
  textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #fff;
    border: 2px solid #d3d3d3;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    height:15vh;
  }
  textarea.active{
    border: 1px solid #333;
  }
  
  button {
    font-family: Arial, sans-serif;
    padding: 12px;
    margin-top: 10px;
    background-color: #fff;
    border: 2px solid #d3d3d3;
    border-radius: 5px;
    color: #333;
    font-size: 14px;
  }
  
  button:disabled {
    background-color: #888;
  }
  .get-idea-btn {
    font-family: Arial, sans-serif;
    padding: 8px;
    margin-top: -2px;
    background-color: #d3d3d3;
    border: 2px solid #d3d3d3;
    border-radius: 5px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
  }

  .create-btn {
    width: 90%;
    background: #fff;
    border:2px solid #d3d3d3;
    color: #333;
    padding: 14px 0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }

  .create-btn:hover {
    background: #d3d3d3;
    color:#333;
  }
  .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:#fff;
    border: 2px solid #d3d3d3;
    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: #fff;
    border: 2px solid #d3d3d3;
    border-radius: 10px;
    /* text-align: center; */
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  .style-item p{
    color:#333 !important;
  }
 /* Existing CSS ... */

.ratio-item.active,
.style-item.active {
  transform: scale(1.05);
  background-color:#d3d3d3;
  border: 2px solid #d3d3d3; 
}

.ratio-item.active p,
.style-item.active p {
  color: #333;
  font-size: 14px; 
}

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

 
  .mobile-footer .nav-item {
    color: #888; /* 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: #333;
    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;
    }
  }
  
  #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: #333;
    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;
  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;
  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 {
  width: 100%;
  padding: 5px 0;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  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: #fff; /* dark grey */
  color: #333;
  border:2px solid #d3d3d3;
  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: #d3d3d3;
  transform: scale(1.05);
}

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

.create-card p {
  font-size: 12px;
  margin: 0;
}
.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: #fff;
  padding: 20px;
  border-radius: 16px;
  width: 80%;
  max-width: 360px;
  text-align: center;
  color: #333;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.3s ease;
}

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

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

#errorOkBtn:hover {
  background: #d3d3d3;
}

#confirmNoBtn {
  background: #fff;
  color: #333;
  border: none;
  border:2px solid #d3d3d3;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#confirmNoBtn:hover {
  background: #d3d3d3;
}
#confirmYesBtn {
  background: #fff;
  color: #333;
  border: none;
  border:2px solid #d3d3d3;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#confirmYesBtn:hover {
  background: #e11d48;
  color:#fff;
}
@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 */

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

.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;
}

/* 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; */
  margin-top: 22px;
}

.label {
  font-size: 15px;
  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: 2px solid #d3d3d3;
  background: #fff;
  color: #333;
  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: #fff;
  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: 15px auto;
  padding: 0 0px;
  z-index: 10;
  /* float:right; */
}

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

.download-btn1 {
  background: #fff;
  color: #333;
  border: 2px solid #d3d3d3;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.download-btn1:hover{
  background: #d3d3d3;
}

/* 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%;
  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: #fff;
  /* border: 2px solid #d3d3d3; */
  border-radius: 12px;
  padding: 10px 10px;
  display: flex;
}
.card .date {
  font-size: 13px;
  color: #fff;
  margin-bottom: 10px;
}

.card .prompt {
  font-size: 14px;
  color: #333;
  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;
  background: #fff;
  border: 2px solid #d3d3d3;
  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: #fff;
  color: #333;
  border: 2px solid #d3d3d3;
  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 #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


.mobile-card {
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  /* overflow: hidden; */
  margin: 12px;
  color: #333;
  font-family: Arial, sans-serif;
}

.image-wrapper {
  position: relative;
  height:168px;
  background-color: #d3d3d3;
  border-radius: 10px 10px 0px 0px;
}

.title-overlay {
  position: absolute;
  top: 36%;
  left: 0;
  right: 0;
  /* background: rgba(255, 255, 255, 0.92); */
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.title-overlay h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color:#333;
}
.text-content{
  width:96%
}
.text-content span {
  font-size: 13px;
  font-weight: 600;
}

.menu-wrapper {
  position: relative;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  padding: 0 4px;
  margin: 0px;
}

.menu-ppt-list {
  display: none;
  position: absolute;
  right: 0;
  top: 22px;
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 6px;
  list-style: none;
  padding: 5px 0;
  width: 120px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.menu-ppt-list li {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.menu-ppt-list li:hover {
  background: #f5f5f5;
}

.menu-ppt-list .danger {
  color: #d9534f;
}
