@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* body {
  font-family: "Inter", sans-serif;
  background: #f4f5f9;
  color: #09031a;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
} */

.all-content {
  /* height: calc(100vh - var(--navbarHeight)); */
  height: 100vh;
  margin-left: 0 !important;
  padding: 0;
}

.navbar {
  left: 0;
  width: 100%;
}

.navbar .nav-menu {
  display: none;
}

.navbar .nav-menu svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.nav-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 100%;
  z-index: 999999;
  background: white;
  padding: 30px 20px;
  transition: 0.3s;
  transform: translateX(-100%);
}
.nav-panel.open {
  transform: translateX(0);
}

.nav-panel .content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #e4e5ec;
  flex-shrink: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo {
  background-size: contain !important;
  background-position: left center !important;
  width: 180px;
  height: 44px;
}
.brand {
  font-weight: 700;
  font-size: 22px;
  color: #7c5cfd;
}
.nav-links {
  display: flex;
  gap: 10px;
}
.nav-links a {
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.login {
  color: #7c5cfd;
  border: 2px solid #d9d3fa;
  background: #fff;
}
.login:hover {
  background: #f5f3ff;
}
.signup {
  color: #fff;
  background: #7c5cfd;
  border: 2px solid #7c5cfd;
}
.signup:hover {
  background: #7c64f0;
  color: white;
}

.create-design {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* TABS */
.tabs {
  display: flex;
  gap: 0;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #e4e5ec;
  flex-shrink: 0;
}
.tab {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  transition: 0.2s;
}
.tab:hover {
  color: #555;
}
.tab.active {
  color: #7c5cfd;
  border-bottom-color: #7c5cfd;
}

/* MAIN */
.main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* LEFT */
.left {
  width: 420px;
  background: #fff;
  border-right: 1px solid #e4e5ec;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  transition: 0.3s;
  /* justify-content: center; */
}

.left #uploadCustom {
  padding: 40px;
}

.upload-box {
  border: 2.5px dashed #c5bffa;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
  max-width: 400px;
  background: #faf8ff;
}
.upload-box:hover {
  border-color: #7c5cfd;
  background: #f3f0ff;
  box-shadow: 0 4px 20px rgba(98, 70, 234, 0.08);
}
.upload-box .ub-icon {
  font-size: 52px;
  margin-bottom: 12px;
  opacity: 0.7;
}
.upload-box .ub-title {
  font-size: 18px;
  font-weight: 700;
  color: #090f1a;
  margin-bottom: 6px;
}
.upload-box .ub-sub {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  line-height: 1.5;
}
.upload-box .ub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7c5cfd;
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 3px 10px rgba(98, 70, 234, 0.2);
}
.upload-box .ub-btn:hover {
  background: #7c64f0;
  box-shadow: 0 5px 16px rgba(98, 70, 234, 0.3);
}
.upload-box .ub-formats {
  font-size: 12px;
  color: #bbb;
  margin-top: 14px;
}

/* RIGHT */
/* .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #f4f5f9;
} */

.welcome {
  text-align: center;
  max-width: 460px;
}
.welcome h2 {
  font-size: 22px;
  font-weight: 700;
  color: #09031a;
  margin-bottom: 8px;
}
.welcome p {
  font-size: 15px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.6;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid #e8e8ee;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.feature .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c5cfd;
  flex-shrink: 0;
}

/* --------------- */

/* LEFT */
/* .left {
				width: 420px;
				background: #fff;
				border-right: 1px solid #e4e5ec;
				display: flex;
				flex-direction: column;
				flex-shrink: 0;
			} */

.design-library .content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 110px);
}
.left-header {
  padding: 20px 24px 0;
  flex-shrink: 0;
}
.left-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.left-header p {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}
.left-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7c5cfd;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #f5f3ff;
  transition: 0.2s;
}
.left-header .back-btn:hover {
  background: #ebe7ff;
}

.left-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 24px;
  margin-top: 15px;
}
.left-scroll::-webkit-scrollbar {
  width: 5px;
}
.left-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

/* SECTION LABELS */
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  margin-top: 4px;
}

