/*! 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: 4.5rem;
  /* 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: #fff2e3;
  --neutral-white-9: #e2e2e2;
  --neutral-white-7: #f1f1f1;
  --border-gray-bottom: #e9e9e9;
}

/* 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-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: #2a1a08;
  --neutral-white-9: #626262;
  --check-border: #d5790f;
  --neutral-white-7: #454545;
  --border-gray-bottom: #525252;
}

/* =========================================
   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(--neutral-white-9); /* Light grey track */
  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 */
  /* Hover State */
}
.noUi-horizontal .noUi-handle::before, .noUi-horizontal .noUi-handle::after {
  display: none;
}
.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: 1000;
  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;
  /* Your custom nested structure */
}
.sidebar.showMenu {
  left: 0%;
}
.sidebar .logo {
  width: 2.5rem;
}
.sidebar .logo img {
  width: 100%;
}
.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: var(--neutral-white-4, #f7f7f7);
  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;
}

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

/* 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);
}

/* =========================================
   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 --- */
  /* --- Right Side Text Details --- */
  /* Name Row (Flex to keep badge next to name) */
  /* "Free" Badge */
  /* --- Option A: Login Link (Orange) --- */
  /* --- Option B: User Email (Gray) --- */
}
.mobile-user-profile .m-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px; /* Squircle shape like image, or 50% for circle */
  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) */
  /* State: Logged In (Blue Background) */
}
.mobile-user-profile .m-avatar.guest {
  background-color: #000;
}
.mobile-user-profile .m-avatar.blue {
  background-color: #006080; /* Dark Teal/Blue */
}
.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 .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 .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 .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 .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;
}

/* 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;
  /* Dark mode override */
}
.popover-avatar.blue {
  background-color: var(--Avatar-Blue); /* Uses variable now */
  color: #fff;
}
[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 {
  width: 100%;
  padding: 0.6rem 0;
  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);
}

/* 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;
  /* Dark mode override */
}
.credits-label span.icon-20 img {
  width: 100%;
}
[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;
  /* Hover State */
  /* Specific Logout Style (Red) */
}
.menu-item span.icon-20 {
  width: 1.25rem;
  height: 1.25rem;
  aspect-ratio: 1/1;
  /* Dark mode override */
}
.menu-item span.icon-20 img {
  width: 100%;
}
[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 {
  background-color: var(--bg-surface-secondary);
  color: var(--text-main);
}
.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) */
  /* Outline Button */
  /* White Button (Used in Tabs) */
  /* Outline Button */
}
.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-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 {
  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-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;
}
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;
}

/* =========================================
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;
  /* Checked State (Dark Mode Active) */
  /* Optional: Rotate icon when sliding */
}
.theme-switch-wrapper .theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
  /* The Background Track */
}
.theme-switch-wrapper .theme-switch input {
  display: none; /* Hide default checkbox */
}
.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 */
  /* The Sliding Knob (Circle) */
}
[data-theme=dark] .theme-switch-wrapper .theme-switch .slider {
  background-color: #333;
  border-color: #444;
}
.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 input:checked + .slider .slider-knob {
  transform: translateX(26px); /* Slide to the right */
}
.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);
  /* Checked State (Dark Mode Active) */
}
.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 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.625rem 0.75rem;
}
.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;
}
.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 */
}
[data-theme=dark] .btn-badge-info span.icon-img img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7491%) hue-rotate(67deg) brightness(107%) contrast(103%);
}

/* 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;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Spacing between icon and text */
  cursor: pointer;
  transition: background 0.2s;
}
.btn-pill-grey:hover {
  background-color: #e0e0e0;
}
.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-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;
}
.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;
  /* Checkmark */
}
.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 .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%;
  /* Absolute Icons */
}
.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 .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: var(--shades-primary-2, #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%);
}
.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;
}

.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);
  /* New: Drag Over State */
}
.uploading-file .group-upload {
  display: flex;
  gap: 3.75rem;
}
.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 {
  background-color: #0078d4;
} /* Dropbox Blue */
.icon-box.teal {
  background-color: #0084ff;
} /* Folder Blue */
.cursor-pointer p {
  margin: 0;
}

