body {
    background: #f1f3f6;
    transition: background 0.3s, color 0.3s;
}

.dark-mode {
      background: #0f172a;
      color: rgb(176, 241, 236);
  /* margin-left: 0; */

}
*{
    /* padding: 0;
    margin: 0; */

  font-family: -apple-system, BlinkMacSystemFont, 
               "Segoe UI", Roboto, 
               "Helvetica Neue", Arial, 
               sans-serif;
} 
.card {
    border-radius: 15px;
}

.preview-box {
    border: 2px dashed #ccc;
    min-height: 250px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
}

.dark-mode .preview-box {
    background: #1e1e1e;
}

.preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.drag-area {
    padding: 15px;
    text-align: center;
    border: 2px dashed #0d6efd;
    border-radius: 10px;
    cursor: pointer;
}
.homebtn {
  position: fixed;
  top: 20px;
  right: 20px;

  background: hwb(62 0% 0% / 0.85);
  color: black !important;
  text-decoration: none;

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

  padding: 8px 18px;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 600;

  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  z-index: 9999;

  transition: 0.2s ease;

  
}

.homebtn:hover {
  background:#00f2ff;
  font-weight:bold;
}
.btn-btn-primary:hover {
    background-color: #65eb6e;
    border-radius: 5px;
    /* border: none; */
}

/* ========================= */
/* MOBILE RESPONSIVE  */
/* ========================= */
/* mobile-480px,large/small tablet-481,tablets,768-1024px,laptops-1025-1200px,desktops-1201px and above 600 for it  */  
@media (max-width: 480px) {

  body {
    padding: 10px;
  }

  .card {
    border-radius: 12px;
  }

  .preview-box {
    min-height: 180px;
    padding: 10px;
  }

  .drag-area {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Stack inputs nicely */
  .form-row,
  .dimension-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Fix home button */
  .homebtn {
    /* gap: 10px; */
    /* background-position: 0px 0px; */
      display: center;
  width: 30px;   
    position: fixed;
    top: 10px;
    left: 20px;
    margin-left: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
  }

  /* Buttons full width */
  button,
  .btn,
  .btn-btn-primary {
    width: 100%;
  }
}
