/*! Normalise CSS - Bootstrap Reboot handles most, but this adds our custom layer */
@import url(normalize.css);
@import url(../fonts/fonts.css);
/* =========================================
   1. THEME ENGINE & VARIABLES
   ========================================= */
:root {
  /* --- Light Mode Palette (Default) --- */
  /* Brand Colors - UPDATED TO NEW SPECS */
  --Primary-Main: #d5790f; /* New Primary Orange */
  --Primary-Hover: #af640d; /* Darker shade for hover */
  --Primary-Surface: #fdfdfd; /* Light tint for hover backgrounds */
  --Secondary-Main: #016a9b; /* New Secondary Blue */
  --Warning-Main: #d5b70f;
  --neutral-white-4: #f7f7f7;
  --neutral-black-3: #282828;
  --neutral-white-1: #ffffff;
  --check-border: #fff;
  /* Layout */
  --sidebar-width: 88px;
  /* Backgrounds (From White Scale) */
  --bg-body: #ffffff; /* White #1 */
  --bg-surface: #fdfdfd; /* White #2 (Cards/Sidebar) */
  --bg-surface-secondary: #f7f7f7; /* White #4 (Inputs/Secondary areas) */
  /* Text (From Black Scale) */
  --text-main: #000000; /* Black #1 */
  --text-secondary: #363636; /* Black #4 */
  --text-muted: #777777; /* Black #6 */
  /* Borders */
  --border-color: #e2e2e2; /* White #9 */
  --border-dashed: #adadad; /* Black #8 */
  --border-color-gray-dark: #f2f2f2;
  /* Shadows */
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  /* Fonts */
  --font-main: "Satoshi";
  --fa-style-family-classic: "Font Awesome 6 Free";
  /* Avatar Colors */
  --Avatar-Blue: #0078d4;
  /* Alert / Status Colors */
  --status-success: #109b01;
  --status-success-bg: #eaf7e8;
  /* RED: Used for Logout Button */
  --status-error: #d72323;
  --status-error-bg: #fdeaea;
  --status-warning: #d5b70f;
  --status-warning-bg: #fff9e5;
  --status-info: #016a9b;
  --shades-primary-2: #cccccc;
  --neutral-white-9: #e2e2e2;
  --neutral-white-7: #f1f1f1;
  --border-gray-bottom: #e9e9e9;
  --bg-light: #f5f5f5;
  --logo-color: #1c2528;
  --view-bar: #fff;
}

/* OVERRIDE: Dark Mode */
[data-theme=dark] {
  /* Brand Colors */
  --Primary-Main: #d5790f;
  --Primary-Hover: #af640d;
  --Primary-Surface: #1a1a1a; /* Dark brown tint for hover */
  --Secondary-Main: #016a9b;
  --neutral-white-5: #212121;
  --neutral-white-4: #f7f7f744;
  --neutral-black-3: #bbbbbb;
  --neutral-white-1: #141414;
  /* Backgrounds (Flipped White Scale -> Dark) */
  --bg-body: #141414; /* White #1 Dark Variant */
  --bg-surface: #1a1a1a; /* White #2 Dark Variant */
  --bg-surface-secondary: #2a2a2a; /* White #4 Dark Variant */
  /* Text (Flipped Black Scale -> Light) */
  --text-main: #ffffff; /* Black #1 Dark Variant */
  --text-secondary: #d1d1d1; /* Black #4 Dark Variant */
  --text-muted: #9e9e9e; /* Black #6 Dark Variant */
  /* Borders */
  --border-color: #454545; /* White #7 Dark Variant */
  --border-dashed: #525252; /* White #8 Dark Variant */
  --border-color-gray-dark: #3b3b3b;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* RED: Dark mode adjustment */
  --status-error: #f28b82;
  --status-error-bg: #2b1212;
  --Avatar-Blue: #0078d4; /* Stays same or adjust if needed */
  --shades-primary-2: #3d3b38;
  --neutral-white-9: #626262;
  --check-border: #d5790f;
  --neutral-white-7: #454545;
  --border-gray-bottom: #525252;
  --bg-light: #141414;
  --logo-color: #fff;
  --view-bar: #2a2a2a; /* White #4 Dark Variant */
}

/* =========================================
   2. GLOBAL RESET & BASE
   ========================================= */
body {
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
  background: var(--Primary-Surface);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  /* Smooth Theme Switch */
  transition: background 0.3s ease, color 0.3s ease;
}
body::-webkit-scrollbar {
  display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-family: var(--font-main);
  font-weight: 600;
}
h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
  color: var(--Primary-Main);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--Primary-Main);
}

img {
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-object-fit: cover;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul li {
  margin: 0;
  padding: 0;
}

/* Utility Helpers */
.bg-body {
  background-color: var(--bg-body) !important;
}

.bg-surface {
  background-color: var(--bg-surface) !important;
}

.bg-surface-secondary {
  background-color: var(--bg-surface-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Special Class: Card that stays white even in dark mode (Promo Card) */
.always-light-card {
  background-color: #ffffff !important;
  color: #000000 !important;
}
.always-light-card h1,
.always-light-card h2,
.always-light-card h3,
.always-light-card p {
  color: #000000 !important;
}
.always-light-card p.text-warning {
  color: var(--Primary-Main) !important;
}

/* The Main Track */
.noUi-target {
  background: var(--shades-primary-2);
  border-radius: 4px;
  border: none;
  box-shadow: none;
  height: 4px; /* Thin track like design */
  margin-top: 10px; /* Space from header */
  margin-bottom: 15px;
}

/* The Connecting Bar (Color fill) */
.noUi-connect {
  background: var(--Primary-Main); /* Orange fill */
}

/* The Handle (Knob) */
.noUi-horizontal .noUi-handle {
  width: 20px;
  height: 20px;
  right: -10px; /* Half of width to center */
  top: -8px; /* Vertical alignment */
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  /* Remove default stripes */
}
.noUi-horizontal .noUi-handle::before, .noUi-horizontal .noUi-handle::after {
  display: none;
}
.noUi-horizontal .noUi-handle {
  /* Hover State */
}
.noUi-horizontal .noUi-handle:hover {
  transform: scale(1.1);
  border-color: var(--Primary-Main);
}

/* Remove default highlight/outline on click */
.noUi-handle:focus {
  outline: none;
}

/* =========================================
LAYOUT: SIDEBAR APP STRUCTURE
========================================= */
.app-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 999;
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s ease;
  justify-content: space-between;
  padding: 1.25rem 0.5rem;
  gap: 2.5rem;
}
.sidebar.showMenu {
  left: 0%;
}
.sidebar .logo {
  width: 2.5rem;
}
.sidebar .logo img {
  width: 100%;
}
.sidebar {
  /* Your custom nested structure */
}
.sidebar .middle-nav {
  height: calc(100vh - 17.825rem);
}
.sidebar .middle-nav nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar .middle-nav nav ul li .nav-link {
  color: var(--text-muted);
  transition: all 0.3s;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8125rem;
  height: 2.8125rem;
  padding: 10px;
  position: relative;
}
.sidebar .middle-nav nav ul li .nav-link .icon-img {
  width: 20px;
  height: 20px;
  aspect-ratio: 1/1;
}
.sidebar .middle-nav nav ul li .nav-link .icon-img img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  vertical-align: unset;
}
[data-theme=dark] .sidebar .middle-nav nav ul li .nav-link .icon-img img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}
.sidebar .middle-nav nav ul li .nav-link .text-hover {
  display: flex;
  padding: 0.625rem 1rem;
  align-items: center;
  gap: 0.625rem;
  position: absolute;
  left: 4.0625rem;
  border-radius: 0.9375rem;
  background-color: var(--bg-surface);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  color: var(--neutral-black-3);
  font-family: Satoshi;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25rem; /* 142.857% */
}
.sidebar .middle-nav nav ul li.active .nav-link {
  background-color: var(--Primary-Main);
  color: #fff;
  box-shadow: 0 4px 10px rgba(213, 121, 15, 0.3); /* Updated shadow color */
}
.sidebar .middle-nav nav ul li.active .nav-link .text-hover {
  background-color: #d5790f;
  color: #fff;
}
.sidebar .middle-nav nav ul li.active:hover .nav-link {
  background-color: var(--Primary-Main);
}
.sidebar .middle-nav nav ul li:hover .nav-link {
  color: var(--Primary-Main);
  background-color: var(--neutral-white-4); /* Updated to new tint */
}
.sidebar .middle-nav nav ul li:hover .nav-link .text-hover {
  opacity: 1;
  pointer-events: all;
}
.sidebar .bottom-ava-mode-footer {
  display: flex;
  gap: 1.875rem;
  justify-self: center;
  align-items: center;
  flex-direction: column;
}
.sidebar .bottom-ava-mode-footer a.logout {
  padding: 1rem;
  display: flex;
  color: var(--status-error); /* Red variable */
  margin-top: 0.5rem;
  gap: 1rem;
  border-radius: 15px;
}
.sidebar .bottom-ava-mode-footer a.logout i {
  color: var(--status-error);
}
.sidebar .bottom-ava-mode-footer a.logout:hover {
  background-color: var(--status-error-bg); /* Light red bg */
}
.sidebar .bottom-ava-mode-footer a.logout.mobile {
  display: none;
}

header.main-header {
  position: sticky;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 999;
  background: var(--bg-body);
  padding: 1rem;
}
header.main-header .adjust-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.main-header .adjust-flex .left-flex,
header.main-header .adjust-flex .right-flex {
  gap: 0.75rem;
  display: flex;
  align-items: center;
}
header.main-header .adjust-flex .left-flex a.logo {
  display: inline-block;
  width: 6.6875rem;
}
header.main-header .adjust-flex .left-flex a.logo img {
  width: 100%;
}

.logo svg path.dark-mode {
  fill: var(--logo-color);
}