.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);
  -webkit-backdrop-filter: blur(3.4000000954px);
          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;
  /* Background image is already handled in previous SCSS */
  /* Dark Overlay */
  /* Pagination Customization (White Dots) */
}
.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 .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 .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 */
  /* The Toggle Button (Eye Icon) */
}
.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 .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 */
  /* Icon Sizing */
}
.password-group .auto-toggle:hover {
  color: var(--Primary-Main); /* Turns orange on hover */
}
.password-group .auto-toggle:focus {
  outline: none;
}
.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;
}
.btn-login:hover {
  background-color: var(--Primary-Hover);
}

.form-actions {
  text-align: right;
  margin-bottom: 1.5rem;
}
.form-actions .forgot-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.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;
  background-color: var(--neutral-white-4);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50px;
  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;
}

.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;
  height: 200px; /* Adjust height as needed */
  overflow: hidden;
  /* Zoom image slightly on hover */
}
.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:hover .project-img {
  transform: scale(1.05);
}

/* 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;
  /* Specific style for delete button */
}
.action-btn:hover {
  background-color: var(--bg-surface-secondary);
  color: var(--Primary-Main);
}
.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;
}

.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: 1100 !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;
  /* Hide default text */
  /* FontAwesome Icons handled in JS, styling here */
}
.ui-datepicker-prev span,
.ui-datepicker-next span {
  display: none;
}
.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;
  /* Today's Date */
  /* Selected Date */
}
.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.ui-datepicker-today a {
  background-color: var(--bg-surface-secondary) !important;
  font-weight: 700;
}
.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 */
.editor-layout {
  display: flex;
  align-items: flex-start;
  gap: 1rem; /* Replaces gap-3 */
  position: relative;
  padding-right: 5rem;
  width: 100%;
}

/* --- Main Panel Container --- */
.editor-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: 100%; /* Fixed width */
  height: 46.875rem; /* Fixed height */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tab Panes */
.editor-tab-pane {
  display: none;
  flex-direction: column;
  height: 100%;
}
.editor-tab-pane.active {
  display: flex;
}

/* Header */
.panel-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.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);
  background: var(--bg-surface);
  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: var(--border-color-gray-dark);
  transition: 0.4s;
  border-radius: 24px;
}
.toggle-switch .slider-dots:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.toggle-switch input:checked + .slider-dots {
  background-color: var(--shades-primary-2);
}
.toggle-switch input:checked + .slider-dots:before {
  transform: translateX(20px);
  background-color: var(--Primary-Main);
}

/* --- 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: absolute;
  right: -24px;
  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: #fff;
  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;
}
.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 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
  aspect-ratio: 4/3; /* Enforces the rectangular shape */
  /* --- Hover State Triggers --- */
}
.gallery-card:has(.boosted-overlay) .card-img {
  opacity: 1 !important;
}
.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;
  /* Selected State */
}
.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 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: 60px; /* Positioned below the checkbox */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 8px 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: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 15px 15px;
  background: rgba(23, 23, 23, 0.2);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.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 .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: #fff;
}

.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;
  /* Larger Close Button */
}
.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 .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-1);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  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);
}
.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;
  /* Orange Variant */
  /* Outline Variant */
}
[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 {
  background-color: #d5790f;
  color: #fff;
}
.btn-sb-action.orange:hover {
  background-color: var(--Primary-Hover);
}
.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 Arrow */
}
.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 .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
   ========================================= */
