/* ==========================================================================
   TWIN CAMPUS - Design System & Theme Engine
   Enterprise University Operating System CSS
   ========================================================================== */

:root, [data-theme="light"] {
  color-scheme: light;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-active: #1E40AF;
  --primary-light: #EFF6FF;
  --primary-focus: rgba(37, 99, 235, 0.25);
  
  --secondary: #101C3A;
  --secondary-light: #1E293B;

  --bg-main: #F5F7FC;
  --bg-body: var(--bg-main);
  --bg-card: #FFFFFF;
  --bg-surface: var(--bg-card);
  --bg-card-hover: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-topbar: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-modal: #FFFFFF;
  --bg-badge-neutral: #F1F5F9;

  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Aliases for template compatibility */
  --brand-primary: var(--primary);
  --border-color: var(--border-subtle);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --bg-hover: var(--bg-card-hover);

  --accent-success: #10B981;
  --accent-success-bg: #ECFDF5;
  --accent-warning: #F59E0B;
  --accent-warning-bg: #FFFBEB;
  --accent-danger: #EF4444;
  --accent-danger-bg: #FEF2F2;
  --accent-info: #06B6D4;
  --accent-info-bg: #ECFEFF;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(16, 28, 58, 0.07), 0 2px 4px -2px rgba(16, 28, 58, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(16, 28, 58, 0.08), 0 4px 6px -4px rgba(16, 28, 58, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(16, 28, 58, 0.1), 0 8px 10px -6px rgba(16, 28, 58, 0.05);
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-active: #93C5FD;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-focus: rgba(59, 130, 246, 0.35);

  --secondary: #0B1220;
  --secondary-light: #162036;

  --bg-main: #0B1220;
  --bg-body: var(--bg-main);
  --bg-card: #111A2E;
  --bg-surface: var(--bg-card);
  --bg-card-hover: #17233D;
  --bg-sidebar: #0E1626;
  --bg-topbar: #0E1626;
  --bg-input: #162036;
  --bg-modal: #111A2E;
  --bg-badge-neutral: #1E293B;

  --border-subtle: #1E2D4A;
  --border-strong: #2A3C60;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-inverse: #0B1220;

  /* Aliases for template compatibility */
  --brand-primary: var(--primary);
  --border-color: var(--border-subtle);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --bg-hover: var(--bg-card-hover);

  --accent-success: #34D399;
  --accent-success-bg: rgba(52, 211, 153, 0.12);
  --accent-warning: #FBBF24;
  --accent-warning-bg: rgba(251, 191, 36, 0.12);
  --accent-danger: #F87171;
  --accent-danger-bg: rgba(248, 113, 113, 0.12);
  --accent-info: #22D3EE;
  --accent-info-bg: rgba(34, 211, 238, 0.12);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

/* ==========================================================================
   Custom Sleek Scrollbar Engine (Ultra-Thin & Gradient)
   ========================================================================== */
/* Webkit browsers (Chrome, Edge, Safari, Opera, Brave) */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background: transparent !important;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563EB 0%, #10B981 100%);
  border-radius: 9999px;
  transition: background 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1D4ED8 0%, #059669 100%);
}

::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, #2563EB 0%, #10B981 100%);
}

::-webkit-scrollbar-corner {
  background: transparent !important;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Dark theme gradient for scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3B82F6 0%, #10B981 100%);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60A5FA 0%, #34D399 100%);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
}

/* Firefox standard properties */
* {
  scrollbar-width: thin;
  scrollbar-color: #2563EB transparent;
}

[data-theme="dark"] * {
  scrollbar-color: #3B82F6 transparent;
}

/* Force thin gradient scrollbar on specific key elements */
.tc-nav-menu,
.tc-sidebar,
.tc-content-container,
.tc-table-responsive,
.overflow-y-auto,
.overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: #2563EB transparent;
}

[data-theme="dark"] .tc-nav-menu,
[data-theme="dark"] .tc-sidebar,
[data-theme="dark"] .tc-content-container,
[data-theme="dark"] .tc-table-responsive,
[data-theme="dark"] .overflow-y-auto,
[data-theme="dark"] .overflow-x-auto {
  scrollbar-color: #3B82F6 transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

/* Layout Core */
.tc-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.tc-sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
}

.tc-sidebar.collapsed {
  width: 80px;
}

