/* ============================================================
   HPCCI - ຫໍການຄ້າ ແລະ ອຸດສາຫະກຳຫົວພັນລາວ
   Main Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao+Looped:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary:       #C0392B;
  --primary-dark:  #922B21;
  --primary-light: #E74C3C;
  --secondary:     #2C3E50;
  --accent:        #E74C3C;
  --bg:            #F4F6F8;
  --card:          #FFFFFF;
  --text:          #2C3E50;
  --text-muted:    #7F8C8D;
  --border:        #E0E0E0;
  --success:       #27AE60;
  --warning:       #F39C12;
  --danger:        #C0392B;
  --info:          #2980B9;

  --sidebar-width: 260px;
  --navbar-height: 64px;
  --bottom-nav-height: 64px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow:    0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;

  --transition: all .22s ease;
}

/* ============================================================
   Base / Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Lao Looped', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans Lao Looped', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   Navbar
   ============================================================ */
.lncci-navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.navbar-brand-lncci {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.navbar-brand-lncci .brand-text {
  line-height: 1.2;
}

.navbar-brand-lncci .brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.navbar-brand-lncci .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.navbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: var(--text);
  font-size: 18px;
}

.navbar-icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  padding: 0 3px;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.user-avatar-btn:hover { background: var(--bg); }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-info .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1.2;
}