/* FOLDER CARD */
.folder-card {
  background: #fff;
  border: 2px solid #eaeaf0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 12px;
}
.folder-card:hover {
  border-color: #7c5cfd;
  background: #faf8ff;
  box-shadow: 0 3px 12px rgba(98, 70, 234, 0.08);
}
.folder-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fef9c3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.folder-details .folder-name {
  font-size: 14px;
  font-weight: 700;
  color: #090f1a;
}
.folder-details .folder-count {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.folder-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #ccc;
  transition: 0.2s;
}
.folder-card:hover .folder-arrow {
  color: #7c5cfd;
}

/* DESIGN GRID */
.sub-lib-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 0;
}

.lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.lib-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid #eaeaf0;
  transition: 0.2s;
  text-align: center;
}
.lib-card:hover {
  border-color: #7c5cfd;
  box-shadow: 0 4px 14px rgba(98, 70, 234, 0.1);
}
.lib-card.selected {
  border-color: #7c5cfd;
  background: #faf8ff;
}
.lib-card .thumb {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5fa;
  overflow: hidden;
}
.lib-card .name {
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.lib-card.selected .name {
  color: #7c5cfd;
}

.upload-zone {
  border: 2.5px dashed #d5d5e0;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}
.upload-zone:hover {
  border-color: #7c5cfd;
  background: #faf8ff;
}
.upload-zone .uz-icon {
  font-size: 36px;
  margin-bottom: 6px;
  opacity: 0.5;
}
.upload-zone .uz-title {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}
.upload-zone .uz-sub {
  font-size: 12px;
  color: #aaa;
}

/* RIGHT */
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  overflow: hidden;
  background: #f4f5f9;
}
.right-header {
  padding: 20px 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.right-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.right-header .count {
  background: #7c5cfd;
  color: #fff;
  padding: 2px 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
}
.btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.gen-btn {
  background: #7c5cfd;
  border: none;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 3px 10px rgba(98, 70, 234, 0.2);
}
.gen-btn:hover {
  background: #7c64f0;
  box-shadow: 0 5px 18px rgba(98, 70, 234, 0.28);
}
.clear-btn {
  background: #fff;
  border: 2px solid #fca5a5;
  color: #e5484d;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.clear-btn:hover {
  background: #fef2f2;
}

.right-scroll {
  /* flex: 1; */
  overflow-y: auto;
  padding: 0 28px 28px;
  height: calc(100vh - 200px);
}
.right-scroll::-webkit-scrollbar {
  width: 5px;
}
.right-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.design-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1.5px solid #e8e8ee;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.card-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.card-preview {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  background: #f5f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #eaeaf0;
  overflow: hidden;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.card-info .card-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.dpi {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #ecfdf5;
  color: #008143;
}
.controls {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 5px;
}
.control-group input[type="number"] {
  width: 90px;
  padding: 10px 12px;
  border: 2px solid #eaeaf0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  outline: none;
  color: #09031a;
  background: #f8f9fb;
  transition: 0.2s;
}
.control-group input[type="number"]:focus {
  border-color: #7c5cfd;
}
.qty-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #eaeaf0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fb;
}
.qty-wrap button {
  width: 40px;
  height: 42px;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  color: #444;
  transition: 0.15s;
}
.qty-wrap button:hover {
  background: #f0edff;
  color: #7c5cfd;
}
.qty-wrap .quantity-input {
  width: 42px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-left: 2px solid #eaeaf0 !important;
  border-right: 2px solid #eaeaf0 !important;
  line-height: 42px !important;
  padding: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
}

.qty-wrap .quantity-input {
  border-color: #eaeaf0 !important;
}

.qty-wrap .quantity-input::-webkit-outer-spin-button,
.qty-wrap .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #eaeaf0;
  background: #fff;
  color: #444;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-btn:hover {
  border-color: #c5bffa;
  color: #7c5cfd;
  background: #faf8ff;
}
.card-btn.accent {
  background: #7c5cfd;
  color: #fff;
  border-color: #7c5cfd;
}
.card-btn.accent:hover {
  background: #7c64f0;
}
.card-btn.danger {
  border-color: #fca5a5;
  color: #e5484d;
}
.card-btn.danger:hover {
  background: #fef2f2;
  border-color: #e5484d;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}
.empty .icon {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.4;
}
.empty p {
  font-size: 15px;
  font-weight: 500;
}
.empty .sub {
  font-size: 13px;
  color: #ccc;
  margin-top: 4px;
}