/* --- 1. Overlay Backdrop --- */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 2100; /* High z-index to sit on top of everything */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  /* Visible State (toggled via JS) */
  /* --- 2. Modal Content Box --- */
  /* --- 3. Header Section --- */
  /* --- 4. Body Section & Inputs --- */
  /* --- 5. Custom Dropdown (Tag Select) --- */
  /* --- 6. Blue Comment Block (The "Added" State) --- */
  /* --- 7. Buttons & Links --- */
  /* "Add New" Link */
  /* --- 8. Confirmation Text --- */
}
.custom-modal-overlay .btn-global {
  padding: 0.75rem 1rem;
}
.custom-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  /* Trigger child animation */
}
.custom-modal-overlay.show .custom-modal-content {
  transform: scale(1);
  opacity: 1;
}
.custom-modal-overlay .custom-modal-content {
  background: var(--Primary-Surface);
  width: 23.4375rem;
  max-width: 90%; /* Responsive width */
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* Entry Animation Start */
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect */
}
.custom-modal-overlay .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-gray-bottom);
}
.custom-modal-overlay .modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
}
.custom-modal-overlay .modal-header .btn-close-modal {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  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);
}
.custom-modal-overlay .modal-header .btn-close-modal:hover {
  color: var(--text-main);
}
.custom-modal-overlay .modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.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);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none; /* Prevent manual resizing */
  height: 3.75rem;
  background-color: #fafafa;
  transition: border-color 0.2s;
}
.custom-modal-overlay .comment-textarea:focus {
  outline: none;
  border-color: var(--Primary-Main);
  background-color: #fff;
}
.custom-modal-overlay .comment-textarea::-moz-placeholder {
  color: #aaa;
}
.custom-modal-overlay .comment-textarea::placeholder {
  color: #aaa;
}
.custom-modal-overlay .custom-dropdown {
  position: relative;
  width: 100%;
}
.custom-modal-overlay .dropdown-btn {
  width: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--neutral-white-4);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background 0.2s;
  gap: 1rem;
  /* Visual state when an item is selected */
}
.custom-modal-overlay .dropdown-btn:hover {
  background: #f9f9f9;
}
.custom-modal-overlay .dropdown-btn i {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.custom-modal-overlay .dropdown-btn.selectedActive {
  color: #fff;
  background-color: #016a9b;
}
.custom-modal-overlay .dropdown-btn.selectedActive i {
  color: #fff;
}
.custom-modal-overlay .dropdown-menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none; /* Hidden by default */
  padding: 0.5rem 0;
  /* Show state toggled by JS */
  /* Scrollbar styling */
  /* Group Titles */
  /* Dropdown Items */
}
.custom-modal-overlay .dropdown-menu-list.show {
  display: block;
}
.custom-modal-overlay .dropdown-menu-list::-webkit-scrollbar {
  width: 4px;
}
.custom-modal-overlay .dropdown-menu-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}
.custom-modal-overlay .dropdown-menu-list .group-title {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.5rem;
  pointer-events: none;
}
.custom-modal-overlay .dropdown-menu-list .group-title:first-child {
  margin-top: 0;
}
.custom-modal-overlay .dropdown-menu-list .dropdown-item {
  padding: 0.5rem 1.75rem; /* Indented under titles */
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.1s;
}
.custom-modal-overlay .dropdown-menu-list .dropdown-item:hover {
  background: #f0f0f0;
  color: var(--text-main);
}
.custom-modal-overlay .blue-comment-block {
  background-color: #016a9b; /* Specific Teal color */
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 96, 100, 0.2);
}
.custom-modal-overlay .blue-comment-block:last-child {
  margin-bottom: 0;
}
.custom-modal-overlay .blue-comment-block .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.custom-modal-overlay .blue-comment-block .comment-header .btn-delete-comment {
  background: none;
  border: none;
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.custom-modal-overlay .blue-comment-block .comment-header .btn-delete-comment:hover {
  opacity: 1;
}
.custom-modal-overlay .blue-comment-block .comment-text {
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  margin: 0;
  line-height: normal;
  font-weight: 400;
  color: #fff;
}
.custom-modal-overlay .modal-footer {
  margin-top: 0.5rem;
}
.custom-modal-overlay .btn-main-action {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* State 1: Save (Orange) */
  /* State 2: Send (Green) */
}
.custom-modal-overlay .btn-main-action:active {
  transform: scale(0.98);
}
.custom-modal-overlay .btn-main-action.orange {
  background-color: var(--Primary-Main); /* Fallback: #E67E22 */
}
.custom-modal-overlay .btn-main-action.orange:hover {
  background-color: var(--Primary-Hover);
}
.custom-modal-overlay .btn-main-action.green {
  background-color: #2e7d32; /* Success Green */
}
.custom-modal-overlay .btn-main-action.green:hover {
  background-color: #1b5e20;
}
.custom-modal-overlay .btn-add-new-line {
  background: none;
  border: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  align-self: flex-start;
}
.custom-modal-overlay .btn-add-new-line i {
  font-size: 0.8rem;
}
.custom-modal-overlay .btn-add-new-line:hover {
  color: var(--Primary-Main);
  text-decoration: none;
}
.custom-modal-overlay .confirm-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* =========================================
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 {
  position: relative;
  background-color: #f5f5f5; /* Light grey backdrop */
  border-radius: 1rem;
  overflow: hidden;
  height: 43.75rem; /* Adjust based on viewport */
  /* --- NEW: Active 'Boosted' State --- */
}
.image-stage-wrapper .main-preview-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.image-stage-wrapper.overbg {
  /* Optional: Change background if needed, e.g., darker to make image pop */
  /* background-color: #e0e0e0; */
}
.image-stage-wrapper.overbg .main-preview-img {
  /* Simulates the 'Boosted' look (Brighter + More Contrast) */
  filter: brightness(1.15) contrast(1.1) saturate(1.1);
}

/* --- 3. Floating Bottom Bar --- */
.viewer-bottom-bar {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 0%);
  background: var(--neutral-white-1);
  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;
  transition: all 0.3s ease-in-out;
  visibility: visible;
  opacity: 1;
}
.viewer-bottom-bar.comparison-mode {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 100%);
}