/* Menu Button 1 */
.menu-btn-1 {
  width: 3.25rem;
  height: 3rem;
  aspect-ratio: 13/12;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.menu-btn-1 span,
.menu-btn-1 span::before,
.menu-btn-1 span::after {
  background: var(--neutral-black-3);
  border-radius: 3px;
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  margin-top: 0;
  transition: 0.3s ease-in-out;
}
.menu-btn-1 span::before {
  margin-top: -0.5rem;
}
.menu-btn-1 span::after {
  margin-top: 0.5rem;
}
.menu-btn-1.active span {
  background: transparent;
}
.menu-btn-1.active span::before {
  margin-top: 0;
  transform: rotate(45deg);
}
.menu-btn-1.active span::after {
  margin-top: 0;
  transform: rotate(-45deg);
}
.menu-btn-1.ipad-icon {
  display: none;
}
[data-theme=dark] .menu-btn-1.ipad-icon img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

/* =========================================
   MOBILE USER PROFILE COMPONENT
   ========================================= */
.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  width: 100%;
  font-family: var(--font-main, sans-serif);
  /* --- Avatar Circle --- */
}
.mobile-user-profile .m-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Image shows circle */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Text inside avatar */
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  /* State: Guest (Black Background) */
}
.mobile-user-profile .m-avatar.guest {
  background-color: #000;
}
.mobile-user-profile .m-avatar {
  /* State: Logged In (Blue Background) */
}
.mobile-user-profile .m-avatar.blue {
  background-color: #006080; /* Dark Teal/Blue */
}
.mobile-user-profile {
  /* --- Right Side Text Details --- */
}
.mobile-user-profile .m-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden; /* Required for truncation */
  flex: 1;
}
.mobile-user-profile .m-details p {
  margin: 0;
  padding: 0;
}
.mobile-user-profile {
  /* Name Row (Flex to keep badge next to name) */
}
.mobile-user-profile .m-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.mobile-user-profile .m-username {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  margin: 0;
  /* Truncate text if too long (e.g. "Test User O...") */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.mobile-user-profile {
  /* "Free" Badge */
}
.mobile-user-profile .m-badge.free {
  background-color: #e3f2fd; /* Light Blue/Cyan */
  color: #006080; /* Dark Blue Text */
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-user-profile {
  /* --- Option A: Login Link (Orange) --- */
}
.mobile-user-profile .m-login-link {
  color: #d97706; /* Brand Orange */
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px; /* Space between text and line */
  cursor: pointer;
}
.mobile-user-profile .m-login-link:hover {
  color: #b45309;
}
.mobile-user-profile {
  /* --- Option B: User Email (Gray) --- */
}
.mobile-user-profile .m-user-email {
  margin: 0;
  font-size: 0.85rem;
  color: #555; /* Dark Gray */
  /* Truncate email like image (tech-access@fortmin...) */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* =========================================
CUSTOM COMPONENT: USER POPOVER
========================================= */
.user-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
  background-color: var(--text-main); /* Adapts to theme */
  color: var(--bg-body);
  border-radius: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.user-avatar.blue {
  background-color: #016a9b;
}

/* =========================================
USTOM COMPONENT: USER POPOVER
   ========================================= */
.user-profile-wrapper {
  position: relative;
  z-index: 1050;
  display: flex;
  gap: 1rem;
  /* --- Right Side Text Details --- */
}
.user-profile-wrapper .m-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden; /* Required for truncation */
  flex: 1;
  position: absolute;
}
.user-profile-wrapper .m-details.ipadOnly {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}
.user-profile-wrapper .m-details p {
  margin: 0;
  padding: 0;
}
.user-profile-wrapper {
  /* Name Row (Flex to keep badge next to name) */
}
.user-profile-wrapper .m-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.user-profile-wrapper .m-username {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  margin: 0;
  /* Truncate text if too long (e.g. "Test User O...") */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.user-profile-wrapper {
  /* "Free" Badge */
}
.user-profile-wrapper .m-badge.free {
  background-color: #e3f2fd; /* Light Blue/Cyan */
  color: #006080; /* Dark Blue Text */
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.user-profile-wrapper {
  /* --- Option A: Login Link (Orange) --- */
}
.user-profile-wrapper .m-login-link {
  color: #d97706; /* Brand Orange */
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px; /* Space between text and line */
  cursor: pointer;
}
.user-profile-wrapper .m-login-link:hover {
  color: #b45309;
}
.user-profile-wrapper {
  /* --- Option B: User Email (Gray) --- */
}
.user-profile-wrapper .m-user-email {
  margin: 0;
  font-size: 0.85rem;
  color: #555; /* Dark Gray */
  /* Truncate email like image (tech-access@fortmin...) */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Trigger */
.user-avatar {
  /* (Your existing avatar styles handle width/height/radius) */
  cursor: pointer;
  transition: transform 0.2s;
}
.user-avatar:hover {
  transform: scale(1.05);
}

/* Popover Container */
.user-popover {
  position: absolute;
  left: 60px;
  bottom: 0;
  width: 290px;
  background: var(--bg-surface); /* Matches Theme */
  border: 1px solid var(--border-color); /* Added border for better definition */
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  /* Animation State */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.user-popover.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Arrow */
.popover-arrow {
  position: absolute;
  left: -9px; /* Adjusted for border */
  bottom: 20px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid var(--border-color); /* Border color for arrow base */
  /* Inner arrow to cover border */
}
.popover-arrow::after {
  content: "";
  position: absolute;
  left: 1px;
  top: -8px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--bg-surface);
}

/* --- Content Styling (Replaces Bootstrap Utilities) --- */
.popover-header {
  display: flex;
  align-items: center;
  gap: 1rem; /* Replaces gap-3 */
  margin-bottom: 1.5rem; /* Replaces mb-4 */
}

.popover-avatar {
  /* Inherit base avatar size but specific colors */
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  background-color: #000;
  color: #fff;
}
.popover-avatar.blue {
  background-color: var(--Avatar-Blue); /* Uses variable now */
  color: #fff;
}
.popover-avatar {
  /* Dark mode override */
}
[data-theme=dark] .popover-avatar {
  background-color: #fff;
  color: #000;
}

.user-title {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Replaces gap-2 */
  margin-bottom: 0.25rem; /* Replaces mb-1 */
}
.user-title .name {
  font-weight: 500;
  color: var(--text-main);
}

.status-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* "Free" Badge */
.badge-free {
  background-color: #e3f2fd;
  color: #016a9b;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}
[data-theme=dark] .badge-free {
  background-color: rgba(1, 106, 155, 0.2);
  color: #56c9ff;
}

/* Custom Button Class */
.popover-btn {
  display: inline-block;
  padding: 0.6rem 0.9375rem;
  border-radius: 50px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background-color: var(--Primary-Main);
  color: #fff;
  transition: background 0.3s ease;
}
.popover-btn:hover {
  background-color: var(--Primary-Hover);
}

.popover-content {
  width: 100%;
}

/* Header Adjustments */
.popover-header {
  margin-bottom: 1.25rem;
}

.user-email {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all; /* Ensures long emails don't break layout */
}

/* Divider */
.popover-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 1rem 0;
}

/* --- Credits Section --- */
.credits-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.credits-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.credits-label span.icon-20 {
  width: 1.25rem;
  height: 1.25rem;
  aspect-ratio: 1/1;
}
.credits-label span.icon-20 img {
  width: 100%;
}
.credits-label span.icon-20 {
  /* Dark mode override */
}
[data-theme=dark] .credits-label span.icon-20 img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}
.credits-label i {
  color: var(--text-muted);
}

.credits-count {
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--bg-surface-secondary); /* Light grey track */
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #333; /* Dark grey fill from image */
  border-radius: 10px;
  /* Dark mode adjustment */
}
[data-theme=dark] .progress-fill {
  background-color: #fff;
}

/* --- Menu List --- */
.popover-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.popover-menu li {
  margin-bottom: 0.25rem;
}
.popover-menu li:last-child {
  margin-bottom: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem; /* Padding for click area */
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}
.menu-item span.icon-20 {
  width: 1.25rem;
  height: 1.25rem;
  aspect-ratio: 1/1;
}
.menu-item span.icon-20 img {
  width: 100%;
}
.menu-item span.icon-20 {
  /* Dark mode override */
}
[data-theme=dark] .menu-item span.icon-20 img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}
.menu-item i {
  font-size: 1rem;
  color: var(--text-muted);
  width: 20px; /* Align icons */
  text-align: center;
}
.menu-item {
  /* Hover State */
}
.menu-item:hover {
  background-color: var(--bg-surface-secondary);
  color: var(--text-main);
}
.menu-item {
  /* Specific Logout Style (Red) */
}
.menu-item.logout {
  color: var(--status-error); /* Red variable */
  margin-top: 0.5rem;
}
.menu-item.logout i {
  color: var(--status-error);
}
.menu-item.logout:hover {
  background-color: var(--status-error-bg); /* Light red bg */
}

/* =========================================
COMPONENT: BUTTONS
========================================= */
.btn-global {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  border-radius: 0.9375rem;
  transition: all 0.3s ease-in-out;
  font-family: var(--font-main);
  /* Primary Button Styling (Orange) */
}
.btn-global-orange {
  background-color: var(--Primary-Main);
  border: 1px solid var(--Primary-Main);
  color: #fff;
}
.btn-global-orange:hover, .btn-global-orange:focus, .btn-global-orange:active {
  background: var(--Primary-Hover); /* Updated Hover */
  color: #fff;
  border-color: var(--Primary-Hover);
}
.btn-global {
  /* Outline Button */
}
.btn-global-outline-orange {
  color: var(--Primary-Main);
  border: 1px solid var(--Primary-Main);
  background-color: var(--neutral-white-4, #f7f7f7);
}
.btn-global-outline-orange:hover {
  background: var(--Primary-Main);
  color: #fff;
}
.btn-global {
  /* White Button (Used in Tabs) */
}
.btn-global-white {
  background: var(--bg-surface);
  border: 1px solid transparent;
  color: var(--Primary-Main);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-global-white:hover {
  background: var(--bg-surface-secondary);
}
.btn-global-icon {
  display: inline-flex;
  gap: 0.5rem;
}
.btn-global-gray {
  background-color: var(--neutral-white-7);
  border: none;
}
.btn-global-green {
  background-color: var(--status-success);
  color: #fff;
  border: none;
}
.btn-global {
  /* Outline Button */
}
.btn-global-outline-gray {
  color: var(--neutral-black-3);
  border: 1px solid var(--border-color-gray-dark);
  background-color: var(--bg-body);
}
.btn-global-outline-gray:hover {
  background: var(--Primary-Main);
  color: #fff;
}
.btn-global-outline-gray:hover span.icon14 {
  /* Dark Mode Track Style */
}
[data-theme=dark] .btn-global-outline-gray:hover span.icon14 img {
  filter: brightness(0) saturate(100%) invert(76%) sepia(28%) saturate(0%) hue-rotate(270deg) brightness(109%) contrast(101%);
}
.btn-global-blue {
  border-radius: 15px;
  background: var(--Hue-Secondary, #016a9b);
  color: var(--neutral-white-1);
}
.btn-global-blue:hover {
  background: #004c72;
  color: #fff;
}
.btn-global span.icon {
  display: flex;
  width: 1.1875rem;
  height: 1.1875rem;
  padding: 0.38rem 0.3325rem 0.3325rem 0.38rem;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 60px;
  background: var(--bg-surface-secondary);
  /* Dark Mode Track Style */
}
[data-theme=dark] .btn-global span.icon img {
  filter: brightness(0) saturate(100%) invert(76%) sepia(28%) saturate(0%) hue-rotate(270deg) brightness(109%) contrast(101%);
}
.btn-global span.icon14 {
  display: flex;
  width: 0.875rem;
  height: 0.875rem;
  aspect-ratio: 1/1;
  /* Dark Mode Track Style */
}
[data-theme=dark] .btn-global span.icon14 img {
  filter: brightness(0) saturate(100%) invert(76%) sepia(28%) saturate(0%) hue-rotate(270deg) brightness(109%) contrast(101%);
}

/* =========================================
COMPONENT: FORMS
   ========================================= */
input:not([type=submit]):not([type=checkbox]):not([type=radio]),
textarea,
select {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--bg-surface-secondary); /* Updated to White #4 */
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 0.9375rem;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.3s ease;
  border-top-left-radius: 0.9375rem;
  border-bottom-left-radius: 0.9375rem;
}
input:not([type=submit]):not([type=checkbox]):not([type=radio]):focus,
textarea:focus,
select:focus {
  border-color: var(--Primary-Main);
  background: var(--bg-surface);
}
input:not([type=submit]):not([type=checkbox]):not([type=radio])::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder {
  color: #999;
}
input:not([type=submit]):not([type=checkbox]):not([type=radio])::placeholder,
textarea::placeholder,
select::placeholder {
  color: #999;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("../images/select-arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  border-top-left-radius: 0.9375rem;
  border-bottom-left-radius: 0.9375rem;
}

/* =========================================
PAGE SPECIFIC: HOME / NEW ORDER
   ========================================= */
/* The Main Card Container */
.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color) !important;
  border-radius: 16px;
}

/* Service Tabs (The Pill Switcher) */
.tab-pill-container {
  background-color: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
  display: inline-flex;
}

/* Upload Zone */
.upload-zone {
  margin: 1.5rem 0;
  transition: all 0.3s;
}

/* Upload Options (My Device / Dropbox) */
.upload-option {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.upload-option:hover {
  transform: translateY(-5px);
}

/* =========================================
COMPONENT: SLIDE TOGGLE (Light/Dark)
   ========================================= */
/* <div class="theme-switch-wrapper">
    <label class="theme-switch" for="checkbox">
        <input type="checkbox" id="checkbox" />
        <div class="slider">
            <div class="slider-knob">
                <span class="fas fa-sun" id="toggle-icon"></span>
            </div>
        </div>
    </label>
</div>*/
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.theme-switch-wrapper .theme-text-change {
  display: none;
}
.theme-switch-wrapper .theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}
.theme-switch-wrapper .theme-switch input {
  display: none; /* Hide default checkbox */
}
.theme-switch-wrapper .theme-switch {
  /* The Background Track */
}
.theme-switch-wrapper .theme-switch .slider {
  background-color: var(--bg-surface-secondary); /* Updated to match UI */
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
  /* Dark Mode Track Style */
}
[data-theme=dark] .theme-switch-wrapper .theme-switch .slider {
  background-color: #333;
  border-color: #444;
}
.theme-switch-wrapper .theme-switch .slider {
  /* The Sliding Knob (Circle) */
}
.theme-switch-wrapper .theme-switch .slider .slider-knob {
  background-color: var(--bg-body);
  bottom: 3px; /* Padding from bottom */
  height: 26px;
  left: 4px; /* Padding from left */
  position: absolute;
  width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* Icon styling */
}
.theme-switch-wrapper .theme-switch .slider .slider-knob span,
.theme-switch-wrapper .theme-switch .slider .slider-knob i,
.theme-switch-wrapper .theme-switch .slider .slider-knob .icon-marker {
  font-size: 14px;
  color: var(--text-main);
  transition: 0.4s;
}
.theme-switch-wrapper {
  /* Checked State (Dark Mode Active) */
}
.theme-switch-wrapper input:checked + .slider .slider-knob {
  transform: translateX(26px); /* Slide to the right */
}
.theme-switch-wrapper {
  /* Optional: Rotate icon when sliding */
}
.theme-switch-wrapper input:checked + .slider .slider-knob span,
.theme-switch-wrapper input:checked + .slider .slider-knob i,
.theme-switch-wrapper input:checked + .slider .slider-knob .icon-marker {
  transform: rotate(360deg);
}
.theme-switch-wrapper.mobile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9375rem;
  background: var(--neutral-white-4);
}
.theme-switch-wrapper.mobile .theme-switch {
  width: 100%;
}
.theme-switch-wrapper.mobile .theme-switch .slider {
  background-color: transparent;
  border: none;
}
.theme-switch-wrapper.mobile .theme-switch .slider .slider-knob {
  transform: translate(-50%, -50%) !important;
  left: 50%;
  bottom: 0;
  top: 50%;
  background: transparent;
  box-shadow: none;
}
.theme-switch-wrapper.mobile {
  /* Checked State (Dark Mode Active) */
}
.theme-switch-wrapper.mobile input:checked + .slider .slider-knob {
  transform: translateX(0px); /* Slide to the right */
}

.global-main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 1.5rem;
}

.middle-header .slider-range {
  width: 12.5rem;
}

.right-head-setting {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.right-head-setting .btn-global {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  line-height: 14.38px;
  min-height: 39px;
  font-size: 14px;
}
.right-head-setting.filter-adjust {
  display: grid;
  grid-template-columns: auto 51px;
}

.project-header-left {
  display: flex;
  align-items: center;
  gap: 1rem; /* Replaces gap-3 */
}

.project-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Replaces gap-3 */
}
.project-header-right.otherDisable.offItem .btn-badge-info {
  display: none;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Element Styling --- */
/* Back Button */
.btn-back {
  width: 40px;
  height: 40px;
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-back:hover {
  transform: translateX(-3px);
  color: #fff;
}

/* Title */
.project-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px dotted #999;
  line-height: 1.4;
  cursor: pointer;
  margin: 0; /* Replaces mb-0 */
}

/* Meta Icons */
.meta-icons {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.25rem; /* Small spacing between icons */
}
.meta-icons span.icon-img {
  width: 1rem;
  height: 1rem;
  aspect-ratio: 1/1;
}
.meta-icons span.icon-img img {
  width: 100%;
  vertical-align: top;
  /* Dark mode override */
}
[data-theme=dark] .meta-icons span.icon-img img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

/* Info Badge */
.btn-badge-info {
  background-color: #e3f2fd;
  color: #016a9b;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Spacing between icon and text */
  cursor: pointer;
  margin-left: 0.5rem; /* Replaces ms-2 */
  transition: background 0.2s;
  line-height: 18.38px;
}
.btn-badge-info:hover {
  background-color: #d0eefc;
}
.btn-badge-info span.icon-img {
  width: 1rem;
  height: 1rem;
  aspect-ratio: 1/1;
}
.btn-badge-info span.icon-img img {
  width: 100%;
  vertical-align: top;
  /* Dark mode override */
}

/* Grey Pill Buttons */
.btn-pill-grey {
  background-color: var(--bg-surface-secondary);
  color: var(--text-main);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  line-height: 14.38px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Spacing between icon and text */
  cursor: pointer;
  transition: background 0.2s;
  min-height: 39px;
}
.btn-pill-grey i {
  font-size: 1rem;
}
.btn-pill-grey span.icon-img {
  width: 1rem;
  height: 1rem;
  aspect-ratio: 1/1;
}
.btn-pill-grey span.icon-img img {
  width: 100%;
  vertical-align: top;
  /* Dark mode override */
}
[data-theme=dark] .btn-pill-grey span.icon-img img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}
.btn-pill-grey:hover {
  background-color: #e0e0e0;
  color: #d5790f;
}
.btn-pill-grey:hover span.icon-img img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(63%) saturate(777%) hue-rotate(354deg) brightness(85%) contrast(95%);
}

.btn-pill-white-border {
  background-color: var(--bg-surface-secondary);
  color: var(--text-main);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Spacing between icon and text */
  flex-direction: row-reverse;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-pill-white-border:hover {
  background-color: #e0e0e0;
}
[data-theme=dark] .btn-pill-white-border {
  color: #d5790f;
}
.btn-pill-white-border i {
  font-size: 1rem;
}
.btn-pill-white-border span.icon-img {
  width: 1rem;
  height: 1rem;
  aspect-ratio: 1/1;
}
.btn-pill-white-border span.icon-img img {
  width: 100%;
  vertical-align: top;
  /* Dark mode override */
}
[data-theme=dark] .btn-pill-white-border span.icon-img img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

/* Select All Checkbox */
.custom-select-all {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin: 0;
}
.custom-select-all input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.custom-select-all .box {
  height: 24px;
  width: 24px;
  background-color: transparent;
  border: 2px solid var(--text-main);
  border-radius: 6px;
  display: inline-block;
  position: relative;
  transition: all 0.2s;
}
.custom-select-all {
  /* Checkmark */
}
.custom-select-all .box:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid var(--check-border);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-select-all input:checked ~ .box {
  background-color: var(--text-main);
}
.custom-select-all input:checked ~ .box:after {
  display: block;
}
.custom-select-all .text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

/* --- Search Bar Styling --- */
.search-wrapper {
  position: relative;
  width: 100%;
}
.search-wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]) {
  width: 100%;
  /* Left padding for Search Icon, Right for Clear Icon */
  padding: 0.6rem 2.5rem 0.6rem 2.5rem;
  border-radius: 50px; /* Pill shape */
  border: 1px solid var(--neutral-black-3);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.search-wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]):focus {
  border-color: var(--Primary-Main);
  box-shadow: 0 0 0 3px rgba(213, 121, 15, 0.1);
}
.search-wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio])::-moz-placeholder {
  color: var(--text-muted);
}
.search-wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio])::placeholder {
  color: var(--text-muted);
}
.search-wrapper {
  /* Absolute Icons */
}
.search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none; /* Let clicks pass through to input */
}
.search-wrapper .clear-btn {
  position: absolute;
  right: 0.3125rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--neutral-white-4);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.9rem;
  align-items: center;
  display: flex;
  width: 26px;
  height: 26px;
  padding: 8.32px 7.28px 7.28px 8.32px;
  justify-content: center;
  align-items: center;
  border-radius: 60px;
}
.search-wrapper .clear-btn:hover {
  color: var(--text-main);
}

.card-box {
  border-radius: 15px;
  border: 1px solid var(--border-color-gray-dark);
  background: var(--bg-surface);
}
.card-box .card-body {
  padding: 1rem;
}

.tab-global.nav-pills {
  justify-content: center;
  width: auto;
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 2.5rem;
  background: var(--bg-body);
  margin: 0 0 0.25rem;
}
.tab-global.nav-pills .nav-item .nav-link {
  display: flex;
  width: 10.4375rem;
  padding: 0.625rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1.875rem;
  color: var(--neutral-black-3);
}
.tab-global.nav-pills .nav-item .nav-link.active {
  background: #fff2e3;
  color: var(--Primary-Main);
}
.tab-global.nav-pills .nav-item .nav-link.active img {
  filter: brightness(0) saturate(100%) invert(52%) sepia(76%) saturate(669%) hue-rotate(354deg) brightness(86%) contrast(94%);
}
[data-theme=dark] .tab-global.nav-pills .nav-item .nav-link.active {
  background: #2a1a08;
}
[data-theme=dark] .tab-global.nav-pills .nav-item .nav-link.active img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(25%) saturate(2037%) hue-rotate(358deg) brightness(97%) contrast(91%) !important;
}
.tab-global.nav-pills .nav-item .nav-link .icon24 {
  width: 1.5rem;
}
.tab-global.nav-pills .nav-item .nav-link .icon24 img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
[data-theme=dark] .tab-global.nav-pills .nav-item .nav-link .icon24 img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(1%) hue-rotate(67deg) brightness(108%) contrast(101%);
}

.uploading-file {
  display: flex;
  padding: 2.5rem 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  align-self: stretch;
  border-radius: 15px;
  border: 1px dashed var(--border-color-gray-dark);
  background: var(--neutral-white-1);
}
.uploading-file .group-upload {
  display: flex;
  gap: 3.75rem;
}
.uploading-file {
  /* New: Drag Over State */
}
.uploading-file.is-dragging {
  background-color: rgba(213, 121, 15, 0.05); /* Light Orange Tint */
  border-color: var(--Primary-Main); /* Solid Orange Border */
  transform: scale(1.02); /* Slight zoom effect */
}

.icon-box {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 0.5rem;
}