.tc-sidebar.collapsed .tc-sidebar-text,
.tc-sidebar.collapsed .tc-sidebar-badge,
.tc-sidebar.collapsed .tc-nav-section-title {
  display: none;
}

.tc-sidebar.collapsed .tc-nav-link {
  justify-content: center;
  padding: 0.75rem 0.5rem;
}

.tc-main-wrapper {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-sidebar.collapsed ~ .tc-main-wrapper {
  margin-left: 80px;
}

/* Top Navigation */
.tc-topbar {
  height: 68px;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  backdrop-filter: blur(8px);
}

.tc-content-container {
  padding: 1.75rem 2rem;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Sidebar Brand */
.tc-brand {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tc-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.tc-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.tc-brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar Navigation */
.tc-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tc-nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  padding: 0.75rem 0.75rem 0.25rem;
}

.tc-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.85rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.tc-nav-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.tc-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.tc-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.tc-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tc-sidebar-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Cards */
.tc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
}

.tc-card:hover {
  box-shadow: var(--shadow-md);
}

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

.tc-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tc-card-body {
  padding: 1.5rem;
}

.tc-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card-hover);
}

/* Stat Cards */
.tc-stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.tc-stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.tc-stat-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}

/* Buttons */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.tc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tc-btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}
.tc-btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tc-btn-secondary {
  background: var(--secondary);
  color: #FFFFFF;
}
.tc-btn-secondary:hover:not(:disabled) {
  background: var(--secondary-light);
  color: #FFFFFF;
}

.tc-btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-main);
}
.tc-btn-outline:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.tc-btn-danger {
  background: var(--accent-danger);
  color: #FFFFFF;
}
.tc-btn-danger:hover:not(:disabled) {
  background: #DC2626;
  color: #FFFFFF;
}

.tc-btn-success {
  background: var(--accent-success);
  color: #FFFFFF;
}
.tc-btn-success:hover:not(:disabled) {
  background: #059669;
  color: #FFFFFF;
}

.tc-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Tables */
.tc-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.tc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.tc-table th {
  background: var(--bg-card-hover);
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.tc-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.tc-table tr:last-child td {
  border-bottom: none;
}

.tc-table tbody tr:hover td {
  background: var(--bg-card-hover);
}

/* Badges */
.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.tc-badge-success {
  background: var(--accent-success-bg);
  color: var(--accent-success);
}

.tc-badge-warning {
  background: var(--accent-warning-bg);
  color: var(--accent-warning);
}

.tc-badge-danger {
  background: var(--accent-danger-bg);
  color: var(--accent-danger);
}

.tc-badge-info {
  background: var(--accent-info-bg);
  color: var(--accent-info);
}

.tc-badge-neutral, .tc-badge-muted {
  background: var(--bg-badge-neutral);
  color: var(--text-muted);
}

.tc-badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

/* Theme Switcher Pill Control */
.tc-theme-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.tc-theme-btn {
  background: transparent;
  border: none;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tc-theme-btn:hover {
  color: var(--text-main);
}

.tc-theme-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.32);
}

/* Forms */
.tc-form-group {
  margin-bottom: 1.25rem;
}

.tc-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.tc-label .required {
  color: var(--accent-danger);
}

.tc-input, .tc-select, .tc-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.95rem;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.15s ease;
}

.tc-input:focus, .tc-select:focus, .tc-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.tc-select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.tc-input::placeholder, .tc-textarea::placeholder {
  color: var(--text-subtle);
}

.tc-textarea {
  resize: vertical;
  min-height: 100px;
}

.tc-help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Modals */
.tc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tc-modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.tc-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.tc-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Digital ID Card Presentation */
.tc-id-card-wrapper {
  max-width: 480px;
  margin: 1.5rem auto;
  perspective: 1000px;
}

.tc-id-card {
  width: 100%;
  background: linear-gradient(145deg, #101C3A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 20px 30px -10px rgba(16, 28, 58, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.tc-id-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.tc-id-card-student {
  border-top: 5px solid #2563EB;
}

.tc-id-card-faculty {
  border-top: 5px solid #0D9488;
}

.tc-id-card-staff {
  border-top: 5px solid #D97706;
}

.tc-id-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.tc-id-card-content {
  display: flex;
  gap: 1.25rem;
}

.tc-id-photo {
  width: 105px;
  height: 125px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: #0B1220;
}

.tc-id-details {
  flex: 1;
}

.tc-id-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.tc-id-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #60A5FA;
  margin-top: 0.2rem;
}