.user-info .user-role {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* ============================================================
   Sidebar
   ============================================================ */
.lncci-sidebar {
  width: var(--sidebar-width);
  background: var(--card);
  border-right: 1px solid var(--border);
  height: calc(100vh - var(--navbar-height));
  position: fixed;
  left: 0;
  top: var(--navbar-height);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1020;
  transition: transform .3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sidebar-org {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.sidebar-org-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-org-level {
  font-size: 11px;
  opacity: .8;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: .75rem 0;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: .75rem 1.25rem .25rem;
  display: block;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.25rem;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.sidebar-link i {
  font-size: 17px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-link:hover {
  background: rgba(192, 57, 43, .07);
  color: var(--primary);
}

.sidebar-link:hover i { color: var(--primary); }

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(192,57,43,.12) 0%, rgba(192,57,43,.04) 100%);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link.active i { color: var(--primary); }

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Main Content
   ============================================================ */
.lncci-main {
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height));
  padding: 1.5rem;
  transition: margin-left .3s ease;
}

.lncci-main.sidebar-hidden { margin-left: 0; }

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.page-breadcrumb .breadcrumb {
  font-size: 12px;
  margin-bottom: 0;
}

.page-breadcrumb .breadcrumb-item a { color: var(--primary); }
.page-breadcrumb .breadcrumb-item.active { color: var(--text-muted); }

/* ============================================================
   Cards
   ============================================================ */
.lncci-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.lncci-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.lncci-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lncci-card .card-header .card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.lncci-card .card-body { padding: 1.25rem; }

/* ============================================================
   Stat Cards (Dashboard)
   ============================================================ */
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
}

.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-card.stat-success::before { background: var(--success); }
.stat-card.stat-warning::before { background: var(--warning); }
.stat-card.stat-info::before    { background: var(--info); }
.stat-card.stat-danger::before  { background: var(--danger); }

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.stat-icon.bg-primary-soft { background: rgba(192,57,43,.1); color: var(--primary); }
.stat-icon.bg-success-soft { background: rgba(39,174,96,.1);  color: var(--success); }
.stat-icon.bg-warning-soft { background: rgba(243,156,18,.1); color: var(--warning); }
.stat-icon.bg-info-soft    { background: rgba(41,128,185,.1); color: var(--info); }
.stat-icon.bg-danger-soft  { background: rgba(192,57,43,.1); color: var(--danger); }

.stat-content { flex: 1; min-width: 0; }

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-trend {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: 'Noto Sans Lao Looped', 'Inter', sans-serif;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 13.5px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-danger  { background: var(--danger);  border-color: var(--danger);  color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-info    { background: var(--info);    border-color: var(--info);    color: #fff; }

.btn-sm  { font-size: 12px; padding: .3rem .75rem; }
.btn-lg  { font-size: 15px; padding: .65rem 1.5rem; }
.btn-xl  { font-size: 16px; padding: .85rem 2rem; border-radius: var(--radius); }

.btn-icon {
  width: 34px; height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Tables
   ============================================================ */
.lncci-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.lncci-table thead th {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: .75rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.lncci-table thead th:hover { color: var(--primary); }
.lncci-table thead th .sort-icon { margin-left: 4px; opacity: .5; }
.lncci-table thead th.sorted .sort-icon { opacity: 1; color: var(--primary); }

.lncci-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.lncci-table tbody tr:hover { background: rgba(192,57,43,.03); }
.lncci-table tbody tr:last-child { border-bottom: none; }

.lncci-table tbody td {
  padding: .75rem 1rem;
  font-size: 13.5px;
  vertical-align: middle;
}

.table-warning-row { background: rgba(243,156,18,.06); }
.table-danger-row  { background: rgba(192,57,43,.06); }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  font-family: 'Noto Sans Lao Looped', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: .3em .65em;
  border-radius: 5px;
}

.badge-pending  { background: rgba(243,156,18,.15); color: #b7770d; }
.badge-approved { background: rgba(39,174,96,.15);  color: #1a7a45; }
.badge-rejected { background: rgba(192,57,43,.15);  color: #922B21; }
.badge-expired  { background: rgba(127,140,141,.15); color: #5d6d7e; }
.badge-draft    { background: rgba(44,62,80,.12);   color: #2C3E50; }
.badge-active   { background: rgba(39,174,96,.15);  color: #1a7a45; }
.badge-suspended{ background: rgba(243,156,18,.15); color: #b7770d; }

/* ============================================================
   Forms
   ============================================================ */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.form-control, .form-select {
  font-family: 'Noto Sans Lao Looped', 'Inter', sans-serif;
  font-size: 13.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
  outline: none;
}

.form-control::placeholder { color: #b5bdc8; }

.input-group-text {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-muted);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus { box-shadow: 0 0 0 3px rgba(192,57,43,.12); }

.invalid-feedback { font-size: 12px; }

/* ============================================================
   Status Badges
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .3em .7em;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-pending  { background: rgba(243,156,18,.15); color: #d68910; }
.status-pending::before  { background: #F39C12; }
.status-approved { background: rgba(39,174,96,.15);  color: #1e8449; }
.status-approved::before { background: #27AE60; }
.status-rejected { background: rgba(192,57,43,.15);  color: #922B21; }
.status-rejected::before { background: #C0392B; }
.status-expired  { background: rgba(127,140,141,.15); color: #616a6b; }
.status-expired::before  { background: #7F8C8D; }
.status-active   { background: rgba(39,174,96,.15);  color: #1e8449; }
.status-active::before   { background: #27AE60; }
.status-draft    { background: rgba(44,62,80,.12);   color: #2C3E50; }
.status-draft::before    { background: #5D6D7E; }
.status-suspended{ background: rgba(243,156,18,.15); color: #d68910; }
.status-suspended::before{ background: #F39C12; }

/* ============================================================
   Avatar
   ============================================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-circle {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 96px; height: 96px; font-size: 32px; }

/* ============================================================
   Member Card
   ============================================================ */
.member-card-wrapper {
  perspective: 1000px;
  width: 400px;
  max-width: 100%;
  height: 240px;
  margin: 0 auto;
  cursor: pointer;
}

.member-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s ease;
  transform-style: preserve-3d;
}

.member-card-wrapper.flipped .member-card-inner {
  transform: rotateY(180deg);
}

.member-card-front,
.member-card-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  overflow: hidden;
}

.member-card-front {
  background: linear-gradient(135deg, #C0392B 0%, #7B241C 55%, #922B21 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(192,57,43,.5);
}

.member-card-back {
  background: linear-gradient(135deg, #922B21 0%, #C0392B 100%);
  transform: rotateY(180deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(192,57,43,.5);
}

/* Holographic shimmer */
.member-card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,.08) 45%,
    rgba(255,255,255,.15) 50%,
    rgba(255,255,255,.08) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: holographic 3s linear infinite;
  pointer-events: none;
}

@keyframes holographic {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* watermark circles */
.member-card-front::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,.06);
  pointer-events: none;
}

.card-header-lncci {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-org-name {
  font-size: 9px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 150px;
  line-height: 1.3;
}

.card-company {
  margin-top: .75rem;
}

.card-company-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
}

.card-rep-name {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.card-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: 3px;
  font-family: 'Inter', monospace;
}

.card-type-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: .25em .7em;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
}

.card-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.card-validity label {
  font-size: 8px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.card-validity span {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}

.card-qr-small {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-qr-small img { width: 100%; height: 100%; }

/* Card back */
.card-back-stripe {
  background: #000;
  height: 36px;
  margin: 0 -1.5rem;
}

.card-back-info {
  font-size: 11px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

.card-back-terms {
  font-size: 9px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* ============================================================
   QR Code Container
   ============================================================ */
.qr-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.qr-code-wrap {
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: inline-block;
}

.qr-code-wrap img { display: block; }

.qr-timer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.qr-timer .timer-count {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.success::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-item.warning::before { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }
.timeline-item.info::before    { background: var(--info);    box-shadow: 0 0 0 2px var(--info); }

.timeline-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.timeline-text {
  font-size: 13px;
  color: var(--text);
}

/* ============================================================
   File Upload Dropzone
   ============================================================ */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(192,57,43,.03);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-icon {
  font-size: 36px;
  color: var(--border);
  margin-bottom: .75rem;
  display: block;
  transition: var(--transition);
}

.dropzone:hover .dropzone-icon { color: var(--primary); }
.dropzone-text { font-size: 13px; color: var(--text-muted); }
.dropzone-hint { font-size: 11px; color: var(--text-muted); margin-top: .25rem; }

.file-preview-list { margin-top: 1rem; }

.file-preview-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  border: 1px solid var(--border);
}

.file-preview-item .file-icon {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.file-preview-item .file-info { flex: 1; min-width: 0; }
.file-preview-item .file-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview-item .file-size { font-size: 11px; color: var(--text-muted); }
.file-preview-item .file-remove { color: var(--danger); cursor: pointer; font-size: 16px; }

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}

.lncci-toast {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: toastIn .3s ease forwards;
}

.lncci-toast.hiding { animation: toastOut .3s ease forwards; }

.lncci-toast.success { border-left-color: var(--success); }
.lncci-toast.error   { border-left-color: var(--danger); }
.lncci-toast.warning { border-left-color: var(--warning); }
.lncci-toast.info    { border-left-color: var(--info); }

.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.lncci-toast.success .toast-icon { color: var(--success); }
.lncci-toast.error   .toast-icon { color: var(--danger); }
.lncci-toast.warning .toast-icon { color: var(--warning); }
.lncci-toast.info    .toast-icon { color: var(--info); }
.lncci-toast         .toast-icon { color: var(--primary); }

.toast-body { flex: 1; }
.toast-title  { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.toast-text   { font-size: 12.5px; color: var(--text-muted); }
.toast-close  { font-size: 16px; color: var(--text-muted); cursor: pointer; margin-left: auto; flex-shrink: 0; }
.toast-close:hover { color: var(--text); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ============================================================
   Loading Spinner Overlay
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  gap: 1rem;
}

.loading-overlay .spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay .loading-text {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================================
   Bottom Navigation (Mobile)
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height);
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 1025;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}

.bottom-nav-items {
  display: flex;
  height: 100%;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.bottom-nav-item i {
  font-size: 20px;
  transition: var(--transition);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active i { color: var(--primary); }

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

.bottom-nav-item .nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  padding: 0 3px;
}

/* ============================================================
   Mobile Top Bar
   ============================================================ */
.mobile-topbar {
  display: none;
  background: var(--primary);
  color: #fff;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1030;
  align-items: center;
  padding: 0 1rem;
  gap: .75rem;
}

.mobile-topbar .back-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-topbar .back-btn:hover { background: rgba(255,255,255,.25); }

.mobile-topbar .page-title-mobile {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.mobile-topbar .topbar-actions {
  display: flex;
  gap: .5rem;
}

.mobile-topbar .topbar-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  position: relative;
}

/* ============================================================
   Mobile Layout
   ============================================================ */
.mobile-layout {
  background: var(--bg);
  padding-bottom: var(--bottom-nav-height);
}

.mobile-layout .bottom-nav { display: block; }
.mobile-layout .mobile-topbar { display: flex; }
.mobile-content { padding: 1rem; }

/* ============================================================
   Auth Layout
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #F4F6F8 0%, #e8ecf0 100%);
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem 1rem;
  text-align: center;
  color: #fff;
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  border: 3px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}

.auth-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}

.auth-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.auth-card-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

.auth-card .card-body { padding: 2rem; }

.auth-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   Pagination
   ============================================================ */
.lncci-pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  font-size: 13px;
  padding: .4rem .75rem;
}

.lncci-pagination .page-link:hover {
  background: rgba(192,57,43,.07);
  border-color: var(--primary);
  color: var(--primary);
}

.lncci-pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================================
   Tabs
   ============================================================ */
.lncci-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: .65rem 1rem;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
}

.lncci-tabs .nav-link:hover { color: var(--primary); }

.lncci-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: none;
  font-weight: 600;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.progress { border-radius: 20px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-item.done:not(:last-child)::after,
.step-item.active:not(:last-child)::after {
  background: var(--primary);
}

.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  z-index: 1;
  transition: var(--transition);
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(192,57,43,.35);
}

.step-item.done .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
}

.step-item.active .step-label { color: var(--primary); font-weight: 600; }
.step-item.done .step-label   { color: var(--success); }

/* ============================================================
   Filter / Search Bar
   ============================================================ */
.filter-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}

.filter-bar .form-control,
.filter-bar .form-select {
  font-size: 13px;
}

/* ============================================================
   Dashboard Quick Actions
   ============================================================ */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.quick-action-btn:hover {
  border-color: var(--primary);
  background: rgba(192,57,43,.04);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-action-btn i {
  font-size: 28px;
  color: var(--primary);
}

.quick-action-btn span {
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   Notification List
   ============================================================ */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.notif-item:hover { background: rgba(192,57,43,.03); }
.notif-item.unread { background: rgba(192,57,43,.05); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 60%;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.notif-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-content .notif-title { font-size: 13.5px; font-weight: 600; }
.notif-content .notif-text  { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.notif-content .notif-time  { font-size: 11px;   color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   Task List
   ============================================================ */
.task-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}

.task-item:last-child { border-bottom: none; }

.task-item.done .task-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-priority {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-priority.high   { background: var(--danger); }
.task-priority.medium { background: var(--warning); }
.task-priority.low    { background: var(--info); }

/* ============================================================
   Kanban Board
   ============================================================ */
.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.kanban-column {
  min-width: 280px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  flex-shrink: 0;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid;
}

.kanban-column-header .col-title { font-size: 13px; font-weight: 700; }
.kanban-column-header .col-count { font-size: 12px; color: var(--text-muted); }

.kanban-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .85rem;
  margin-bottom: .6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kanban-card .k-title { font-size: 13px; font-weight: 600; margin-bottom: .35rem; }
.kanban-card .k-meta  { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   Public Layout
   ============================================================ */
.public-navbar {
  background: var(--primary);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.public-navbar .brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
}

.public-navbar .brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.public-navbar-actions { margin-left: auto; display: flex; gap: .75rem; }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #5D1A15 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.hero-logo {
  width: 100px; height: 100px;
  border-radius: 24px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  border: 3px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Section */
.section { padding: 5rem 0; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 2.5rem; }

/* Service card */
.service-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}

.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(192,57,43,.1), rgba(192,57,43,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 32px;
  color: var(--primary);
}

/* Verify page */
.verify-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.verify-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
}

.verify-header-success { background: linear-gradient(135deg, #27AE60, #1e8449); padding: 2rem; text-align: center; color: #fff; }
.verify-header-error   { background: linear-gradient(135deg, var(--danger), var(--primary-dark)); padding: 2rem; text-align: center; color: #fff; }

.verify-check-icon {
  font-size: 56px;
  margin-bottom: .5rem;
  display: block;
}

/* ============================================================
   Sidebar Toggle Button
   ============================================================ */
.sidebar-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: .25rem;
  margin-right: .75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: none;
}

.sidebar-toggle:hover { background: var(--bg); }

/* ============================================================
   Overlay
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1019;
}

.sidebar-overlay.active { display: block; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13.5px;
  padding: .85rem 1.1rem;
}

.alert-success { background: rgba(39,174,96,.12);  color: #1a7a45; }
.alert-danger  { background: rgba(192,57,43,.12);  color: #922B21; }
.alert-warning { background: rgba(243,156,18,.12); color: #b7770d; }
.alert-info    { background: rgba(41,128,185,.12); color: #1a6a9a; }

/* ============================================================
   Error Pages
   ============================================================ */
.error-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  opacity: .15;
  position: absolute;
}

.error-content { position: relative; }

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .lncci-sidebar, .lncci-navbar, .bottom-nav,
  .mobile-topbar, .btn, .no-print { display: none !important; }

  .lncci-main { margin-left: 0 !important; }

  .member-card-front {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-shadow: none;
    border: 2px solid #ccc;
  }

  body { background: #fff; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn  { animation: fadeIn  .4s ease; }
.animate-slideUp { animation: slideUp .4s ease; }

/* ============================================================
   Responsive — Mobile < 768px
   ============================================================ */
@media (max-width: 991.98px) {
  .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .lncci-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
  }

  .lncci-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .lncci-main {
    margin-left: 0;
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  .bottom-nav { display: block; }
  .lncci-main { padding-bottom: calc(var(--bottom-nav-height) + 1rem); }

  .hero-title  { font-size: 1.6rem; }
  .stat-card   { flex-direction: column; text-align: center; }
  .stat-number { font-size: 22px; }

  .member-card-wrapper { height: 220px; }
  .card-company-name   { font-size: 14px; }
  .card-number         { font-size: 13px; letter-spacing: 2px; }

  .filter-bar { flex-direction: column; }
  .filter-bar > * { width: 100%; }

  .user-info { display: none; }
}

@media (max-width: 575.98px) {
  .auth-card .card-body { padding: 1.5rem; }
  .quick-action-btn { min-width: 80px; padding: .75rem .5rem; }
  .kanban-board { flex-direction: column; }
  .kanban-column { min-width: unset; }
}