/* Specific colors for icons */
.icon-box.blue {
  border-radius: 15px;
  background: var(--Hue-Secondary, #016a9b);
} /* Dropbox Blue */
.icon-box.teal {
  border-radius: 15px;
  background: var(--Hue-Secondary, #016a9b);
} /* Folder Blue */
.cursor-pointer {
  cursor: pointer;
}
.cursor-pointer p {
  margin: 0;
}
.cursor-pointer .icon-box i {
  transition: all 0.3s ease-in-out;
}
.cursor-pointer:hover .icon-box i {
  transform: scale(1.2);
}

.ads-info {
  border-radius: 0.9375rem;
  background: url(../images/bg-stroke.png) no-repeat bottom center, url(../images/bg-stroke2.png) no-repeat right top, #f5f5f5;
}
.ads-info .left-info {
  padding: 1.875rem;
  padding-right: 0;
  max-width: 34.7375rem;
}
.ads-info .left-info .logo-show {
  display: flex;
  width: 100%;
  max-width: 8.3125rem;
  height: auto;
  justify-content: center;
  align-items: center;
  aspect-ratio: 133/40;
  margin: 0 0 1.25rem;
}
.ads-info .left-info h2 {
  color: #171717;
  font-style: normal;
  font-weight: 500;
  line-height: 2.75rem; /* 137.5% */
  margin: 0 0 1.25rem;
}
.ads-info .left-info h2 span {
  color: #d5790f;
}
.ads-info .two-imag-gp {
  position: relative;
  display: grid;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.75rem;
  width: -moz-max-content;
  width: max-content;
  grid-template-columns: auto auto;
  width: 100%;
}
.ads-info .two-imag-gp .img-round {
  max-width: 347px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
}
.ads-info .two-imag-gp .img-round img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.ads-info .two-imag-gp .img-round.one {
  margin-top: 25px;
  transform: rotate(3.056deg);
}
.ads-info .two-imag-gp .img-round.one img {
  transform: rotate(357deg) scale(1.2);
}
.ads-info .two-imag-gp .img-round.two {
  margin-top: 7.1875rem;
}
.ads-info .two-imag-gp .stroke-curve {
  position: absolute;
  top: 1.9375rem;
  left: 50%;
  transform: translateX(calc(-50% + 51px));
}
.ads-info .user-stars {
  position: absolute;
  display: flex;
  bottom: 1.5rem;
  left: 0;
  transform: rotate(-1.354deg);
  padding: 0.6875rem 0.75rem;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.9375rem;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(3.4000000954px);
}
.ads-info .user-stars span {
  color: #282828;
}
.ads-info .user-stars .user-circle {
  display: flex;
}
.ads-info .user-stars .user-circle .circle-box {
  width: 1.375rem;
  height: 1.375rem;
  aspect-ratio: 1/1;
  border-radius: 1.375rem;
  border: 1px solid #d5790f;
  margin-left: -5px;
}

/* =========================================
   10. CUSTOM COMPONENT: LOGIN MODAL
   ========================================= */
.login-layout {
  display: flex;
  min-height: 600px;
  background-color: var(--bg-body);
  padding: 1.5rem;
}

/* --- Login Swiper Styles --- */
.visual-side {
  /* Ensure the swiper takes up the full space */
  display: flex;
  flex-direction: column;
  flex: 1;
  background: url("../images/modal-img1.png") center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  width: 50%;
  padding: 1.5rem;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
  /* Background image is already handled in previous SCSS */
  /* Dark Overlay */
}
.visual-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Adjust darkness here */
  z-index: 1;
}
.visual-side .loginSwiper {
  width: 100%;
  height: 100%;
  /* Push content to bottom */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.visual-side .swiper-slide {
  /* Ensure slide content aligns to bottom */
  display: flex;
  align-items: flex-end;
  height: auto; /* Swiper handles height */
}
.visual-side {
  /* Pagination Customization (White Dots) */
}
.visual-side .swiper-pagination {
  position: relative !important; /* Reset standard absolute positioning */
  text-align: center !important; /* Align dots to left */
  margin-top: 0;
  bottom: 0 !important;
}
.visual-side .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #919191;
  opacity: 0.5;
  margin: 0 4px !important;
  transition: all 0.3s ease;
  border-radius: 4px; /* Slightly rounded */
  /* The "Active" Elongated Dot */
}
.visual-side .swiper-pagination-bullet-active {
  width: 0.375rem;
  opacity: 1;
  background: #fff;
}

.visual-content {
  position: relative;
  z-index: 2;
  padding: 0;
}
.visual-content .user-profile .avatar {
  width: 3.75rem;
  height: 3.75rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.testimonial {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.author-info {
  margin-bottom: 1.5rem;
}
.author-info .name {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
  color: #fff;
}
.author-info .company {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
  color: #fff;
}

/* --- Right Side: Form --- */
.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background-color: var(--bg-body);
  width: 50%;
}

.form-wrapper {
  width: 100%;
  max-width: 25rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.form-header.adjustText {
  text-align: left;
}
.form-header .logo-icon {
  width: 3.75rem;
  margin-bottom: 2.5rem;
}
.form-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Inputs */
.input-group {
  margin-bottom: 1rem;
  position: relative;
}

/* Password Group Wrapper */
.password-group {
  position: relative; /* Crucial: establishes context for the absolute button */
  /* The Input Field */
}
.password-group input {
  padding-right: 3rem !important; /* Extra padding on right so text doesn't hit the icon */
  border-top-right-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
}
.password-group {
  /* The Toggle Button (Eye Icon) */
}
.password-group .auto-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%); /* Perfectly center vertically */
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 2; /* Ensure it sits on top of the input */
}
.password-group .auto-toggle:hover {
  color: var(--Primary-Main); /* Turns orange on hover */
}
.password-group .auto-toggle:focus {
  outline: none;
}
.password-group .auto-toggle {
  /* Icon Sizing */
}
.password-group .auto-toggle i {
  font-size: 1rem;
}

/* Buttons */
.btn-login {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--Primary-Main);
  color: #fff;
  border: none;
  border-radius: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}
.btn-login:hover {
  background-color: var(--Primary-Hover);
  color: #fff;
}

.form-actions {
  text-align: right;
  margin-bottom: 1.5rem;
}
.form-actions .forgot-link {
  color: var(--Hue-Secondary, #016a9b);
  text-align: right;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
  text-decoration-line: underline;
}
.form-actions .forgot-link:hover {
  color: var(--Primary-Main);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.divider span {
  padding: 0 1rem;
}

/* Google Button */
.btn-google {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--neutral-white-4);
  border: 1px solid var(--neutral-white-4);
  color: var(--text-main);
  border-radius: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.btn-google img {
  width: 18px;
}
.btn-google:hover {
  background-color: var(--bg-surface-secondary);
}

.signup-prompt {
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
}
.signup-prompt a {
  color: var(--Primary-Main);
  font-weight: 600;
  text-decoration: underline;
}

/* =========================================
CUSTOM COMPONENT: PROJECT CARD
========================================= */
.global-box-normal .gap-y-1 {
  gap: 1.25rem 0;
}

.row.responsive-grid-layout {
  gap: 1.25rem 0;
}
@media (min-width: 992px) {
  .row.responsive-grid-layout {
    gap: 1.25rem 0;
    /* Optional: On very small screens, force 1 column */
  }
  .row.responsive-grid-layout > * {
    width: auto !important; /* Override Bootstrap col- width */
    max-width: 100% !important;
    flex: none !important;
  }
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  /* Hover State for the whole card */
}
.project-card:hover {
  box-shadow: var(--card-shadow);
  /* Reveal Elements */
}
.project-card:hover .card-actions {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover .edit-icon {
  opacity: 1;
  transform: translateX(0);
}

/* --- Visual Area (Image) --- */
.card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 167/104;
}
.card-visual a {
  display: block;
  height: 100%;
  width: 100%;
}
.card-visual a .project-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s ease;
}
.card-visual {
  /* Zoom image slightly on hover */
}
.card-visual:hover .project-img {
  transform: scale(1.05);
}

.name-editor .edit-name-input {
  display: none !important;
  margin-bottom: 0.5rem;
  margin-left: -0.5rem;
  color: var(--neutral-black-3) !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: -moz-max-content !important;
  width: max-content !important;
  border-bottom: 1px dotted #999 !important;
}

.title-group.name-editor .edit-name-input {
  display: none !important;
  margin-bottom: 0rem;
  margin-left: -0.5rem;
  color: #fff !important;
  font-size: 1.1rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  line-height: 1.5rem;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: -moz-max-content !important;
  width: max-content !important;
  border-bottom: 1px dotted #999 !important;
  max-width: 180px;
}

.name-editor .edit-name-input:focus {
  box-shadow: none !important;
}

.name-editor .save-btn,
.name-editor .cancel-btn {
  display: none !important;
}

.name-editor.editing .project-title {
  display: none !important;
}

.name-editor.editing .edit-name-input {
  display: block !important;
}

.name-editor.editing .edit-btn {
  display: none !important;
}

.name-editor.editing .save-btn,
.name-editor.editing .cancel-btn {
  display: inline-block !important;
}

.title-group.name-editor.editing .save-btn,
.title-group.name-editor.editing .save-btn {
  color: #fff !important;
}

.name-editor.editing .save-btn {
  margin-right: 7px;
}

/* Badges (Top Left) */
.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.badge-pill {
  background-color: #016a9b; /* Teal color from image */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 50px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.badge-pill.delivery {
  background: var(--status-success);
}
.badge-pill.progressBg {
  background: #d5790f;
}

/* Actions (Top Right - Hidden initially) */
.card-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column; /* Stacked vertically like image */
  gap: 0.5rem;
  z-index: 2;
  /* Hidden State */
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--neutral-white-1);
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}
.action-btn:hover {
  background-color: var(--bg-surface-secondary);
  color: var(--Primary-Main);
}
.action-btn {
  /* Specific style for delete button */
}
.action-btn.delete:hover {
  color: var(--status-error);
}

/* --- Details Area --- */
.card-details {
  padding: 0.75rem 1.25rem;
}

/* Header Row */
.detail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.detail-header a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-title {
  margin: 0;
  color: var(--neutral-black-3);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
}
.project-title a {
  display: inline-block;
}

.edit-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  /* Hidden State */
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}
.edit-icon:hover {
  color: var(--Primary-Main);
}

/* Footer Row */
.detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: normal;
}
.meta-text ul {
  display: flex;
}
.meta-text ul li + li::before {
  content: "|";
  position: relative;
  display: inline-block;
  margin: 0 0.1875rem;
}

.meta-icons {
  display: flex;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.9rem;
}
.meta-icons i {
  cursor: help; /* Optional: indicates these are informative */
  transition: color 0.2s;
}
.meta-icons i:hover {
  color: var(--Primary-Main);
}
.meta-icons ul {
  display: flex;
  gap: 0.25rem;
}
.meta-icons ul li span {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  aspect-ratio: 1/1;
}
.meta-icons ul li span img {
  width: 100%;
  aspect-ratio: 1/1;
  vertical-align: top;
  /* Dark mode override */
}
[data-theme=dark] .meta-icons ul li span img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

/* global head panel */
.panel-heading-global {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}
.panel-heading-global h3 {
  color: var(--text-main);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0;
  padding: 0;
}
.panel-heading-global a.link-click {
  color: var(--Primary-Main);
  font-style: normal;
  font-weight: 500;
  line-height: 1.5rem; /* 150% */
  text-decoration: underline;
}

/* =========================================
    CUSTOM COMPONENT: FILTER DROPDOWN
   ========================================= */
.filter-wrapper .filter-btn .icon-img {
  width: 1.5rem;
  height: 1.5rem;
  aspect-ratio: 1/1;
  display: inline-block;
}
.filter-wrapper .filter-btn .icon-img img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  vertical-align: top;
  /* Dark mode override */
}
[data-theme=dark] .filter-wrapper .filter-btn .icon-img img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

.filter-dropdown {
  position: absolute;
  top: 120%; /* Space below button */
  right: 0;
  width: 320px;
  max-width: 20rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 1000;
  /* Toggle State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}
.filter-dropdown .btn-global {
  padding: 0.75rem 1rem;
}
.filter-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.filter-header .btn-reset {
  background: none;
  border: none;
  color: var(--Primary-Main); /* Orange */
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.filter-header .btn-reset:hover {
  text-decoration: underline;
}

/* Sections */
.filter-group {
  margin-bottom: 1.25rem;
}
.filter-group .filter-input {
  display: grid;
  grid-template-columns: 42% auto 42%;
  gap: 15px;
  align-items: center;
}

.filter-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

/* Date Inputs */
input:not([type=submit]):not([type=checkbox]):not([type=radio]).date-input {
  font-size: 0.875rem;
  padding: 0.5rem;
  color: var(--text-muted);
  border-radius: 0.5rem !important;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

/* =========================================
   15. CUSTOM COMPONENT: JQUERY UI OVERRIDES
   ========================================= */
/* The Main Calendar Container */
.ui-datepicker {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  font-family: var(--font-main) !important;
  padding: 1rem !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 280px !important;
  z-index: 2300 !important; /* Above modals/popovers */
}

/* Header (Month/Year) */
.ui-datepicker-header {
  background: transparent !important;
  border: none !important;
  margin-bottom: 0.5rem;
}
.ui-datepicker-header .ui-datepicker-title {
  color: var(--text-main);
  font-weight: 600;
}

/* Prev/Next Arrows */
.ui-datepicker-prev,
.ui-datepicker-next {
  top: 50% !important;
  transform: translateY(-50%);
  cursor: pointer;
  background: none !important;
  border: none !important;
}
.ui-datepicker-prev span,
.ui-datepicker-next span {
  display: none;
}
.ui-datepicker-prev,
.ui-datepicker-next {
  /* Hide default text */
  /* FontAwesome Icons handled in JS, styling here */
}
.ui-datepicker-prev i,
.ui-datepicker-next i {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.ui-datepicker-prev:hover i,
.ui-datepicker-next:hover i {
  color: var(--Primary-Main);
}

/* Calendar Table */
.ui-datepicker-calendar thead th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
}
.ui-datepicker-calendar tbody td {
  padding: 2px;
}
.ui-datepicker-calendar tbody td a {
  background: transparent !important;
  border: none !important;
  color: var(--text-main) !important;
  text-align: center;
  border-radius: 6px;
  margin: 0 auto;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.ui-datepicker-calendar tbody td a:hover {
  background-color: var(--bg-surface-secondary) !important;
  color: var(--Primary-Main) !important;
}
.ui-datepicker-calendar tbody td {
  /* Today's Date */
}
.ui-datepicker-calendar tbody td.ui-datepicker-today a {
  background-color: var(--bg-surface-secondary) !important;
  font-weight: 700;
}
.ui-datepicker-calendar tbody td {
  /* Selected Date */
}
.ui-datepicker-calendar tbody td.ui-datepicker-current-day a {
  background-color: var(--Primary-Main) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(213, 121, 15, 0.3);
}

/* --- Custom Radios & Checkboxes --- */
.custom-control {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.custom-radio,
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.custom-radio input,
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.custom-radio:hover .label-text,
.custom-checkbox:hover .label-text {
  color: var(--text-main);
}

/* Radio Styles */
.radio-mark {
  height: 1.125rem;
  width: 1.125rem;
  border: 1px solid var(--text-muted);
  border-radius: 0.4063rem;
  margin-right: 0.625rem;
  position: relative;
  transition: all 0.2s;
}
.radio-mark::after {
  /* Inner dot */
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-main); /* Black/Dark dot */
}

/* Checked State Radio */
.custom-radio input:checked ~ .radio-mark {
  border-color: var(--text-main);
}
.custom-radio input:checked ~ .radio-mark::after {
  display: block;
}

.custom-radio input:checked ~ .label-text {
  color: var(--text-main);
  font-weight: 500;
}

/* Checkbox Styles */
.checkmark {
  height: 1.125rem;
  width: 1.125rem;
  border: 1px solid var(--text-muted);
  border-radius: 0.4063rem; /* Slightly rounded square */
  margin-right: 10px;
  position: relative;
  transition: all 0.2s;
}

/* Checked State Checkbox */
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--text-main); /* Filled black */
  border-color: var(--text-main);
}

/* Checkmark Icon */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--neutral-white-1);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox input:checked ~ .label-text {
  color: var(--text-main);
  font-weight: 500;
}

/* =========================================
CUSTOM COMPONENT: EDITOR PANEL
  ========================================= */
/* Main Layout Wrapper */
.editior-panel-absolute {
  position: absolute;
  top: 2rem; /* Adjust this if needed, usually headers are ~4rem high */
  right: 0;
  z-index: 999;
}

/* Main Layout Wrapper */
.editor-layout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  padding-right: 0;
  width: 100%;
  /* --- Main Panel Container --- */
}
.editor-layout .editor-panel {
  width: 20rem;
  height: 46.875rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  position: absolute;
  left: -20.625rem;
  top: 4.375rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Optional: Add transition for smooth fade effect */
  transition: all 0.3s ease;
  /* CORRECT SYNTAX: Single colon */
}
.editor-layout .editor-panel:has(.editor-tab-pane.active) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  top: 0;
}
.editor-layout .editor-panel {
  /* Tab Panes */
}
.editor-layout .editor-panel .editor-tab-pane {
  display: none;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  /* Active State */
}
.editor-layout .editor-panel .editor-tab-pane.active {
  display: flex;
  /* FIX: Re-enable clicking ONLY when the panel is actually visible/active */
  pointer-events: auto;
  visibility: visible;
}
.editor-layout .editor-panel {
  /* Header */
}
.editor-layout .editor-panel .panel-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-layout .editor-panel .panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.save-link {
  background: none;
  border: none;
  color: var(--Primary-Main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.save-link:hover {
  text-decoration: underline;
}

/* Body (Scrollable) */
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}
.panel-body::-webkit-scrollbar {
  width: 4px;
}
.panel-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Divider */
.panel-divider {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

/* Footer */
.panel-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.panel-footer .btn-global {
  padding: 0.75rem 1rem;
}

.reset-link {
  background: none;
  border: none;
  color: var(--Primary-Main);
  font-size: 0.9rem;
  cursor: pointer;
}
.reset-link:hover {
  text-decoration: underline;
}

/* --- Control Items (Toggles) --- */
.control-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.control-item .icon {
  color: var(--text-muted);
  text-align: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}
.control-item .icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
[data-theme=dark] .control-item .icon img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}
.control-item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.control-item .label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}
.control-item .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  border: navajowhite;
}
.toggle-switch .slider-dots {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #bbbbbb;
}
[data-theme=dark] .toggle-switch .slider-dots {
  background-color: #363636;
}
.toggle-switch .slider-dots {
  transition: 0.4s;
  border-radius: 24px;
}
.toggle-switch .slider-dots:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--bg-body);
  transition: 0.4s;
  border-radius: 50%;
}
.toggle-switch input:checked + .slider-dots {
  background-color: var(--Primary-Main);
}
.toggle-switch input:checked + .slider-dots:before {
  transform: translateX(20px);
  background-color: white;
}