.tc-id-qr-box {
  margin-top: 1rem;
  background: #FFFFFF;
  padding: 0.5rem;
  border-radius: 8px;
  display: inline-flex;
}

/* ========================================================
   TWIN CAMPUS PORTRAIT PROFESSIONAL ID CARD (FRONT & BACK)
   ======================================================== */
.tc-portrait-card-container,
.tc-idcard-perspective {
  width: 350px;
  max-width: 100%;
  height: 560px;
  perspective: 1200px;
  margin: 1.5rem auto;
  user-select: none;
}

.tc-portrait-card-inner,
.tc-idcard-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 18px;
}

.tc-portrait-card-inner.is-flipped,
.tc-idcard-wrapper.flipped {
  transform: rotateY(180deg);
}

.tc-portrait-side,
.tc-idcard-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(16, 28, 58, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* FRONT SIDE */
.tc-portrait-front,
.tc-idcard-face-front {
  background: #FFFFFF;
  color: #0F172A;
  z-index: 2;
  position: relative;
}

/* BACK SIDE */
.tc-portrait-back,
.tc-idcard-face-back {
  background: #0E1626;
  color: #F8FAFC;
  z-index: 1;
  position: relative;
  transform: rotateY(180deg);
}

/* Corner Geometric Modern Angular Shapes */
.tc-geom-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 130px;
  pointer-events: none;
  z-index: 1;
}

.tc-geom-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}

.tc-card-front-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* University Header */
.tc-card-uni-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}

.tc-card-uni-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #101C3A 0%, #2563EB 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  border: 2px solid #E0E7FF;
  flex-shrink: 0;
}

.tc-card-uni-titles {
  line-height: 1.15;
}

.tc-card-uni-name-main {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #101C3A;
  text-transform: uppercase;
}

.tc-card-uni-name-sub {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tc-card-uni-motto {
  font-size: 0.6rem;
  color: #059669;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

/* Photo Section */
.tc-card-photo-wrapper {
  margin: 0.85rem auto 0;
  text-align: center;
}

.tc-card-avatar {
  width: 115px;
  height: 135px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15), 0 0 0 1px #E2E8F0;
  background: #F1F5F9;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #2563EB;
}

/* Identity Name & Blood Group */
.tc-card-holder-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
  letter-spacing: -0.3px;
  margin-top: 0.6rem;
  line-height: 1.2;
}

.tc-card-blood-badge {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #DC2626;
  margin: 0.2rem 0 0.6rem;
}

/* Aligned Key-Value Table */
.tc-card-info-table {
  width: 100%;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #1E293B;
  border-collapse: collapse;
}

.tc-card-info-table td {
  padding: 2px 0;
  vertical-align: top;
}

.tc-card-info-label {
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  width: 44%;
}

.tc-card-info-colon {
  width: 4%;
  font-weight: 700;
  text-align: center;
  color: #64748B;
}

.tc-card-info-val {
  font-weight: 600;
  color: #0F172A;
  width: 52%;
}

.tc-card-info-val.val-code {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  color: #2563EB;
}

/* Front Footer: QR & Signature */
.tc-card-front-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #CBD5E1;
}

.tc-card-mini-qr {
  background: #FFFFFF;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  display: inline-flex;
}

.tc-card-sign-box {
  text-align: right;
  min-width: 140px;
}