.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;
  /* Orange Fill */
  /* Outline */
}
.btn-vb-action:hover {
  background: var(--bg-surface-secondary);
  color: var(--text-main);
}
.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 {
  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: #fff;
  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;
}

/* =========================================
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);
  /* Remove border from last row */
}
.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 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;
  /* Optional: Add expand icon on hover */
}
.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::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;
  /* Section Titles */
  /* --- Setting Card --- */
}
.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-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;
}
.settings-section .section-title .icon24 img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.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 {
  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);
}

/* =========================================
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(300px, 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-2, #171717);
  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: #111;
}

/* 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);
}

/* =========================================
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: 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: #fff8f1; /* 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: #111;
}

.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: #111;
  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;
}

/* --- 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;
  /* Large variant for modals */
}
.custom-input:focus {
  border-color: var(--Primary-Main); /* Orange */
}
.custom-input.disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  pointer-events: none;
}
.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;
  /* Small variant for sidebar */
}
.status-badge2.paid {
  background-color: #dcfce7; /* Light Green */
  color: #166534;
}
.status-badge2.upcoming {
  background-color: #fef3c7; /* Light Yellow */
  color: #92400e;
}
.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;
}

/* =========================================
   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: 998;
  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;
  /* Panel Header */
  /* Footer Button */
  /* Info Grid (2 Columns) */
  /* Breakdown Section */
}
.invoice-slide-panel.active {
  right: 0; /* Slide in */
}
.invoice-slide-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 0 0 1.25rem;
}
.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 .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 {
  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 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;
}

/* =========================================
   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: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-radius: 15px 0 0 0;
}
.item-nav-controls .nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  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);
  /* Disabled state (start/end of slide) */
}
.item-nav-controls .nav-btn:hover {
  background-color: var(--Primary-Main); /* Orange */
  color: #fff;
  transform: scale(1.05);
}
.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) --- */
  /* --- 2. The Sheet (Nested) --- */
  /* --- Active State (Nested Parent Modifier) --- */
}
.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 .folder-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 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 */
  /* --- Internal Elements (Nested inside Sheet) --- */
}
@media (min-width: 768px) {
  .folder-sheet-wrapper .folder-action-sheet {
    max-width: 500px;
    left: 50%;
    margin-left: -250px;
    bottom: -2rem;
    border-radius: 20px;
  }
}
.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 .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: #111;
  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: #111;
  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: #333;
}
.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: #333; /* Or #d72323 for red */
}
.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 */
}

/* =========================================
   ORDER INFO BOTTOM SHEET (Nested)
   ========================================= */
.order-info-sheet-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2100; /* Higher than folder-sheet (2000) */
  pointer-events: none;
  /* --- 1. Overlay --- */
  /* --- 2. The Sheet --- */
  /* --- Active State --- */
}
.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 .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 */
  /* --- Internal Elements --- */
}
@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 .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 {
  pointer-events: auto;
}
.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: 2200; /* Highest priority */
  pointer-events: none; /* Pass clicks when hidden */
  /* --- 1. Overlay --- */
  /* --- 2. The Sheet Card --- */
  /* --- Active State --- */
  /* --- INTERNAL STYLES --- */
  /* Header */
  /* Global Progress */
  /* Tabs */
  /* File List */
  /* Single File Item */
}
.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 .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 {
  pointer-events: auto;
}
.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 .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-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 .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 .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 .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;
  /* Conic Gradient Ring */
  /* Inner Mask */
}
.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::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::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-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;
}/*# sourceMappingURL=style.css.map */