/* --- Slider Controls --- */
.slider-group {
  margin-bottom: 1.5rem;
}
.slider-group .custom-noui-slider .noUi-base .noUi-connects .noUi-connect {
  background-color: transparent;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slider-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

input:not([type=submit]):not([type=checkbox]):not([type=radio]).slider-val {
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2px;
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  appearance: textfield;
  display: flex;
  height: 22px;
  padding: 4px 4px;
  align-items: center;
  gap: 10px;
  width: 36px;
  border-radius: 7px !important;
  background-color: var(--neutral-white-1);
  /* Firefox */
  -moz-appearance: textfield;
  appearance: textfield;
  /* Chrome, Safari, Edge, Opera */
}
input:not([type=submit]):not([type=checkbox]):not([type=radio]).slider-val::-webkit-outer-spin-button, input:not([type=submit]):not([type=checkbox]):not([type=radio]).slider-val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input:not([type=submit]):not([type=checkbox]):not([type=radio]).custom-range {
  width: 100%;
  accent-color: var(--Primary-Main);
  cursor: pointer;
  margin: 0;
  padding: 0;
}

/* --- Sidebar Tabs --- */
.editor-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  right: 0;
  top: 0;
  padding: 8px;
  border-radius: 15px 0 0 15px;
  background: var(--neutral-white-1, #fff);
  box-shadow: var(--Direction-X1, -4px) var(--Direction-Y1, -4px) var(--Blur-Blur, 4px) 0 var(--Color-Color, rgba(0, 0, 0, 0.08)), var(--Direction-X3, 0) var(--Direction-Y2, 4px) var(--Blur-Blur, 4px) 0 var(--Color-Color, rgba(0, 0, 0, 0.08));
}

.tab-btn {
  width: 70px;
  height: 70px;
  background: var(--bg-body);
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--neutral-black-3);
  font-size: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  outline: none;
  border: none;
}
.tab-btn i {
  font-size: 1.2rem;
}
.tab-btn:hover {
  background: var(--neutral-white-4); /* Light Orange */
  color: var(--neutral-black-3);
  border: none;
}
.tab-btn.active {
  background: var(--neutral-white-4); /* Light Orange */
  border: none;
}

/* =========================================
 CUSTOM COMPONENT: GALLERY CARD
   ========================================= */
.gallery-card {
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
  aspect-ratio: 4/3; /* Enforces the rectangular shape */
}
.gallery-card:has(.boosted-overlay) .card-img {
  opacity: 1 !important;
}
.gallery-card {
  /* --- Hover State Triggers --- */
}
.gallery-card:hover .card-img {
  transform: scale(1.05); /* Zoom effect */
  opacity: 0.9; /* Slight darkening */
}
.gallery-card:hover .card-overlay {
  opacity: 1;
  visibility: visible;
}
.gallery-card.activeCheck .card-img {
  transform: scale(1.05); /* Zoom effect */
  opacity: 0.9; /* Slight darkening */
}
.gallery-card.activeCheck .card-overlay {
  opacity: 1;
  visibility: visible;
}

/* 1. Background Image Layer */
.card-visual2 {
  width: 100%;
  height: 100%;
  position: relative;
}
.card-visual2 .card-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s ease;
}
.card-visual2 .boosted-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 2. Status Badge (Always Visible) */
.status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5; /* Above image, below overlay */
  padding: 0.4rem 0.625rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: normal;
  color: #fff;
  background: #d5790f;
}
.status-badge.unprocessed {
  background-color: #016a9b; /* Teal Blue */
}
.status-badge.green {
  background-color: var(--status-success);
}

/* 3. Overlay Container (Hidden by default) */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  /* Gradient background for text readability */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* --- Elements Inside Overlay --- */
/* Checkbox (Top Right) */
.card-select {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}
.card-select input {
  display: none;
}
.card-select .check-box {
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  transition: 0.2s;
}
.card-select {
  /* Selected State */
}
.card-select input:checked + .check-box {
  background: #fff;
  color: #d5790f;
}
.card-select input:checked + .check-box::after {
  content: "\f00c"; /* FontAwesome Check Icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #d5790f;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
}
.card-select:hover .check-box {
  background: rgba(255, 255, 255, 0.2);
}

/* Right Side Action Stack */
.action-stack {
  position: absolute;
  right: 1rem;
  top: 3.75rem; /* Positioned below the checkbox */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* --- Updates: Fixed Height & Scroll --- */
  height: 50%; /* Fixed height constraint */
  overflow-y: auto; /* Enable vertical scrolling */
  /* Optional: Hide the scrollbar for a cleaner UI (still scrollable) */
  scrollbar-width: none; /* Firefox */
}
.action-stack::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent; /* Chrome/Safari */
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: var(--neutral-white-1);
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
}
.icon-btn:hover {
  background: var(--bg-surface-secondary);
  color: var(--Primary-Main);
}
.icon-btn.delete:hover {
  color: #d72323; /* Red hover for trash */
}

/* Bottom Footer (Title & Alert) */
.card-footer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 15px 15px;
  background: rgba(23, 23, 23, 0.2);
  backdrop-filter: blur(2px);
}

.title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.title-group > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.title-group > a:hover {
  text-decoration: underline;
  color: var(--Primary-Main);
}
.title-group .file-name {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px; /* Prevents long titles from breaking layout */
}
.title-group .file-name a {
  color: inherit;
  text-decoration: none;
}
.title-group .file-name a:hover {
  text-decoration: underline;
}
.title-group .edit-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.title-group .edit-btn:hover {
  color: #d5790f;
}

.alert-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #d72323; /* Red Alert Color */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: help;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.custom-info-modal {
  border-radius: 16px; /* Rounded corners like image */
  padding: 1.5rem;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: var(--Primary-Surface);
}
.custom-info-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.custom-info-modal .modal-header .modal-title {
  font-size: 1.5rem; /* Large title */
  color: var(--text-main);
  line-height: normal;
  /* Dark Mode Track Style */
}
[data-theme=dark] .custom-info-modal .modal-header .modal-title {
  color: #fff;
}
.custom-info-modal .modal-header {
  /* Larger Close Button */
}
.custom-info-modal .modal-header .btn-close {
  font-size: 1.2rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.custom-info-modal .modal-header .btn-close:hover {
  opacity: 1;
}
.custom-info-modal .modal-body {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Spacing between lines */
}

.info-item {
  margin: 0;
  color: var(--text-secondary);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}

/* =========================================
CUSTOM COMPONENT: SELECTION BAR
========================================= */
.selection-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Start hidden below */
  z-index: 1000;
  background: var(--neutral-white-5);
  padding: 13px 1.25rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 2rem;
  /* Animation */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.selection-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.selection-bar.otherNowrap {
  white-space: nowrap;
}

/* Left Section */
.sb-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sb-left .btn-close-selection {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.sb-left .btn-close-selection:hover {
  color: var(--text-main);
}
.sb-left .sb-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}
.sb-left .sb-count {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Right Section */
.sb-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Action Buttons */
.btn-sb-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--neutral-white-4);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--Primary-Main);
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme=dark] .btn-sb-action {
  background: #2a2a2a;
}
.btn-sb-action:hover {
  background: var(--bg-surface-secondary);
  color: var(--text-main);
}
.btn-sb-action {
  /* Orange Variant */
}
.btn-sb-action.orange {
  background-color: #d5790f;
  color: #fff;
}
.btn-sb-action.orange:hover {
  background-color: var(--Primary-Hover);
}
.btn-sb-action {
  /* Outline Variant */
}
.btn-sb-action.outline {
  border-color: var(--Primary-Main);
  color: var(--Primary-Main);
}
.btn-sb-action.outline:hover {
  background-color: #fff8f0;
}

/* Icon Only Button (Trash) */
.btn-sb-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-sb-icon.red {
  color: #d72323;
  background: rgba(215, 35, 35, 0.1);
}
.btn-sb-icon.red:hover {
  background: rgba(215, 35, 35, 0.2);
}

/* =========================================
CUSTOM COMPONENT: SETTING POPUP
========================================= */
/* Make the info text look clickable */
.control-item .info {
  cursor: pointer;
  transition: opacity 0.2s;
}
.control-item .info:hover {
  opacity: 0.7; /* Visual feedback */
}

/* --- Overlay Backdrop --- */
.setting-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark dim */
  z-index: 2000; /* High z-index to sit on top */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Animation State */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.setting-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}
.setting-popup-overlay.show .setting-popup-content {
  transform: scale(1);
  opacity: 1;
}

/* --- Popup Box --- */
.setting-popup-content {
  background: var(--Primary-Surface);
  width: 400px;
  max-width: 90%;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  /* Entry Animation */
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Header */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-gray-bottom);
}
.popup-header .popup-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
}
.popup-header .btn-close-popup {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}
.popup-header .btn-close-popup:hover {
  color: var(--text-main);
}

/* Body Content */
.popup-body .pop-flx-bx {
  display: flex;
  gap: 1.5rem;
}

.popup-desc {
  flex: 1; /* Takes available text space */
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25rem;
}

/* Dropdown Styling */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-wrapper select.popup-select {
  width: 100%;
  -moz-appearance: none;
       appearance: none; /* Remove default arrow */
  -webkit-appearance: none;
  background: var(--bg-surface-secondary); /* Light grey bg */
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
}
.custom-select-wrapper select.popup-select:focus {
  outline: none;
  border-color: var(--Primary-Main);
}
.custom-select-wrapper {
  /* Custom Arrow */
}
.custom-select-wrapper .select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8rem;
}

/* =========================================
   24. CUSTOM COMPONENT: COMMENT & SEND MODALS
   (Responsive: Modal on Desktop / Bottom Sheet on Mobile)
   ========================================= */
/* --- 1. Overlay Backdrop --- */
/* --- 1. Modal Overlay --- */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1055;
  display: flex;
  /* Desktop: Center alignment */
  align-items: center;
  justify-content: center;
  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Mobile: Bottom alignment */
}
@media (max-width: 768px) {
  .custom-modal-overlay {
    align-items: flex-end;
  }
}
.custom-modal-overlay {
  /* Visible State */
}
.custom-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.custom-modal-overlay.show .custom-modal-content {
  transform: scale(1);
  opacity: 1;
}
@media (max-width: 768px) {
  .custom-modal-overlay.show .custom-modal-content {
    transform: translateY(0);
  }
}
.custom-modal-overlay {
  /* --- 2. Modal Content Box --- */
}
.custom-modal-overlay .custom-modal-content {
  background: var(--Primary-Surface, #fff);
  width: 23.4375rem;
  max-width: 90%;
  /* NEW: Constrain height so it fits on screen */
  max-height: 85vh;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  /* Flex column is CRITICAL for scrolling */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  /* Desktop Animation Start */
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* --- MOBILE BOTTOM SHEET STYLES --- */
}
@media (max-width: 768px) {
  .custom-modal-overlay .custom-modal-content {
    width: 100%;
    max-width: 100%;
    /* On mobile, let it go up to 90% of screen height */
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
    /* Adjust padding to handle drag handle space */
    padding: 2rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)) 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 1;
  }
  .custom-modal-overlay .custom-modal-content::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 10px;
  }
}
.custom-modal-overlay {
  /* --- 3. Header Section --- */
}
.custom-modal-overlay .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  /* Prevent header from shrinking when scrolling happens */
  flex-shrink: 0;
}
.custom-modal-overlay .modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main, #111);
}
.custom-modal-overlay .modal-header .btn-close-modal {
  background: var(--neutral-white-4, #f3f4f6);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #666);
  cursor: pointer;
  transition: background 0.2s;
}
.custom-modal-overlay .modal-header .btn-close-modal:hover {
  background: #e5e7eb;
  color: #111;
}
.custom-modal-overlay {
  /* --- 4. Body & Inputs (SCROLLABLE AREA) --- */
}
.custom-modal-overlay .modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* NEW: Enable Scrolling */
  /* NEW: Prevent scroll chaining to the background */
  overscroll-behavior: contain;
  /* NEW: Ensure it fills available space but allows shrinking */
  flex: 1 1 auto;
  /* Optional: Padding right to avoid scrollbar covering text */
  padding-right: 4px;
  /* Custom Scrollbar Styling */
}
.custom-modal-overlay .modal-body::-webkit-scrollbar {
  width: 6px;
}
.custom-modal-overlay .modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.custom-modal-overlay .modal-body::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 10px;
}
.custom-modal-overlay .modal-body::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}
.custom-modal-overlay .comment-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.custom-modal-overlay .comment-textarea {
  width: 100%;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  height: 80px;
  background-color: var(--bg-surface);
  /* Ensure textarea doesn't shrink awkwardly */
  flex-shrink: 0;
}
.custom-modal-overlay .comment-textarea:focus {
  outline: none;
  border-color: var(--Primary-Main, #d97706);
}
.custom-modal-overlay .comment-textarea::-moz-placeholder {
  color: #9ca3af;
}
.custom-modal-overlay .comment-textarea::placeholder {
  color: #9ca3af;
}
.custom-modal-overlay {
  /* --- 5. Custom Dropdown --- */
}
.custom-modal-overlay .custom-dropdown {
  position: relative;
  width: 100%;
  flex-shrink: 0; /* Keep dropdown button fixed size */
}
.custom-modal-overlay .custom-dropdown .dropdown-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--neutral-white-4, #f9fafb);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-main, #333);
}
.custom-modal-overlay .custom-dropdown .dropdown-btn:hover {
  background: var(--bg-surface);
}
.custom-modal-overlay .custom-dropdown .dropdown-btn.selectedActive {
  background-color: #016a9b;
  color: #fff;
}
.custom-modal-overlay .custom-dropdown .dropdown-btn.selectedActive i {
  color: #fff;
}
.custom-modal-overlay .custom-dropdown .dropdown-menu-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: 200px; /* Reduced slightly */
  overflow-y: auto;
  z-index: 60;
  display: none;
  padding: 0.5rem 0;
}
.custom-modal-overlay .custom-dropdown .dropdown-menu-list.show {
  display: block;
}
.custom-modal-overlay .custom-dropdown .dropdown-menu-list .group-title {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.custom-modal-overlay .custom-dropdown .dropdown-menu-list .dropdown-item {
  padding: 0.35rem 1.5rem;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}
.custom-modal-overlay .custom-dropdown .dropdown-menu-list .dropdown-item:hover {
  background-color: #f3f4f6;
}
.custom-modal-overlay {
  /* --- 6. Blue Comment Block --- */
}
.custom-modal-overlay .blue-comment-block {
  background-color: #016a9b;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  flex-shrink: 0; /* Prevent block from collapsing */
}
.custom-modal-overlay .blue-comment-block .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.custom-modal-overlay .blue-comment-block .comment-header .btn-delete-comment {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
}
.custom-modal-overlay .blue-comment-block .comment-header .btn-delete-comment:hover {
  color: #fff;
}
.custom-modal-overlay .blue-comment-block .comment-text {
  padding: 0.25rem 1rem 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
  margin: 0;
  color: #fff;
}
.custom-modal-overlay {
  /* --- 7. Footer Buttons --- */
}
.custom-modal-overlay .modal-footer {
  margin-top: 0.5rem;
  /* Prevent footer from shrinking */
  flex-shrink: 0;
}
.custom-modal-overlay .btn-global {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.custom-modal-overlay .btn-add-new-line {
  background: none;
  border: none;
  color: var(--text-main, #333);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.custom-modal-overlay .btn-add-new-line:hover {
  color: var(--Primary-Main);
}

/* =========================================
CUSTOM COMPONENT: SINGLE IMAGE VIEWER
========================================= */
/* --- 1. Header Elements --- */
.btn-pill-info {
  background-color: #e3f2fd; /* Light Blue */
  color: #1976d2; /* Dark Blue */
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-pill-info:hover {
  background-color: #bbdefb;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toggle-group .label {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

/* --- 2. Image Stage --- */
.image-stage-wrapper {
  /* --- IMMERSIVE FULL SCREEN MODE --- */
  position: fixed; /* Break out of the document flow */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1; /* Sit above the page background, but below the Menu/Sidebar */
  background-color: var(--bg-body);
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0.9375rem; /* Remove radius to fill corners */
  /* Center the image perfectly */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reset aspect ratio so the container is always full screen */
  aspect-ratio: auto;
}
.image-stage-wrapper .main-preview-img {
  /* Ensure image fits within the viewport without cropping */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  /* smoother zoom transitions */
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  will-change: transform;
}
.image-stage-wrapper {
  /* --- Active 'Boosted' State --- */
}
.image-stage-wrapper.overbg .main-preview-img {
  filter: brightness(1.15) contrast(1.1) saturate(1.1);
}

/* Ensure your Sidebar/Menu sits ON TOP of this image */
.main-header,
.viewer-bottom-bar {
  z-index: 100; /* Must be higher than image-stage-wrapper's z-index (1) */
  position: relative; /* Or fixed, depending on your layout */
}

/* --- 3. Floating Bottom Bar --- */
.viewer-bottom-bar {
  position: absolute;
  bottom: 2rem;
  left: 0;
  background: var(--view-bar);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  white-space: nowrap;
  will-change: left, top;
  visibility: visible;
  opacity: 1;
  display: inline-flex;
  width: -moz-max-content;
  width: max-content;
  height: 62px;
}
.viewer-bottom-bar.comparison-mode {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 100%);
}
.viewer-bottom-bar .vb-drag-handle {
  cursor: move;
  height: 100%;
  display: flex;
  align-items: center;
}

#selectionBar,
#dragHandle {
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.vb-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vb-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}

/* Icons (Arrows, Zoom) */
.vb-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.vb-icon-btn:hover {
  background-color: var(--bg-surface-secondary);
  color: var(--text-main);
}

/* Action Buttons */
.btn-vb-action {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.2s;
}
.btn-vb-action:hover {
  background: var(--bg-surface-secondary);
  color: var(--text-main);
}
.btn-vb-action {
  /* Orange Fill */
}
.btn-vb-action.orange-fill {
  background-color: var(--Primary-Main);
  color: #fff;
}
.btn-vb-action.orange-fill:hover {
  background-color: var(--Primary-Hover);
}
.btn-vb-action {
  /* Outline */
}
.btn-vb-action.outline {
  border-color: var(--Primary-Main);
  color: var(--Primary-Main);
}
.btn-vb-action.outline:hover {
  background-color: #fff8f0;
}

/* Trash Icon */
.btn-vb-icon.red {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: #d72323;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-vb-icon.red:hover {
  background: rgba(215, 35, 35, 0.1);
}

/* --- 4. Right Vertical Toolbar --- */
.vertical-toolbar {
  background: var(--bg-body);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem; /* Spacing from image */
}
.vertical-toolbar .v-tool-btn {
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  color: var(--text-muted);
  transition: 0.2s;
}
.vertical-toolbar .v-tool-btn i {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.vertical-toolbar .v-tool-btn span {
  font-size: 0.75rem;
  font-weight: 500;
}
.vertical-toolbar .v-tool-btn:hover {
  background: var(--bg-surface-secondary);
  color: var(--text-main);
}
.vertical-toolbar .v-tool-btn.active {
  background-color: var(--bg-surface-secondary);
  color: var(--text-main);
  font-weight: 600;
}

/* =========================================
   26. CUSTOM COMPONENT: CLIP-PATH SLIDER
   ========================================= */
.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  z-index: 10;
  background-color: #f5f5f5;
  /* Ensure images fill the stage */
}
.slider-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover; /* Keeps aspect ratio */
  display: block;
  pointer-events: none;
}

/* Layers */
.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Specific Style for Boosted Image (After) */
.boosted-img-source {
  filter: brightness(1.15) contrast(1.1) saturate(1.1);
}

/* Text Badges */
.before-text,
.after-text {
  position: absolute;
  top: 2rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.before-text {
  left: 2rem;
  background-color: #0277bd;
} /* Original */
.after-text {
  right: 2rem;
  background-color: #2e7d32;
} /* Boosted */
/* Slider Handle (Invisible Hit Area / Positioning) */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px; /* Thin line width */
  background: transparent;
  z-index: 30;
  cursor: col-resize;
  transform: translateX(-50%);
}

/* Visible Line & SVG */
.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #020202;
  z-index: 25;
  pointer-events: auto; /* Allow dragging from line */
  cursor: col-resize;
  transform: translateX(-50%);
  /* Center the SVG vertically */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-container {
  display: flex;
  width: 60px;
  height: 60px;
  padding: 18px 17px 17px 18px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 3.75rem;
  background: var(--neutral-black-2, #171717);
}
.pulse-container svg {
  display: block;
}

/* =========================================
   ORDER DETAILS / GALLERY PAGE
   ========================================= */
/* Main Content Adjustment for Bottom Bar */
.main-content.paddingBottomAdjust {
  padding-bottom: 6rem !important; /* Space for fixed bottom bar */
}

/* --- Mobile Header Styling --- */
.mobile-order-header .btn-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: 1.1rem;
}
.mobile-order-header .btn-icon-circle:hover {
  background: #f5f5f5;
}
.mobile-order-header .mobile-select-check {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-order-header .mobile-select-check input {
  display: none;
}
.mobile-order-header .mobile-select-check .box {
  width: 22px;
  height: 22px;
  border: 2px solid #333;
  border-radius: 6px;
  transition: 0.2s;
}
.mobile-order-header .mobile-select-check input:checked + .box {
  background: #333;
}
.mobile-order-header .mobile-select-check input:checked + .box:after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* --- Mobile Card Adjustments --- */
.gallery-card {
  position: relative;
  border-radius: 12px; /* Smaller radius on mobile */
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-card > a {
  display: block;
  width: 100%;
  height: 100%;
}
@media (min-width: 992px) {
  .gallery-card {
    border-radius: 16px;
  }
}
.gallery-card {
  /* Mobile Kebab Menu */
}
.gallery-card .mobile-card-menu {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  background: #fff;
  border: none;
  border-radius: 6px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.gallery-card {
  /* Status Badge Size on Mobile */
}
.gallery-card .status-badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  top: 0.5rem;
  left: 0.5rem;
}

/* --- Mobile Bottom Action Bar (Fixed) --- */
.mobile-bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-body);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0.5rem 1.5rem; /* Extra padding for safe area */
  z-index: 1000;
}
.mobile-bottom-actions .action-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  width: 25%;
}
.mobile-bottom-actions .action-item .icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
  color: var(--text-secondary);
}
.mobile-bottom-actions .action-item:hover, .mobile-bottom-actions .action-item:active {
  color: #000;
}
.mobile-bottom-actions .action-item:hover .icon, .mobile-bottom-actions .action-item:active .icon {
  color: #000;
}