.tc-card-sign-img {
  font-family: 'Brush Script MT', 'Great Vibes', 'Allura', cursive, sans-serif;
  font-size: 1.6rem;
  color: #0F172A;
  line-height: 1;
  transform: rotate(-3deg);
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.tc-card-sign-line {
  height: 1.5px;
  background: #1E293B;
  width: 100%;
  margin-bottom: 3px;
}

.tc-card-sign-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

/* BACK SIDE */
.tc-portrait-back {
  background: #0E1626;
  color: #F8FAFC;
  z-index: 1;
  position: relative;
  transform: rotateY(180deg);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tc-card-back-magstrip {
  width: 100%;
  height: 38px;
  background: linear-gradient(90deg, #020617 0%, #1E293B 50%, #020617 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.25rem;
}

.tc-card-back-content {
  padding: 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tc-card-back-title {
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #60A5FA;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

.tc-card-back-terms {
  font-size: 0.675rem;
  color: #94A3B8;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.tc-card-back-terms p {
  margin-bottom: 0.35rem;
}

.tc-card-back-contacts {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #CBD5E1;
  margin-bottom: 0.75rem;
}

.tc-card-back-contacts strong {
  color: #93C5FD;
}

.tc-card-back-qr-box {
  text-align: center;
  margin: 0.25rem auto 0.5rem;
}

.tc-card-back-barcode {
  text-align: center;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tc-card-barcode-lines {
  height: 24px;
  width: 80%;
  margin: 0 auto;
  background: repeating-linear-gradient(90deg, #FFFFFF, #FFFFFF 2px, transparent 2px, transparent 5px, #FFFFFF 5px, #FFFFFF 8px, transparent 8px, transparent 10px);
  opacity: 0.85;
}

.tc-card-barcode-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  color: #94A3B8;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* Alerts & Toasts */
.tc-alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.tc-alert-success {
  background: var(--accent-success-bg);
  border: 1px solid var(--accent-success);
  color: var(--accent-success);
}

.tc-alert-danger {
  background: var(--accent-danger-bg);
  border: 1px solid var(--accent-danger);
  color: var(--accent-danger);
}

.tc-alert-warning {
  background: var(--accent-warning-bg);
  border: 1px solid var(--accent-warning);
  color: var(--accent-warning);
}

.tc-alert-info {
  background: var(--accent-info-bg);
  border: 1px solid var(--accent-info);
  color: var(--accent-info);
}

/* 2D Digital Twin Interactive Campus Map Styles */
.tc-map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.tc-map-toolbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-hover);
}

.tc-map-svg {
  width: 100%;
  height: 520px;
  display: block;
  user-select: none;
}

.tc-map-building {
  cursor: pointer;
  transition: all 0.2s ease;
}

.tc-map-building:hover {
  filter: brightness(1.15) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  stroke: #FFFFFF !important;
  stroke-width: 3px !important;
}

.tc-map-building.selected {
  stroke: #FBBF24 !important;
  stroke-width: 4px !important;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

/* Responsive Grid helpers */
.tc-grid {
  display: grid;
  gap: 1.25rem;
}
.tc-grid > * {
  min-width: 0;
}
.tc-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tc-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tc-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ==========================================================================
   TWIN CAMPUS - Enterprise Components, Utilities & Responsive Engine
   ========================================================================== */

/* Alpine Cloak & Animations */
[x-cloak] {
  display: none !important;
}

/* Modals */
.fixed.inset-0 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(6px);
  padding: 1rem;
}

/* Stat Cards & KPI Containers */
.stat-card, .tc-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

/* Buttons (Universal aliases) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  line-height: 1.25;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-main) !important;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-danger {
  background: var(--accent-danger);
  color: #FFFFFF !important;
}
.btn-danger:hover {
  opacity: 0.9;
}

.btn-success {
  background: var(--accent-success);
  color: #FFFFFF !important;
}

/* Form inputs & labels */
.form-input, .tc-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.form-input:focus, .tc-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.form-label, .tc-label {
  display: block;
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

/* Data Tables & Table Containers */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
}

.table thead {
  background: var(--bg-card-hover);
  border-bottom: 1px solid var(--border-subtle);
}

.table th {
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
}

.badge-success {
  background: var(--accent-success-bg);
  color: var(--accent-success);
  border: 1px solid var(--accent-success);
}
.badge-danger {
  background: var(--accent-danger-bg);
  color: var(--accent-danger);
  border: 1px solid var(--accent-danger);
}
.badge-warning {
  background: var(--accent-warning-bg);
  color: var(--accent-warning);
  border: 1px solid var(--accent-warning);
}
.badge-info {
  background: var(--accent-info-bg);
  color: var(--accent-info);
  border: 1px solid var(--accent-info);
}
.badge-secondary {
  background: var(--bg-badge-neutral);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* Flex & Grid Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:w-auto { width: auto; }
  .md\:w-72 { width: 18rem; }
  .md\:block { display: block; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Spacing & Sizes */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--border-subtle); }
.border-2 { border: 2px solid var(--border-subtle); }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-b { border-bottom: 1px solid var(--border-subtle); }
.border-b-2 { border-bottom: 2px solid var(--border-subtle); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: 'JetBrains Mono', monospace, monospace; }

.text-2xs { font-size: 0.685rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Colors */
.text-primary { color: var(--text-main); }
.text-secondary { color: var(--text-muted); }
.text-muted { color: var(--text-subtle); }
.text-white { color: #FFFFFF !important; }
.text-blue-500 { color: #3B82F6 !important; }
.text-blue-600 { color: #2563EB !important; }
.text-emerald-500 { color: #10B981 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-amber-500 { color: #F59E0B !important; }
.text-amber-600 { color: #D97706 !important; }
.text-rose-500 { color: #EF4444 !important; }
.text-rose-600 { color: #DC2626 !important; }
.text-purple-500 { color: #A855F7 !important; }
.text-purple-600 { color: #9333EA !important; }

/* Backgrounds */
.bg-white { background-color: #FFFFFF !important; }
.bg-blue-600 { background-color: var(--primary) !important; color: #FFFFFF !important; }
.bg-blue-500 { background-color: #3B82F6 !important; color: #FFFFFF !important; }
.bg-emerald-500 { background-color: #10B981 !important; color: #FFFFFF !important; }
.bg-emerald-600 { background-color: #059669 !important; color: #FFFFFF !important; }
.bg-amber-500 { background-color: #F59E0B !important; color: #FFFFFF !important; }
.bg-rose-500 { background-color: #EF4444 !important; color: #FFFFFF !important; }
.bg-slate-800 { background-color: #1E293B !important; }
.bg-slate-900 { background-color: #0F172A !important; }
.bg-black\/50 { background-color: rgba(11, 18, 32, 0.7) !important; }
.bg-hover:hover, .hover\:bg-hover:hover { background-color: var(--bg-card-hover) !important; }
.hover\:underline:hover { text-decoration: underline !important; }

/* Display & Positioning */
.inline { display: inline !important; }
.block { display: block !important; }
.hidden { display: none !important; }
.w-fit { width: fit-content !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.max-h-\[90vh\] { max-height: 90vh !important; }
.cursor-pointer { cursor: pointer !important; }
.transition { transition: all 0.15s ease-in-out !important; }

/* Spacing Extensions */
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.p-0 { padding: 0 !important; }
.m-0 { margin: 0 !important; }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Opacity Utilities */
.opacity-40 { opacity: 0.4 !important; }
.opacity-60 { opacity: 0.6 !important; }
.opacity-80 { opacity: 0.8 !important; }

/* Mobile Backdrop */
.tc-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(4px);
  z-index: 45;
}
.tc-sidebar-backdrop.active {
  display: block !important;
}

/* Universal Topbar Sidebar Toggle: Hidden on Desktop to avoid duplicate, visible on Mobile */
#topbar-sidebar-toggle, .tc-topbar-sidebar-toggle {
  display: none !important;
}

/* Responsive Sidebar Architecture */
@media (min-width: 768px) and (max-width: 1100px) {
  .tc-sidebar.collapsed {
    width: 76px !important;
  }
  .tc-sidebar.collapsed .tc-sidebar-text,
  .tc-sidebar.collapsed .tc-sidebar-badge,
  .tc-sidebar.collapsed .tc-nav-section-title {
    display: none !important;
  }
  .tc-sidebar.collapsed .tc-nav-link {
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
  }
  .tc-sidebar.collapsed ~ .tc-main-wrapper {
    margin-left: 76px !important;
  }
}

@media (min-width: 768px) {
  .tc-sidebar.collapsed .tc-brand {
    padding: 0 0.5rem;
    justify-content: center;
    gap: 0.25rem;
  }
  .tc-sidebar.collapsed #sidebar-toggle-btn {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .tc-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 270px !important;
    z-index: 50 !important;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .tc-sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  .tc-main-wrapper {
    margin-left: 0 !important;
  }
  #mobile-menu-btn, #topbar-sidebar-toggle, .tc-topbar-sidebar-toggle {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   Universal Print Media Engine
   Hides platform chrome, navigation drawers, and resets margins for crisp paper output
   ========================================================================== */
@media print {
  .tc-sidebar,
  .tc-sidebar-backdrop,
  .tc-topbar,
  footer,
  .no-print,
  #sidebar-toggle-btn,
  #topbar-sidebar-toggle,
  .tc-topbar-sidebar-toggle {
    display: none !important;
  }

  html, body {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 10pt !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .tc-app-layout,
  .tc-main-wrapper,
  .tc-content-container {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }
}