/* =========================================
CUSTOM COMPONENT: METADATA TABLE
========================================= */
/* Ensure the modal is wide enough */
@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}
.modal-header .btn-close {
  display: flex;
  width: 1.6875rem;
  height: 1.6875rem;
  padding: 8.64px 7.56px 7.56px 8.64px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 3.75rem;
  background: var(--neutral-white-4);
  margin: 0 0 0 auto;
  opacity: 1;
}
.modal-header .btn-close::before {
  /* CHANGED: font-size -> font-family */
  font-family: "Font Awesome 6 Free"; /* Or use your variable: var(--fa-style-family-classic) */
  content: "\f00d";
  display: inline-block;
  position: relative;
  font-weight: 900; /* Required for Solid icons */
  /* Optional: Set a size if needed */
  /* font-size: 1.2rem; */
  color: var(--neutral-black-3);
  opacity: 1;
}

.tabelModal .mb-header {
  display: flex;
  justify-content: space-between;
}
.tabelModal .modal-body {
  padding-left: 1.5rem;
  padding-bottom: 4.6875rem;
}
.tabelModal .btn-global {
  padding: 0.5rem 0.75rem;
  border-radius: 0.4375rem;
}
.tabelModal .mb-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-gray-bottom);
}
.tabelModal .modal-dialog {
  max-width: 80rem;
}

.modelBg {
  background: var(--bg-body);
}

.metadata-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  color: var(--text-secondary);
}
.metadata-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0; /* Very light border */
  vertical-align: middle;
  white-space: nowrap;
}
.metadata-table td:first-child {
  padding-left: 0.5rem;
}
.metadata-table {
  /* Remove border from last row */
}
.metadata-table tr:last-child td {
  border-bottom: none;
}

/* First Column (Labels) */
.meta-label {
  font-weight: 500;
  color: var(--neutral-black-3);
  width: 180px;
}

/* Highlight Text (Red) */
.text-danger {
  color: #ff5252 !important;
}

/* Small Info Icon */
.small-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  vertical-align: middle;
}

/* Thumbnails */
.meta-thumb {
  width: 100%;
  height: 7.1875rem;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #eee;
}
.meta-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.tableModalAfter .body-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 1.5rem;
}
.tableModalAfter .body-header .title-gp {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

/* =========================================
CUSTOM COMPONENT: ITEM INFO MODAL
========================================= */
/* Make thumbs clickable in the first modal */
.meta-thumb.trigger-item-modal {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.meta-thumb.trigger-item-modal:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--Primary-Main); /* Optional: Highlight border */
}
.meta-thumb.trigger-item-modal {
  /* Optional: Add expand icon on hover */
}
.meta-thumb.trigger-item-modal::after {
  content: "\f065"; /* FontAwesome expand icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  opacity: 0.8;
}

/* --- The New Modal Styles --- */
/* Data List (Left Side) */
.item-data-list {
  display: flex;
  flex-direction: column;
}
.item-data-list .data-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}
.item-data-list .data-row .label {
  font-weight: 500;
  color: var(--neutral-black-3);
  width: 40%;
}
.item-data-list .data-row .value {
  color: var(--text-muted);
  width: 60%;
  text-align: left; /* Align values */
}

/* Large Preview (Right Side) */
.item-large-preview {
  width: 100%;
  height: 100%;
  min-height: 400px; /* Ensure height */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}
.item-large-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Nav Buttons (Bottom Right of Image) */
.item-nav-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  background: #fff;
  padding: 0.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.item-nav-controls .nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.item-nav-controls .nav-btn:hover {
  background-color: var(--bg-surface-secondary);
}

/* =========================================
   29. CUSTOM COMPONENT: SETTINGS PAGE
   ========================================= */
.settings-section {
  margin: 0 0 3rem;
}
.settings-section:last-child {
  margin: 0;
}
.settings-section .btn-global {
  padding: 12px 16px;
}
.settings-section .head-panel-small {
  padding: 0 0 1.5rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--border-gray-bottom);
}
.settings-section .head-panel-small h5 {
  margin: 0;
  padding: 0;
}
.settings-section .head-panel-small.spaceBtw {
  display: flex;
  justify-content: space-between;
}
.settings-section input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.settings-section textarea,
.settings-section select {
  background: var(--bg-body);
}
.settings-section {
  /* Section Titles */
}
.settings-section .section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}
.settings-section .section-title .icon24 {
  width: 1.5rem;
  height: 1.5rem;
  aspect-ratio: 1/1;
}
[data-theme=dark] .settings-section .section-title .icon24 {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}
.settings-section .form-label.allLabel {
  color: var(--neutral-black-3);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5rem; /* 150% */
}
.settings-section {
  /* --- Setting Card --- */
}
.settings-section .setting-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  height: 100%; /* Equal height columns */
}
.settings-section .setting-card:hover {
  border-color: #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Card Icon (Left) */
.sc-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px; /* Visual alignment with title */
  aspect-ratio: 1/1;
}
.sc-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
[data-theme=dark] .sc-icon img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

/* Card Content (Right) */
.sc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Card Header (Title + Toggle) */
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0.25rem;
}
.sc-head .title {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.5rem;
  padding-right: 0.5rem;
}

/* Subtitle */
.sc-content .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: auto; /* Push to bottom if needed */
}

/* --- Fine Tuning Inputs --- */
.settings-input {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  color: var(--text-main);
}
.settings-input:focus {
  border-color: var(--Primary-Main);
  box-shadow: 0 0 0 3px rgba(var(--Primary-Main-RGB), 0.1);
}

/* =========================================
   RESPONSIVE UTILITIES (Breakpoint: 767px)
   ========================================= */
/* Desktop Only: Hidden on screens 767px and smaller */
@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}
/* Mobile Only: Hidden on screens 768px and larger */
@media (min-width: 768px) {
  .show-on-mobile {
    display: none !important;
  }
}
/* =========================================
   MOBILE SETTINGS COMPONENTS
   ========================================= */
@media (max-width: 767px) {
  /* 1. Mobile Header Adjustments */
  .head-panel-small {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  .head-panel-small .section-title {
    font-size: 1rem; /* Smaller title on mobile */
  }
  /* 2. Mobile Save Link (Orange) */
  .mobile-save-link {
    color: #d97706; /* Orange */
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
  }
  .mobile-save-link:hover {
    color: #b45309;
  }
  /* 3. Horizontal Scroll Tabs */
  .mobile-scroll-tabs {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px; /* Space for scrollbar if visible */
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    /* Hide Scrollbar */
    scrollbar-width: none;
  }
  .mobile-scroll-tabs::-webkit-scrollbar {
    display: none;
  }
  .mobile-scroll-tabs .m-tab-item {
    background: none;
    border: none;
    padding: 0.5rem 0.2rem 0.8rem;
    font-size: 0.9rem;
    color: #6b7280; /* Gray text */
    font-weight: 500;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
  }
  .mobile-scroll-tabs .m-tab-item img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    -o-object-fit: contain;
       object-fit: contain;
  }
  [data-theme=dark] .mobile-scroll-tabs .m-tab-item img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
  }
  .mobile-scroll-tabs .m-tab-item {
    /* Active State */
  }
  .mobile-scroll-tabs .m-tab-item.active {
    color: var(--neutral-black-3); /* Black Text */
    border-bottom-color: #111; /* Black Line */
  }
  .mobile-scroll-tabs .m-tab-item.active img {
    opacity: 1;
  }
  .mobile-scroll-tabs {
    /* Text Only Variant (Fine Tuning) */
  }
  .mobile-scroll-tabs.text-only {
    gap: 1.5rem;
  }
  .mobile-scroll-tabs.text-only .m-tab-item {
    font-size: 0.95rem;
  }
  /* 4. Option Cards (Square Buttons) */
  .option-cards-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto; /* Allow scroll if many options */
    padding-bottom: 5px;
  }
  .option-card {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    /* The Visual Box */
  }
  .option-card .opt-visual {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9ca3af;
    position: relative;
    transition: all 0.2s;
  }
  .option-card .opt-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
  }
  .option-card {
    /* Active State */
  }
  .option-card.active .opt-visual {
    border-color: #111;
    color: #111;
    background: var(--bg-surface); /* Light Gray BG */
  }
  .option-card.active .opt-label {
    color: #111;
    font-weight: 600;
  }
  .option-card.active {
    /* Checkmark Badge */
  }
  .option-card.active .check-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
  }
  /* 5. Mobile Slider */
  .custom-mobile-range {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: #e5e7eb;
    border-radius: 5px;
    outline: none;
    margin: 1rem 0;
    /* Thumb Styling */
  }
  .custom-mobile-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-top: -10px; /* Center on track */
  }
  .custom-mobile-range {
    /* Track Progress trick */
  }
  .custom-mobile-range::-webkit-slider-runnable-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 5px;
  }
}
.mobile-tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}
.mobile-tab-pane .bg-white {
  background-color: var(--bg-body) !important;
  border: 1px solid var(--border-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================
CUSTOM COMPONENT: SUBSCRIPTION PAGE
========================================= */
/* --- Step Headers --- */
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-gray-bottom);
}
.step-header.second-step {
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  margin-top: 2rem;
}
.step-header .step-badge {
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  border-radius: 15px 15px 0 0;
  background: var(--Hue-Secondary, #016a9b);
}
.step-header .step-link {
  color: var(--Hue-Secondary, #016a9b);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* --- Intro Text & Toggle --- */
.step-intro-wrapper {
  text-align: center;
  margin-bottom: 1.875rem;
}
.step-intro-wrapper h2 {
  color: var(--text-main);
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.step-intro-wrapper h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.step-intro-wrapper p {
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-toggle-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.pricing-toggle-box .label {
  font-size: 0.9rem;
  font-weight: 700;
}
.pricing-toggle-box .discount-badge {
  display: flex;
  padding: 0.375rem 0.75rem;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #282828;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  border-radius: 0.4375rem;
  background: linear-gradient(90deg, #e1f5ff 0%, #e5e5e5 100%);
}

/* --- Plans Grid --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 43.25rem;
  margin: auto;
}

.plan-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.plan-card .btn-global {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}
.plan-card.active {
  border: 2px solid var(--Primary-Main);
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.15);
}
.plan-card .plan-head {
  margin-bottom: 1.5rem;
}
.plan-card .plan-head h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.plan-card .plan-head .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.plan-card .plan-head .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neutral-black-3);
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.plan-card .plan-head .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}
.plan-card .btn-global {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 1rem;
  border: none;
  cursor: pointer;
}
.plan-card .btn-global.current {
  background: #f8f9fa;
  color: #aaa;
  cursor: default;
}
.plan-card .btn-global.selected {
  background: var(--Primary-Main);
  color: #fff;
}
.plan-card .btn-global.selected i {
  margin-right: 0.5rem;
}
.plan-card .plan-usage {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}
.plan-card .plan-usage i {
  margin-right: 0.5rem;
  color: var(--text-muted);
}
.plan-card .plan-usage .usage-text {
  color: var(--Primary-Main);
  font-weight: 700;
}
.plan-card .btn-add-credits {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
  box-shadow: none;
  margin: 0;
}
.plan-card .btn-add-credits:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}
.plan-card .divider {
  height: 1px;
  background: #eee;
  margin: 1.5rem 0;
}
.plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan-card .plan-features li {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.plan-card .plan-features li i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

/* --- Credit Slider Card --- */
.credit-slider-card {
  background: var(--bg-body);
  border-radius: 1rem;
  padding: 1.25rem;
  border-radius: 0.9375rem;
  border: 1px solid var(--neutral-white-9);
}
.credit-slider-card .slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.credit-slider-card .slider-info h4 {
  margin: 0;
  color: var(--neutral-black-3);
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.credit-slider-card .slider-info .slider-price {
  margin: 0;
  color: var(--neutral-black-3);
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.range-slider-wrapper {
  padding: 0 10px;
}
.range-slider-wrapper .custom-range {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 5px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
  cursor: pointer;
}
.range-slider-wrapper .custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--Primary-Main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.range-slider-wrapper .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.range-slider-wrapper .range-labels span {
  width: 30px;
  text-align: center;
}

.billing-summary-card {
  position: sticky;
  top: 2rem;
  background: var(--bg-body);
  /* Large rounded corners */
  border-radius: 24px;
  /* Deep, soft shadow (Floating effect) - No Border */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: none;
  padding: 1.25rem;
  z-index: 10;
}
.billing-summary-card .btn-global {
  padding: 0.75rem 1rem;
}

/* Title */
.summary-title {
  font-size: 1.5rem;
  font-weight: 500; /* Medium weight, not super bold */
  color: var(--text-main);
  margin-bottom: 0; /* Spacing handled by padding/divider */
}

/* Dashed Separator */
.divider2 {
  height: 1px;
  background: transparent;
  border-top: 1px dashed #e5e7eb; /* The dashed line look */
  margin: 1.5rem 0;
}

/* Rows (Plan, Credits, etc) */
.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #111;
  border-bottom: 1px dashed #e5e7eb;
  margin: 0 0 1.25rem;
  padding: 0px 0 1.25rem;
}
.billing-row .label {
  color: #999; /* Light gray for labels */
  font-weight: 400;
}
.billing-row .value {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2rem; /* Spacing between "Pro plan" and "$25" */
  color: var(--neutral-black-3);
}
[data-theme=dark] .billing-row .value {
  color: #fff;
}
.billing-row .value strong {
  font-weight: 500;
  min-width: 40px; /* Aligns prices */
  text-align: right;
}

/* Total Row */
.billing-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.billing-total-row span:first-child {
  color: #9ca3af; /* "Total" label is gray */
  font-size: 1.2rem;
}
.billing-total-row .total-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-black-3);
}

/* Footer Note */
.billing-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Continue Button */
.btn-checkout {
  width: 100%;
  /* Exact orange gradient/fill from image */
  background: #d97706;
  background: linear-gradient(180deg, #df8518 0%, #c26200 100%);
  color: #fff;
  border: none;
  padding: 1rem; /* Taller button */
  border-radius: 16px; /* Smooth corners */
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
  transition: transform 0.1s, box-shadow 0.2s;
}
.btn-checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.3);
}
.btn-checkout:active {
  transform: translateY(0);
}

/* =========================================
   MOBILE SUBSCRIPTION ADJUSTMENTS
   ========================================= */
@media (max-width: 767px) {
  /* 1. Horizontal Scroll for Plans */
  .plans-grid.mobile-scroll-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1.5rem; /* Space for scrollbar/shadow */
    margin-right: -1rem; /* Break grid out of container padding */
    padding-right: 1rem;
    /* Hide scrollbar */
    scrollbar-width: none;
  }
  .plans-grid.mobile-scroll-grid::-webkit-scrollbar {
    display: none;
  }
  .plans-grid.mobile-scroll-grid {
    /* Card Sizing for Scroll */
  }
  .plans-grid.mobile-scroll-grid .plan-card {
    min-width: 85%; /* Shows part of next card */
    flex: 0 0 85%;
    max-width: 350px;
  }
  .plans-grid.mobile-scroll-grid {
    max-width: 43rem;
    margin: auto;
  }
  .credit-slider-card {
    margin-bottom: 50px;
  }
  /* 2. Slide-Up Billing Sheet */
  .billing-summary-card {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-body);
    z-index: 1050;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    padding: 0; /* Reset padding, handled inside */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Collapsed State: Pushed down, leaving only header visible */
    /* Assuming header height ~60px */
    transform: translateY(calc(100% - 60px));
  }
  .billing-summary-card.active {
    transform: translateY(0); /* Slide Up */
  }
  .billing-summary-card.active .toggle-icon {
    transform: rotate(180deg); /* Flip arrow */
  }
  /* Mobile Toggle Header */
  .bs-mobile-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    background: var(--bg-body);
    border-radius: 24px 24px 0 0;
  }
  .bs-mobile-toggle .bs-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-black-3);
  }
  .bs-mobile-toggle .toggle-icon {
    font-size: 1rem;
    color: var(--neutral-black-3);
    transition: transform 0.3s ease;
  }
  /* Content Wrapper Padding */
  .bs-content-wrapper {
    padding: 1.5rem;
    max-height: 80vh; /* Prevent overflowing screen */
    overflow-y: auto;
  }
  /* Adjust Button in Sheet */
  .btn-checkout {
    margin-bottom: 1rem; /* Safe area */
  }
}
/* =========================================
CUSTOM COMPONENT: HELP CENTER / FAQ
========================================= */
.faq-category-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Space between cards */
  max-width: 900px; /* Optional: Constrain width for readability */
}

.faq-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color); /* Light border */
  border-radius: 1rem; /* Smooth rounded corners */
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  /* Hover Effect */
}
.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #ddd;
  /* Move arrow slightly on hover */
}
.faq-card:hover .fc-arrow {
  transform: translateX(4px);
}

/* --- Left Side (Icon + Text) --- */
.fc-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Icon Box */
.fc-icon {
  font-size: 1.75rem;
  color: #4b5563; /* Dark gray icon color */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}
.fc-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
[data-theme=dark] .fc-icon img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

/* Text Info */
.fc-info {
  display: flex;
  flex-direction: column;
}
.fc-info .fc-title {
  margin-bottom: 0.25rem;
  color: var(--neutral-black-3);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
}
.fc-info .fc-meta {
  font-size: 0.85rem;
  color: #9ca3af; /* Light gray text */
  font-weight: 400;
}

/* --- Right Side (Arrow) --- */
.fc-arrow {
  color: var(--Primary-Main); /* Orange arrow */
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  /* If you don't have var(--Primary-Main), use: */
  /* color: #E67E22; */
}

/* =========================================
   32. CUSTOM COMPONENT: FAQ DETAIL PAGE
   ========================================= */
/* Main Layout Grid */
.faq-details-container {
  display: grid;
  grid-template-columns: 31.6875rem auto; /* Sidebar width | Content width */
  gap: 2rem;
  margin: 0 auto;
  /* Responsive: Stack on mobile */
}
@media (max-width: 992px) {
  .faq-details-container {
    grid-template-columns: 20rem auto; /* Sidebar width | Content width */
  }
}
@media (max-width: 767px) {
  .faq-details-container {
    grid-template-columns: 1fr;
  }
}

/* --- Sidebar Styling --- */
.faq-sidebar {
  position: relative;
}
.faq-sidebar .sidebar-sticky-content {
  position: sticky;
  top: 2rem; /* Sticks when scrolling */
}

.back-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 2rem;
}
.back-link .icon-circle {
  width: 32px;
  height: 32px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-right: 0.75rem;
}
.back-link:hover {
  opacity: 0.8;
}

.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Content Area Styling --- */
.article-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.article-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  list-style: disc;
}
.article-card ul li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.article-header {
  margin-bottom: 1.5rem;
}
.article-header .title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  margin-top: 0;
  padding: 0;
}
.article-header .meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.intro-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: transform 0.1s;
}
.btn-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.article-body {
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
}
.article-body h4 {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.article-body p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.article-body .mt-large {
  margin-top: 1.5rem;
}
.article-body .divder {
  border-bottom: 1px solid var(--neutral-white-8, #e9e9e9);
  width: 100%;
}
.article-body .group-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0 0 1.875rem;
}

/* --- Feedback Box --- */
.feedback-box {
  background-color: var(--bg-surface-secondary); /* Light beige/orange tint */
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}
.feedback-box .question {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--neutral-black-3);
}

.emoji-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.emoji-btn {
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  filter: grayscale(100%);
  opacity: 0.6;
}
.emoji-btn:hover {
  transform: scale(1.2);
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================================
   33. CUSTOM COMPONENT: PROFILE PAGE
   ========================================= */
/* --- Main Layout Spacing --- */
.main-content {
  padding: 1.5rem; /* Replaces p-3/p-4 */
  background-color: #fff; /* or var(--bg-body) */
}

/* --- Header --- */
.profile-page-header {
  margin-bottom: 2rem;
}
.profile-page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}
.profile-page-header p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

/* --- Profile Sections (Left Column) --- */
.profile-section {
  margin-bottom: 3rem;
}

.section-head {
  display: flex; /* Replaces d-flex */
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head .step-badge {
  width: 24px;
  height: 24px;
  background-color: #016a9b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.section-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #016a9b;
}

/* --- Form Elements --- */
.custom-form-group {
  margin-bottom: 1.25rem; /* Replaces mb-3 */
  display: flex;
  flex-direction: column;
}
.custom-form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.custom-input {
  width: 100%;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.custom-input:focus {
  border-color: var(--Primary-Main); /* Orange */
}
.custom-input.disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  pointer-events: none;
}
.custom-input {
  /* Large variant for modals */
}
.custom-input.lg {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 16px;
}

/* Icon Wrapper */
.icon-input-wrapper {
  position: relative;
}
.icon-input-wrapper .icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.icon-input-wrapper input {
  padding-right: 2.5rem;
}

/* Reset Link Area */
.reset-link-wrapper {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.reset-link-wrapper .text-label {
  color: #6b7280;
}
.reset-link-wrapper .link-action {
  color: var(--Primary-Main);
  font-weight: 600;
  text-decoration: underline;
}

/* Orange Button */
.btn-save-update {
  padding: 0.75rem 1rem;
  border: none;
  cursor: pointer;
}

/* --- Sidebar (Right Column) --- */
.users-sidebar-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  height: 600px;
  overflow: auto;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.card-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin-bottom: 1rem;
}

/* User List Item (Blue Card) */
.user-list-item {
  background-color: #016a9b; /* Dark Teal */
  border-radius: 12px;
  padding: 1rem;
  display: flex; /* Replaces d-flex */
  justify-content: space-between;
  align-items: flex-start;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}
.user-list-item:hover {
  transform: translateY(-2px);
}

.user-details {
  display: flex;
  flex-direction: column;
}
.user-details .user-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.user-details .user-email {
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 8px;
}
.user-details .user-role-badge {
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.btn-edit-icon {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Add New Button */
.btn-add-user {
  width: 100%;
  margin-top: 1rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.btn-add-user:hover {
  background-color: #f9fafb;
}
.btn-add-user i {
  margin-right: 0.5rem;
}

/* --- Modals Custom Styling --- */
/* We target the class inside the bootstrap modal structure */
.custom-modal-style {
  border-radius: 24px; /* Large radius */
  border: none;
  padding: 1.5rem;
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.custom-modal-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
}
.custom-modal-header .btn-close-custom {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #9ca3af;
  cursor: pointer;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  font-weight: 600;
  color: #111;
}

.btn-modal-action {
  width: 100%;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.btn-modal-action:hover {
  opacity: 0.9;
}

/* =========================================
   34. CUSTOM COMPONENT: BILLING HISTORY
   ========================================= */
.main-content {
  padding: 2rem;
  background-color: #fff;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}

/* --- Billing Table Card --- */
.billing-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  padding: 0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}
.custom-table thead th {
  text-align: left;
  padding: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.custom-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--neutral-black-3);
  font-size: 0.95rem;
  vertical-align: middle;
}
.custom-table tbody tr:last-child td {
  border-bottom: none;
}
.custom-table tbody tr:hover {
  background-color: #f9fafb;
}
[data-theme=dark] .custom-table tbody tr:hover {
  background-color: #333333;
}

/* Status Badges */
.status-badge2 {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge2.paid {
  background-color: #dcfce7; /* Light Green */
  color: #166534;
}
.status-badge2.upcoming {
  background-color: #fef3c7; /* Light Yellow */
  color: #92400e;
}
.status-badge2 {
  /* Small variant for sidebar */
}
.status-badge2.sm {
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

/* View Invoice Link */
.btn-view-invoice {
  background: transparent;
  border: none;
  color: #d97706; /* Orange */
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-view-invoice i {
  font-size: 0.8rem;
  margin-left: 4px;
}
.btn-view-invoice:hover {
  color: #b45309;
}

/* =========================================
   INVOICE SUMMARY SHEET (Slide-over / Modal)
   ========================================= */
/* Overlay */
.invoice-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.invoice-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* The Sheet Card */
.invoice-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  z-index: 1050;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.invoice-sheet.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.invoice-sheet {
  /* Mobile: Bottom Sheet Style */
}
@media (max-width: 767px) {
  .invoice-sheet {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .invoice-sheet.active {
    transform: translateY(0);
  }
}

/* Sheet Components */
.invoice-icon {
  width: 40px;
  height: 40px;
  background: #fff7ed;
  color: #d97706;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.btn-sheet-download {
  width: 100%;
  background: #fff7ed;
  color: #d97706;
  border: none;
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn-sheet-download:hover {
  background: #ffedd5;
}

.btn-sheet-close {
  width: 100%;
  background: transparent;
  border: none;
  color: #6b7280;
  margin-top: 1rem;
  font-weight: 500;
}

.mobile-drag-handle {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 10px;
  margin: 0 auto 1.5rem;
}

/* =========================================
   SLIDE-IN PANEL STYLING
   ========================================= */
/* Overlay (Darkens background) */
.invoice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.invoice-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* The Panel */
.invoice-slide-panel {
  position: fixed;
  top: 0;
  right: -500px; /* Hidden off-screen initially */
  width: 450px;
  max-width: 90%;
  height: 100vh;
  background: var(--bg-body);
  z-index: 999;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth slide */
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  border-radius: 15px 0 0 15px;
}
.invoice-slide-panel.active {
  right: 0; /* Slide in */
}
.invoice-slide-panel {
  /* Panel Header */
}
.invoice-slide-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 0 0 1.25rem;
  background: transparent;
}
.invoice-slide-panel .panel-header .header-left {
  display: flex;
  gap: 1rem;
}
.invoice-slide-panel .panel-header .icon-box {
  width: 40px;
  height: 40px;
  background: #ffedd5; /* Light Orange */
  color: #d97706;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.invoice-slide-panel .panel-header .title-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.invoice-slide-panel .panel-header .title-row h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.invoice-slide-panel .panel-header .subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}
.invoice-slide-panel .panel-header .btn-close-panel {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #9ca3af;
  cursor: pointer;
}
.invoice-slide-panel .panel-header .btn-close-panel:hover {
  color: #111;
}
.invoice-slide-panel .title-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-direction: column;
}
.invoice-slide-panel {
  /* Footer Button */
}
.invoice-slide-panel .panel-footer {
  padding-top: 2rem;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  background: transparent;
  border: none;
}
.invoice-slide-panel .panel-footer .btn-download-pdf {
  width: 100%;
  background: #fff7ed; /* Very light orange */
  color: #d97706;
  border: 1px solid transparent;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.invoice-slide-panel .panel-footer .btn-download-pdf:hover {
  background: #ffedd5;
  border-color: #fed7aa;
}
.invoice-slide-panel .panel-footer .btn-download-pdf i {
  margin-right: 0.5rem;
}
.invoice-slide-panel {
  /* Info Grid (2 Columns) */
}
.invoice-slide-panel .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.invoice-slide-panel .info-grid .info-item {
  display: flex;
  flex-direction: column;
}
.invoice-slide-panel .info-grid .info-item .label {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
}
[data-theme=dark] .invoice-slide-panel .info-grid .info-item .label {
  color: #fff;
}
.invoice-slide-panel .info-grid .info-item .value {
  font-size: 0.95rem;
  color: var(--neutral-black-3);
  font-weight: 500;
}
.invoice-slide-panel .divider {
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 2rem;
}
.invoice-slide-panel {
  /* Breakdown Section */
}
.invoice-slide-panel .breakdown-section h5 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.invoice-slide-panel .breakdown-section .line-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #999;
  border-bottom: 1px dashed var(--border-gray-bottom);
  margin: 0 0 20px;
  padding: 0 0 20px;
}
[data-theme=dark] .invoice-slide-panel .breakdown-section .line-item {
  color: #fff;
}
.invoice-slide-panel .breakdown-section .line-item.plain-border {
  border-bottom: 1px solid var(--border-gray-bottom);
}
.invoice-slide-panel .breakdown-section .line-item .right {
  display: flex;
  gap: 2rem; /* Space between Plan Name and Price */
  text-align: right;
}
.invoice-slide-panel .breakdown-section .line-item .desc {
  font-weight: 500;
}
.invoice-slide-panel .breakdown-section .line-item .price {
  font-weight: 600;
  min-width: 40px;
  color: var(--neutral-black-3);
}
.invoice-slide-panel .breakdown-section .line-item.dashed-top {
  border-top: 1px dashed #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}
.invoice-slide-panel .breakdown-section .total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-weight: 700;
}
.invoice-slide-panel .breakdown-section .total-row.no-border {
  border: none;
}
.invoice-slide-panel .breakdown-section .total-row .total-price {
  font-size: 1.25rem;
}

/* --- MOBILE TABLE TRANSFORMATION --- */
@media (max-width: 767px) {
  .custom-table.mobile-list-view tbody tr,
  .custom-table.mobile-list-view thead tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer; /* Clickable row */
  }
  .custom-table.mobile-list-view tbody tr:active,
  .custom-table.mobile-list-view thead tr:active {
    background-color: var(--bg-surface-secondary);
  }
  .custom-table.mobile-list-view {
    /* Hide unnecessary columns on mobile */
  }
  .custom-table.mobile-list-view .detail-col,
  .custom-table.mobile-list-view .amount-col {
    display: none;
  }
  .custom-table.mobile-list-view {
    /* Adjust Date Column */
  }
  .custom-table.mobile-list-view .date-col {
    border: none;
    padding: 0;
    font-weight: 500;
    font-size: 0.95rem;
  }
  .custom-table.mobile-list-view {
    /* Adjust Status & Action */
  }
  .custom-table.mobile-list-view .status-col {
    border: none;
    padding: 0;
    margin-left: auto; /* Push to right */
    margin-right: 0.5rem;
  }
  .custom-table.mobile-list-view .action-col {
    border: none;
    padding: 0;
  }
  .invoice-slide-panel {
    right: unset;
    bottom: -120%;
    width: 100%;
    max-width: 100%;
    height: -moz-max-content;
    height: max-content;
    margin-top: auto;
    border-radius: 15px 15px 0 0;
  }
  .invoice-slide-panel.active {
    bottom: 0%;
    height: 85%;
  }
}
/* =========================================
   SWIPER SLIDER CUSTOMIZATION
   ========================================= */
.item-large-preview {
  position: relative; /* Context for absolute controls */
  width: 100%;
  height: 100%;
  min-height: 400px; /* Ensure height if empty */
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  /* The Swiper Container */
}
.item-large-preview .swiper {
  width: 100%;
  height: 100%;
}
.item-large-preview .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-large-preview .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover; /* Ensures image fills slide without distortion */
}

/* Custom Navigation Controls Overlay */
.item-nav-controls {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 10px;
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 15px 0 0 0;
}
.item-nav-controls .nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-surface-secondary);
  border-radius: 50%;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.item-nav-controls .nav-btn:hover {
  background-color: var(--Primary-Main); /* Orange */
  color: #fff;
  transform: scale(1.05);
}
.item-nav-controls .nav-btn {
  /* Disabled state (start/end of slide) */
}
.item-nav-controls .nav-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: default;
  background: #f0f0f0;
  color: #ccc;
}
.item-nav-controls .nav-btn.swiper-button-disabled:hover {
  background: #f0f0f0;
  color: #ccc;
  transform: none;
}

/* =========================================
   FOLDER ACTION BOTTOM SHEET (Nested)
   ========================================= */
.folder-sheet-wrapper {
  position: fixed;
  inset: 0; /* Top, Right, Bottom, Left = 0 */
  z-index: 2000;
  pointer-events: none; /* Let clicks pass through when hidden */
  /* --- 1. Overlay (Nested) --- */
}
.folder-sheet-wrapper .sheet-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.folder-sheet-wrapper {
  /* --- 2. The Sheet (Nested) --- */
}
.folder-sheet-wrapper .folder-action-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-body);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
  /* Animation Props */
  transform: translateY(100%); /* Start hidden below screen */
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
  /* Desktop Constraint */
}
@media (min-width: 768px) {
  .folder-sheet-wrapper .folder-action-sheet {
    max-width: 31.25rem;
    left: 50%;
    margin-left: -15.625rem;
    bottom: 0;
    border-radius: 1.25rem 1.25rem 0 0;
  }
}
.folder-sheet-wrapper .folder-action-sheet {
  /* --- Internal Elements (Nested inside Sheet) --- */
}
.folder-sheet-wrapper .folder-action-sheet .drag-handle {
  width: 40px;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 0 auto 1.5rem auto;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header {
  margin-bottom: 1.25rem;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header.row-column {
  flex-direction: row;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .title-row .sheet-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-black-3);
  border-bottom: 1px dotted #ccc;
  line-height: 1.3;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .title-row .btn-edit-title {
  background: transparent;
  border: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .meta-row .meta-icons {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: #f5f5f5;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-image-container .sheet-img {
  width: 100%;
  height: auto;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 16/9;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-divider {
  height: 1px;
  background-color: #eee;
  margin-bottom: 1.5rem;
  width: 100%;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-actions .sheet-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  color: var(--neutral-black-3);
  transition: opacity 0.2s;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-actions .sheet-action-btn:hover {
  opacity: 0.7;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-actions .sheet-action-btn .icon {
  width: 24px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
}
.folder-sheet-wrapper .folder-action-sheet .sheet-actions .sheet-action-btn .label {
  font-weight: 400;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-actions .sheet-action-btn.delete .icon {
  color: var(--text-secondary);
}
.folder-sheet-wrapper {
  /* --- Active State (Nested Parent Modifier) --- */
}
.folder-sheet-wrapper.active {
  pointer-events: auto;
}
.folder-sheet-wrapper.active .sheet-overlay {
  opacity: 1;
  visibility: visible;
}
.folder-sheet-wrapper.active .folder-action-sheet {
  transform: translateY(0); /* Slide Up */
}

.sheet-header.row-column {
  flex-direction: row;
}

/* =========================================
   ORDER INFO BOTTOM SHEET (Nested)
   ========================================= */
.order-info-sheet-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1054; /* Higher than folder-sheet (2000) */
  pointer-events: none;
  visibility: hidden;
  /* --- 1. Overlay --- */
}
.order-info-sheet-wrapper .sheet-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2); /* Lighter overlay for stacking */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.order-info-sheet-wrapper {
  /* --- 2. The Sheet --- */
}
.order-info-sheet-wrapper .info-action-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
  /* Animation Props */
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 85vh; /* Slightly shorter than the one behind it */
  overflow-y: auto;
  /* Desktop Constraint */
}
@media (min-width: 768px) {
  .order-info-sheet-wrapper .info-action-sheet {
    max-width: 500px;
    left: 50%;
    margin-left: -250px;
    bottom: -2rem;
    border-radius: 20px;
  }
}
.order-info-sheet-wrapper .info-action-sheet {
  /* --- Internal Elements --- */
}
.order-info-sheet-wrapper .info-action-sheet .drag-handle {
  width: 40px;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 0 auto 1.5rem auto;
}
.order-info-sheet-wrapper .info-action-sheet .sheet-header {
  margin-bottom: 1.5rem;
}
.order-info-sheet-wrapper .info-action-sheet .sheet-header .sheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.order-info-sheet-wrapper .info-action-sheet .sheet-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}
.order-info-sheet-wrapper .info-action-sheet .sheet-body .info-text {
  margin: 0;
  word-break: break-word; /* Prevents long paths from breaking layout */
}
.order-info-sheet-wrapper .info-action-sheet .sheet-body .info-text strong {
  font-weight: 600;
  color: #000;
}
.order-info-sheet-wrapper .info-action-sheet .sheet-body .file-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  color: #555;
}
.order-info-sheet-wrapper .info-action-sheet .sheet-body .file-list li {
  margin-bottom: 0.25rem;
}
.order-info-sheet-wrapper {
  /* --- Active State --- */
}
.order-info-sheet-wrapper.active {
  pointer-events: auto;
  visibility: visible;
}
.order-info-sheet-wrapper.active .sheet-overlay {
  opacity: 1;
  visibility: visible;
}
.order-info-sheet-wrapper.active .info-action-sheet {
  transform: translateY(0);
}

/* =========================================
   UPLOAD PROGRESS SHEET (Nested)
   ========================================= */
.upload-sheet-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1054; /* Highest priority */
  pointer-events: none; /* Pass clicks when hidden */
  visibility: hidden;
  /* --- 1. Overlay --- */
}
.upload-sheet-wrapper .sheet-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: auto; /* Catch clicks */
}
.upload-sheet-wrapper {
  /* --- 2. The Sheet Card --- */
}
.upload-sheet-wrapper .upload-sheet-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-body);
  border-radius: 20px 20px 0 0; /* Rounded top corners */
  padding: 1.5rem;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%); /* Start hidden below */
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  max-height: 85vh; /* Max height on mobile */
  /* Desktop Constraint (Optional: Float as modal on large screens) */
}
@media (min-width: 768px) {
  .upload-sheet-wrapper .upload-sheet-card {
    width: 450px;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(0.9); /* Start State Desktop */
    border-radius: 16px;
    opacity: 0;
    margin-left: -225px; /* Center alignment fix if needed */
  }
}
.upload-sheet-wrapper {
  /* --- Active State --- */
}
.upload-sheet-wrapper.active {
  pointer-events: auto;
  visibility: visible;
}
.upload-sheet-wrapper.active .sheet-overlay {
  opacity: 1;
  visibility: visible;
}
.upload-sheet-wrapper.active .upload-sheet-card {
  transform: translateY(0); /* Slide Up Mobile */
}
@media (min-width: 768px) {
  .upload-sheet-wrapper.active .upload-sheet-card {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
    bottom: 50%;
    left: 50%;
    margin: 0;
  }
}
.upload-sheet-wrapper {
  /* --- INTERNAL STYLES --- */
  /* Header */
}
.upload-sheet-wrapper .um-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.upload-sheet-wrapper .um-header .um-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-black-3);
  margin: 0;
}
.upload-sheet-wrapper .um-header .btn-cancel-all {
  background: none;
  border: none;
  color: #d72323; /* Red */
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}
.upload-sheet-wrapper .um-header .btn-cancel-all:hover {
  opacity: 0.8;
}
.upload-sheet-wrapper {
  /* Global Progress */
}
.upload-sheet-wrapper .global-progress-track {
  height: 4px;
  background-color: var(--bg-surface-secondary);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.upload-sheet-wrapper .global-progress-track .global-progress-fill {
  height: 100%;
  background-color: #d97706; /* Orange */
  transition: width 0.3s ease;
}
.upload-sheet-wrapper {
  /* Tabs */
}
.upload-sheet-wrapper .um-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  padding-bottom: 2px;
}
.upload-sheet-wrapper .um-tabs .um-tab {
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}
.upload-sheet-wrapper .um-tabs .um-tab.active {
  color: var(--neutral-black-3);
  font-weight: 600;
}
.upload-sheet-wrapper .um-tabs .um-tab.active::after {
  content: "";
  position: absolute;
  bottom: -3px; /* Align with border */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #111;
}
.upload-sheet-wrapper {
  /* File List */
}
.upload-sheet-wrapper .um-file-list {
  overflow-y: auto;
  flex: 1; /* Take remaining height */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 5px;
}
.upload-sheet-wrapper .um-file-list::-webkit-scrollbar {
  width: 4px;
}
.upload-sheet-wrapper .um-file-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}
.upload-sheet-wrapper {
  /* Single File Item */
}
.upload-sheet-wrapper .file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.5rem;
  /* Circular Progress Icon */
}
.upload-sheet-wrapper .file-item .file-progress-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-surface);
  flex-shrink: 0;
}
.upload-sheet-wrapper .file-item .file-progress-icon i {
  font-size: 1rem;
  color: #555;
  z-index: 2;
}
.upload-sheet-wrapper .file-item .file-progress-icon {
  /* Conic Gradient Ring */
}
.upload-sheet-wrapper .file-item .file-progress-icon::before {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  background: conic-gradient(#d97706 var(--progress, 0%), #f3f4f6 0deg);
  z-index: 1;
  transition: --progress 0.1s linear; /* Smooth fill */
}
.upload-sheet-wrapper .file-item .file-progress-icon {
  /* Inner Mask */
}
.upload-sheet-wrapper .file-item .file-progress-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--bg-body);
  border-radius: 50%;
  z-index: 1;
}
.upload-sheet-wrapper .file-item .file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.upload-sheet-wrapper .file-item .file-info .file-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-black-3);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-sheet-wrapper .file-item .file-info .file-name a {
  color: inherit;
  text-decoration: none;
}
.upload-sheet-wrapper .file-item .file-info .file-name a:hover {
  text-decoration: underline;
}
.upload-sheet-wrapper .file-item .file-info .file-meta {
  font-size: 0.8rem;
  color: #6b7280;
}
.upload-sheet-wrapper .file-item .btn-remove-file {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
}
.upload-sheet-wrapper .file-item .btn-remove-file:hover {
  color: #d72323;
}

.title-group .edit-icon {
  opacity: 1;
}

.confirmation-sheet-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1054;
  pointer-events: none;
  visibility: hidden;
}
.confirmation-sheet-wrapper .sheet-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: auto;
}
.confirmation-sheet-wrapper .confirmation-sheet-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-body);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .confirmation-sheet-wrapper .confirmation-sheet-card {
    width: 400px;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(0.9);
    border-radius: 20px;
    opacity: 0;
    margin-left: -200px;
  }
}
.confirmation-sheet-wrapper.active .sheet-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.confirmation-sheet-wrapper.active .confirmation-sheet-card {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .confirmation-sheet-wrapper.active .confirmation-sheet-card {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
    bottom: 50%;
    margin: 0;
    visibility: visible;
  }
}
.confirmation-sheet-wrapper {
  /* Styles for content */
}
.confirmation-sheet-wrapper .sheet-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.confirmation-sheet-wrapper .sheet-icon.blue {
  background: #e3f2fd;
  color: #016a9b;
}
.confirmation-sheet-wrapper .sheet-icon.red {
  background: #fee2e2;
  color: #d72323;
}
.confirmation-sheet-wrapper .sheet-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}
.confirmation-sheet-wrapper .btn-sheet-action {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.confirmation-sheet-wrapper .btn-sheet-action.orange {
  background: #d97706;
  color: #fff;
}
.confirmation-sheet-wrapper .btn-sheet-action.red {
  background: #d72323;
  color: #fff;
}
.confirmation-sheet-wrapper .btn-sheet-action.outline {
  background: transparent;
  border: 1px solid #ddd;
  color: #555;
}
.confirmation-sheet-wrapper .btn-sheet-action.green {
  background: #109b01; /* Green variable */
  color: #fff;
}
.confirmation-sheet-wrapper .btn-sheet-action.green:hover {
  background: #0d8a01;
}

/* =========================================
   FAQ SIDEBAR NAVIGATION
   ========================================= */
.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Space between items */
}
.faq-nav .nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--text-secondary); /* Default text color */
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: transparent;
  /* Label text */
}
.faq-nav .nav-item .label {
  margin-right: 1rem;
}
.faq-nav .nav-item {
  /* Arrow icon */
}
.faq-nav .nav-item .arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq-nav .nav-item {
  /* Hover State */
}
.faq-nav .nav-item:hover {
  background-color: var(--bg-surface-secondary); /* Light grey bg */
  color: var(--text-main); /* Darker text */
}
.faq-nav .nav-item:hover .arrow {
  color: var(--text-main);
  transform: translateX(3px); /* Slide arrow right */
}
.faq-nav .nav-item {
  /* Active State (Selected Item) */
}
.faq-nav .nav-item.active {
  background-color: var(--bg-surface-secondary);
  color: var(--Primary-Main); /* Orange Text */
  font-weight: 600;
}
.faq-nav .nav-item.active .arrow {
  color: var(--Primary-Main);
}

/* =========================================
   PROFILE PAGE (Responsive Tabs)
   ========================================= */
/* 1. Mobile Tab Navigation */
.mobile-profile-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}
.mobile-profile-tabs .mp-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem;
  font-weight: 500;
  color: #6b7280; /* Gray */
  font-size: 1rem;
  transition: all 0.2s;
}
.mobile-profile-tabs .mp-tab.active {
  color: --neutral-black-3; /* Black */
  border-bottom-color: #111;
  font-weight: 600;
}

/* 2. Responsive Content Panes */
/* On Mobile: Hide inactive panes. On Desktop: Always show block. */
@media (max-width: 767px) {
  .mobile-pane {
    display: none;
  }
  .mobile-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  /* Users Card Flat Style on Mobile */
  .users-sidebar-card {
    border: none;
    padding: 0;
    background: transparent;
    height: auto;
    overflow: visible;
  }
}
/* =========================================
   MODAL UPDATES (Matching Images 3 & 4)
   ========================================= */
.custom-modal-style {
  border-radius: 20px;
  padding: 1.5rem;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.custom-modal-style .custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.custom-modal-style .custom-modal-header h4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  color: #111;
}
.custom-modal-style .custom-modal-header {
  /* Close Button Circle */
}
.custom-modal-style .custom-modal-header .btn-close-custom {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #111;
  transition: 0.2s;
}
.custom-modal-style .custom-modal-header .btn-close-custom:hover {
  background: #e5e7eb;
}

/* Large Inputs for Modal */
.custom-input.lg {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-body);
  width: 100%;
}
.custom-input.lg:focus {
  border-color: var(--Primary-Main);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Full Width Orange Button */
.btn-modal-action {
  width: 100%;
  padding: 0.9rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  margin-top: 1rem;
  color: #fff;
  background-color: #d97706; /* Fallback */
  transition: opacity 0.2s;
}
.btn-modal-action.btn-global-orange {
  background: var(--Primary-Main);
}
.btn-modal-action:hover {
  opacity: 0.9;
}

/* Toggle Row Styling */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.25rem 0;
}

/* MOBILE BOTTOM SHEET TRANSFORMATION */
@media (max-width: 767px) {
  .modal-dialog-mobile-bottom {
    margin: 0;
    display: flex;
    align-items: flex-end; /* Align to bottom */
    min-height: 100%;
  }
  .modal-dialog-mobile-bottom .modal-content {
    border-radius: 24px 24px 0 0; /* Top corners only */
    padding-bottom: 2rem; /* Safe area */
  }
  .modal.fade .modal-dialog.modal-dialog-mobile-bottom {
    transform: translate(0, 150px);
  }
  .modal.fade.show .modal-dialog.modal-dialog-mobile-bottom {
    transform: translate(0, 0px);
  }
  /* Drag Handle Visual */
  .mobile-drag-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 10px;
    margin: 0 auto 1.5rem;
  }
}
/* =========================================
   MOBILE EDIT SHEETS (AI & FINE TUNE)
   ========================================= */
.mobile-edit-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  /* Overlay */
}
.mobile-edit-sheet .sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s;
}
.mobile-edit-sheet {
  /* Container */
}
.mobile-edit-sheet .sheet-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-body);
  border-radius: 20px 20px 0 0;
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}
.mobile-edit-sheet {
  /* Active State */
}
.mobile-edit-sheet.active {
  visibility: visible;
  opacity: 1;
}
.mobile-edit-sheet.active .sheet-container {
  transform: translateY(0);
}

/* --- Header --- */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 1rem;
}
.sheet-header .sheet-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}
.sheet-header .btn-text-action {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sheet-header .btn-text-action.orange {
  color: #d97706;
}
.sheet-header .btn-icon-close {
  background: #f3f4f6;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Scrollable Tabs --- */
.sheet-tabs-scroll-wrap {
  overflow: auto;
}

.sheet-tabs-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  justify-content: start;
  /* Hide Scrollbar */
}
.sheet-tabs-scroll .tab-item {
  background: none;
  border: none;
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.sheet-tabs-scroll .tab-item i {
  font-size: 1rem;
}
.sheet-tabs-scroll .tab-item.active {
  color: var(--neutral-black-3);
  font-weight: 600;
}
.sheet-tabs-scroll .tab-item.active .dot {
  color: #d97706;
  font-weight: bold;
}
.sheet-tabs-scroll {
  /* Text Only Variant (Fine Tune) */
}
.sheet-tabs-scroll.text-style {
  gap: 1.5rem;
}
.sheet-tabs-scroll.text-style .tab-item {
  font-size: 0.95rem;
}

/* --- Options Grid (AI Edit) --- */
.options-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  display: none;
}
.options-grid.active {
  display: flex; /* or 'display: block' depending on your layout */
  gap: 10px; /* Optional spacing */
}

.option-card-label {
  cursor: pointer;
}
.option-card-label .hidden-radio {
  display: none;
}
.option-card-label .opt-card {
  width: 90px;
  height: 90px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}
.option-card-label .opt-card .icon-box {
  font-size: 1.5rem;
  color: #9ca3af;
  margin-bottom: 5px;
}
.option-card-label .opt-card .label {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}
.option-card-label .opt-card .check-badge {
  display: none;
}
.option-card-label {
  /* Checked State */
}
.option-card-label .hidden-radio:checked + .opt-card {
  border-color: #111;
  background: #f9fafb;
}
.option-card-label .hidden-radio:checked + .opt-card .icon-box {
  color: #111;
}
.option-card-label .hidden-radio:checked + .opt-card .label {
  color: #111;
  font-weight: 600;
}
.option-card-label .hidden-radio:checked + .opt-card .check-badge {
  display: flex;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  align-items: center;
  justify-content: center;
}

/* --- Fine Tune Slider --- */
input:not([type=submit]):not([type=checkbox]):not([type=radio]).slider-val-box {
  width: 40px;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}

/* --- Actions Row --- */
.sheet-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 0;
  border-top: 1px solid var(--border-gray-bottom);
  padding-top: 1.25rem;
}
.sheet-actions-row .btn-sheet-primary {
  background: #d97706; /* Fallback */
  background: linear-gradient(180deg, #df8518 0%, #c26200 100%);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.9375rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}
.sheet-actions-row .btn-sheet-text {
  background: none;
  border: none;
  color: #d97706;
  font-weight: 500;
  font-size: 0.9rem;
}

/* --- Bottom Mode Switcher (The Pill) --- */
.sheet-mode-switcher {
  display: flex;
  background: var(--bg-surface-secondary);
  padding: 4px;
  border-radius: 12px;
  justify-content: center;
  margin-top: auto; /* Push to bottom if height allows */
}
.sheet-mode-switcher .mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.sheet-mode-switcher .mode-btn.active {
  background: var(--bg-body);
  color: var(--neutral-black-3);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* =========================================
   RE-SORT PAGE (Mobile Adjustments)
   ========================================= */
/* --- 1. Responsive Grid Layout --- */
/* --- 2. Mobile Header Elements --- */
.mobile-resort-header .btn-mobile-pill-gray {
  background: #f3f4f6;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mobile-resort-header .btn-mobile-pill-orange {
  background: #d97706; /* Fallback */
  background: var(--Primary-Main);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.mobile-resort-header .btn-mobile-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1rem;
}

/* --- 3. Mobile Bottom Sort Footer --- */
.mobile-sort-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #2d2d2d; /* Dark Pill Background */
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
}
.mobile-sort-footer .btn-sort-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 5px;
  cursor: pointer;
  opacity: 0.8;
}
.mobile-sort-footer .btn-sort-nav:hover {
  opacity: 1;
}
.mobile-sort-footer .divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

/* Card Visual Tweaks for Mobile */
@media (max-width: 991px) {
  .gallery-card {
    border-radius: 12px;
    aspect-ratio: 4/3;
    overflow: hidden;
  }
  .gallery-card .status-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    top: 0.5rem;
    left: 0.5rem;
  }
}
/* =========================================
   MOBILE HEADER BUTTONS & DROPDOWN (Nested)
   ========================================= */
/* View Dropdown Wrapper */
.view-dropdown-wrapper {
  position: relative;
  /* The View Button */
}
.view-dropdown-wrapper .btn-mobile-pill-gray {
  background: #f3f4f6; /* Light gray background */
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.view-dropdown-wrapper .btn-mobile-pill-gray i {
  font-size: 0.9rem;
}
.view-dropdown-wrapper .btn-mobile-pill-gray:hover, .view-dropdown-wrapper .btn-mobile-pill-gray:active {
  background: #e5e7eb;
}
.view-dropdown-wrapper {
  /* The Dropdown Menu */
}
.view-dropdown-wrapper .mobile-view-dropdown {
  position: absolute;
  top: calc(100% + 8px); /* Gap below button */
  left: 0;
  min-width: 180px;
  background: var(--bg-body);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  z-index: 1050;
  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Show State */
}
.view-dropdown-wrapper .mobile-view-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.view-dropdown-wrapper .mobile-view-dropdown {
  /* Items inside dropdown */
}
.view-dropdown-wrapper .mobile-view-dropdown .dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--neutral-black-3);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.1s;
  text-align: left;
}
.view-dropdown-wrapper .mobile-view-dropdown .dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  color: #6b7280;
}
.view-dropdown-wrapper .mobile-view-dropdown .dropdown-item:hover {
  background: #f3f4f6;
  color: #111;
}
.view-dropdown-wrapper .mobile-view-dropdown .dropdown-item:hover i {
  color: #111;
}

/* Save Button */
.btn-mobile-pill-orange {
  background: #d97706; /* Fallback */
  background: var(--Primary-Main, #d97706);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-mobile-pill-orange:hover {
  background: #b45309;
}

/* Close/Icon Button */
.btn-mobile-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.btn-mobile-icon-circle:hover {
  background: #e5e7eb;
  color: #111;
}

/* =========================================
   ITEM INFO SHEET (Nested)
   ========================================= */
.folder-sheet-wrapper {
  /* Target the Sheet Container inside */
}
.folder-sheet-wrapper .folder-action-sheet {
  /* 1. Header Area */
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header {
  margin-bottom: 1rem;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .sheet-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-black-3);
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header {
  /* Navigation Circles */
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .btn-nav-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-header .btn-nav-circle:hover {
  background: #e5e7eb;
  color: #111;
}
.folder-sheet-wrapper .folder-action-sheet {
  /* 2. Image Preview Area */
}
.folder-sheet-wrapper .folder-action-sheet .sheet-image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative; /* Context for badge */
}
.folder-sheet-wrapper .folder-action-sheet .sheet-image-container .sheet-img {
  width: 100%;
  height: auto;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 16/9;
}
.folder-sheet-wrapper .folder-action-sheet .sheet-image-container {
  /* The 1/5 Badge */
}
.folder-sheet-wrapper .folder-action-sheet .sheet-image-container .img-count-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #111;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.folder-sheet-wrapper .folder-action-sheet {
  /* 3. Data List */
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list .data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list .data-row:last-child {
  border-bottom: none;
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list .data-row {
  /* Helper for border-0 class */
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list .data-row.border-0 {
  border-bottom: none;
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list .data-row .label {
  color: var(--neutral-black-3); /* Dark Gray */
  font-weight: 400;
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list .data-row .value {
  color: var(--neutral-black-3); /* Black */
  font-weight: 400;
  text-align: right;
  /* Specific color override */
}
.folder-sheet-wrapper .folder-action-sheet .info-data-list .data-row .value.text-danger {
  color: #ef4444 !important;
}
.folder-sheet-wrapper .folder-action-sheet {
  /* 4. Large Action Button */
}
.folder-sheet-wrapper .folder-action-sheet .btn-block-orange {
  width: 100%;
  background: #d97706; /* Fallback */
  background: var(--Primary-Main, #d97706);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.folder-sheet-wrapper .folder-action-sheet .btn-block-orange:hover {
  background: #b45309;
}

/* =========================================
   MOBILE PREVIEW PAGE STYLES (Nested)
   ========================================= */
/* 1. Mobile Header Elements */
.mobile-project-header .btn-circle-back {
  width: 36px;
  height: 36px;
  background: #333; /* Dark background */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.mobile-project-header .btn-circle-back:hover {
  opacity: 0.8;
}
.mobile-project-header .btn-icon-simple {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #333;
  padding: 5px;
  cursor: pointer;
}

/* 2. Image Stage Adjustments */
.image-stage-wrapper {
  position: relative;
  /* Mobile constraints */
}
@media (max-width: 991px) {
  .image-stage-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
  }
}
.image-stage-wrapper {
  /* Boosted Badge (Green Pill) */
}
.image-stage-wrapper .mobile-boosted-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #00c853; /* Bright Green */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 3. Mobile Control Row (Circles) */
.mobile-img-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.mobile-img-controls .btn-control-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.mobile-img-controls .btn-control-circle:hover, .mobile-img-controls .btn-control-circle:active {
  background: #e5e7eb;
  color: #111;
}
.mobile-img-controls .btn-control-circle {
  /* Nav Arrows Styling */
}
.mobile-img-controls .btn-control-circle.nav-arrow {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-icon-simple.mobile-card-menu {
  display: flex;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  background: var(--neutral-white-4);
  border-radius: 0.4375rem;
  border: none;
}

@media (max-width: 767px) {
  .adjust-mobile-panel .viewer-bottom-bar {
    position: relative;
    left: 0%;
    transform: translate(0%, 0%);
    bottom: 0;
    margin-top: 1.25rem;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    flex-direction: row-reverse;
  }
  .adjust-mobile-panel .viewer-bottom-bar .vb-group {
    display: none;
  }
  .adjust-mobile-panel .viewer-bottom-bar .vb-group.mobile {
    display: flex;
  }
  .adjust-mobile-panel .viewer-bottom-bar .vb-divider {
    display: none;
  }
}
/* 4. Mobile Bottom Tool Sheet */
.mobile-bottom-tool-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem 2rem; /* Extra padding for safe area */
  z-index: 1000;
}
.mobile-bottom-tool-sheet .sheet-handle-bar {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 10px;
  margin: 0 auto 1.5rem;
}
.mobile-bottom-tool-sheet .tool-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mobile-bottom-tool-sheet .tool-row .tool-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.mobile-bottom-tool-sheet .tool-row .tool-btn i {
  font-size: 1.25rem;
  color: #374151;
  transition: color 0.2s;
}
.mobile-bottom-tool-sheet .tool-row .tool-btn:hover, .mobile-bottom-tool-sheet .tool-row .tool-btn:active {
  color: #111;
}
.mobile-bottom-tool-sheet .tool-row .tool-btn:hover i, .mobile-bottom-tool-sheet .tool-row .tool-btn:active i {
  color: var(--Primary-Main, #d97706);
}

/* =========================================
   CUSTOM COMPONENT: HOVER TOOLTIP
   ========================================= */
.tooltip-wrapper {
  position: relative; /* Anchor for absolute positioning */
  display: inline-block;
  /* --- The Tooltip Box (Hidden by Default) --- */
}
.tooltip-wrapper .custom-tooltip-content {
  position: absolute;
  top: 100%; /* Position right below the element */
  left: 0%;
  transform: translateX(0%) translateY(10px); /* Center horiz + offset down */
  width: 13.75rem; /* Fixed width for readability */
  padding: 1rem;
  background-color: var(--neutral-white-1);
  color: var(--text-secondary, #555);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal; /* Ensure text wraps */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Soft floaty shadow */
  border: none;
  z-index: 100;
  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none; /* Prevents accidental blocking when hidden */
  /* --- The Arrow (Triangle) --- */
}
.tooltip-wrapper .custom-tooltip-content::before {
  content: "";
  position: absolute;
  top: -6px; /* Move up to sit on border */
  left: 1.875rem;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--neutral-white-1, #fff); /* Matches bg */
  filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.05)); /* Subtle shadow for arrow */
}
.tooltip-wrapper {
  /* --- Hover Action --- */
}
.tooltip-wrapper:hover .custom-tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(0%) translateY(15px); /* Slide down into place */
  pointer-events: auto;
}

/* Responsive adjustment for mobile */
@media (max-width: 576px) {
  .tooltip-wrapper .custom-tooltip-content {
    width: 220px;
    left: 0;
    transform: translateX(0) translateY(10px);
  }
  .tooltip-wrapper .custom-tooltip-content::before {
    left: 20px; /* Align arrow left if box is aligned left */
    transform: none;
  }
  .tooltip-wrapper:hover .custom-tooltip-content {
    transform: translateX(0) translateY(15px);
  }
}
.ipad_hover {
  display: none;
  align-items: flex-end;
}
.ipad_hover .action-btn.mobile-view {
  display: flex;
  gap: 0.625rem;
}
.ipad_hover .action-btn.mobile-view i {
  transform: rotate(90deg);
}
.ipad_hover .hover-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  display: none;
  background-color: var(--bg-body);
  border-radius: 15px;
}
.ipad_hover .hover-content .sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ipad_hover .hover-content .sheet-actions .sheet-action-btn {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  color: var(--neutral-black-3);
  transition: opacity 0.2s;
}
.ipad_hover .hover-content .sheet-actions .sheet-action-btn:hover {
  opacity: 0.7;
}
.ipad_hover .hover-content .sheet-actions .sheet-action-btn .icon {
  width: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
}
.ipad_hover .hover-content .sheet-actions .sheet-action-btn .label {
  font-weight: 400;
}
.ipad_hover .hover-content .sheet-actions .sheet-action-btn.delete .icon {
  color: var(--text-secondary);
}
.ipad_hover:hover .hover-content {
  display: flex;
}

@media (min-width: 767px) and (max-width: 1299px) {
  .project-header-right .btn-badge-info .btn-text,
  .project-header-right .btn-pill-grey .btn-text {
    display: none;
  }
  .project-header-right .custom-select-all .text {
    display: none;
  }
}
.modal.onbaording .form-side .form-wrapper {
  max-width: 100%;
}

/* Success Toast Popup */
.custom-toast-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px); /* Start hidden above */
  background: var(--bg-body);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy effect */
  pointer-events: none;
}
.custom-toast-popup .toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}
.custom-toast-popup .toast-content i {
  font-size: 1.2rem;
  color: #22c55e; /* Green color */
}
.custom-toast-popup {
  /* Active State (Visible) */
}
.custom-toast-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Smooth transition for grid items resizing */
#galleryGrid > div {
  transition: flex 0.3s ease, max-width 0.3s ease;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  position: relative;
  min-width: 260px;
  width: -moz-max-content;
  width: max-content;
  background: var(--bg-body);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

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

.toast-content {
  font-size: 1rem;
}
.toast-content span {
  display: inline-block;
  margin-left: 6px;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #4ade80; /* green */
  transition: width 3s linear;
  z-index: 2;
}

.global-main-header {
  width: 100%;
}

.editor-layout .editor-panel .editor-tab-pane {
  background-color: var(--bg-surface);
}

.image-stage-wrapper {
  height: calc(100vh - 110px);
}

.editor-layout .editor-panel {
  height: calc(100vh - 115px);
}

.bar-move {
  padding-right: 90px;
  width: 100% !important;
}/*# sourceMappingURL=style.css.map */