/* Telatenpedia Dev - Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-border: #BFDBFE;
  
  --indigo: #4F46E5;
  --purple: #7C3AED;
  --purple-light: #F5F3FF;
  
  --success: #10B981;
  --success-light: #ECFDF5;
  --success-border: #A7F3D0;
  --success-text: #047857;
  
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --warning-border: #FDE68A;
  --warning-text: #B45309;

  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --danger-border: #FECACA;
  --danger-text: #B91C1C;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 90px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.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)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.42);
  color: #FFFFFF !important;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #1E293B !important;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-1.5px);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: 9px;
  font-weight: 600;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.badge-primary { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.badge-success { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.badge-warning { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.badge-danger  { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.badge-purple  { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.badge-slate   { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.08);
}

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

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-size: 0.875rem;
  color: var(--text-main);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background-color: #FFFFFF;
}

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

/* Alerts */
.alert {
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.alert-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-info { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }

/* Progress Bar */
.progress-bar-bg {
  width: 100%;
  height: 7px;
  background-color: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB 0%, #7C3AED 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ============================================================
   WORKSPACE LAYOUT (Sidebar + Main Content)
============================================================ */
.workspace-container {
  display: flex;
  min-height: 100vh;
  background-color: #F8FAFC;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #EFF6FF 0%, #F0F7FF 60%, #EBF4FE 100%);
  border-right: 1px solid #DBEAFE;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  z-index: 40;
  box-shadow: 2px 0 12px rgba(37, 99, 235, 0.04);
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-text {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: #0F172A;
}
.brand-logo-text span {
  color: var(--primary);
}

.sidebar-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #FFFFFF;
  color: #2563EB;
  border: 1px solid #93C5FD;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.sidebar-section-title {
  font-size: 0.675rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 0.875rem 0.35rem;
  margin-top: 0.35rem;
}

.sidebar-nav {
  padding: 0.5rem 0.65rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  scrollbar-width: thin;
  scrollbar-color: #BFDBFE transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #BFDBFE;
  border-radius: 99px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #93C5FD;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.525rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8375rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background-color: rgba(37, 99, 235, 0.08);
  color: #1D4ED8;
  transform: translateX(2px);
}

.nav-link.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
  transform: none;
}

.nav-link svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 0.75rem 0.75rem 0.875rem;
  border-top: 1px solid rgba(191, 219, 254, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: transparent;
}

.sidebar-system-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}
.sidebar-system-chip .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGlowDot 2s infinite ease-in-out;
}
@keyframes pulseGlowDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.sidebar-system-chip-text {
  font-size: 0.725rem;
  font-weight: 700;
  color: #334155;
}
.sidebar-system-chip-sub {
  font-size: 0.65rem;
  color: #64748B;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #EF4444;
  transition: all 0.15s ease;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-logout:hover {
  background-color: #FEF2F2;
  color: #DC2626;
}
.btn-logout svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  height: 70px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

.search-box {
  position: relative;
  width: 380px;
}
.search-box input {
  width: 100%;
  padding: 0.6rem 3rem 0.6rem 2.6rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}
.search-box input:focus {
  background-color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.search-box svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  width: 1.1rem;
  height: 1.1rem;
}
.search-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #94A3B8;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  pointer-events: none;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-icon-btn {
  position: relative;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.15s ease;
}
.topbar-icon-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.85rem 0.25rem 0.35rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.user-chip:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.user-info {
  line-height: 1.25;
}
.user-info-name {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-main);
}
.user-info-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.page-body {
  padding: 2.25rem;
  flex: 1;
}

/* ============================================================
   DASHBOARD STAT CARDS
============================================================ */
.stat-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.09);
  border-color: #BFDBFE;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}
.stat-icon.blue { background: #EFF6FF; color: #2563EB; border-color: #DBEAFE; }
.stat-icon.orange { background: #FFFBEB; color: #D97706; border-color: #FEF3C7; }
.stat-icon.green { background: #ECFDF5; color: #059669; border-color: #D1FAE5; }
.stat-icon.purple { background: #F5F3FF; color: #7C3AED; border-color: #EDE9FE; }

.stat-value {
  font-size: 1.95rem;
  font-weight: 850;
  color: #0F172A;
  margin: 0.25rem 0 0.15rem 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.stat-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.stat-link {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  transition: gap 0.15s ease;
}
.stat-link:hover {
  gap: 0.4rem;
  text-decoration: none;
}

/* Tabs */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}
.tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 99px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  color: var(--primary);
  background: #F8FAFC;
}
.tab-btn.active {
  color: var(--primary);
  background: #EFF6FF;
  border-color: #BFDBFE;
  font-weight: 700;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Tables */
.table-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  min-width: 600px;
}
.table thead th {
  background: #F8FAFC;
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}
.table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover td {
  background-color: #F8FAFC;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background-color: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-xl);
}
.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.375rem;
}
.empty-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ============================================================
   WORKSPACE LAYOUT & SIDEBAR BRANDING (Telatenpedia DEV)
============================================================ */
.sidebar-header-workspace {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.7);
}

.brand-link-workspace {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-square-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.brand-info-wrap {
  line-height: 1.2;
}

.brand-main-title {
  font-size: 1.05rem;
  font-weight: 850;
  color: #0F172A;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #2563EB;
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.brand-sub-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748B;
  margin-top: 0.15rem;
}

/* Sidebar Storage Widget */
.sidebar-storage-card {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 0.85rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

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

.storage-title {
  font-size: 0.75rem;
  font-weight: 750;
  color: #334155;
}

.storage-percent {
  font-size: 0.75rem;
  font-weight: 750;
  color: #2563EB;
}

.storage-bar {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.storage-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748B;
}

.notif-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #2563EB;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

/* ============================================================
   PROJECT CREATION & IMPORT UI (3-IN-1 EXPERIENCE)
============================================================ */
.creation-container {
  max-width: 960px;
  margin: 0 auto;
}

.creation-header-banner {
  margin-bottom: 1.75rem;
}

.creation-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.creation-tabs-wrap {
  display: flex;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 0.35rem;
  border-radius: 14px;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.creation-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  text-align: center;
}

.creation-tab-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.5);
}

.creation-tab-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.panel-header-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #F1F5F9;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-desc {
  font-size: 0.875rem;
  color: #64748B;
}

/* Interactive Tech Stack Tags */
.tech-pills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  min-height: 48px;
}

.tech-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tech-tag-chip-remove {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: #3B82F6;
  border: none;
  background: none;
  padding: 0;
}

.tech-tag-chip-remove:hover {
  color: #EF4444;
}

.tech-tag-input-field {
  border: none;
  outline: none;
  font-size: 0.85rem;
  flex: 1;
  min-width: 140px;
  padding: 0.2rem;
}

.tech-preset-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  align-items: center;
}

.tech-suggestion-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tech-suggestion-btn:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #2563EB;
}

/* Visibility Radio Cards */
.visibility-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.visibility-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.visibility-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.visibility-card.selected {
  border-color: #2563EB;
  background: #F8FAFC;
  box-shadow: 0 0 0 1px #2563EB;
}

.visibility-radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.visibility-card.selected .visibility-radio-custom {
  border-color: #2563EB;
}

.visibility-card.selected .visibility-radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563EB;
}

.visibility-title {
  font-size: 0.875rem;
  font-weight: 750;
  color: #0F172A;
  margin-bottom: 0.15rem;
}

.visibility-desc {
  font-size: 0.775rem;
  color: #64748B;
  line-height: 1.4;
}

/* Stack / Technology Radio Cards Model */
.stack-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stack-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.stack-radio-card:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stack-radio-card.selected {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 0 0 1px #2563EB, 0 2px 6px rgba(37, 99, 235, 0.1);
}

.stack-radio-card input[type="radio"] {
  accent-color: #2563EB;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.stack-radio-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.stack-radio-card.selected .stack-radio-title {
  color: #1D4ED8;
}

.stack-radio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.stack-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
}

.stack-radio-card.selected .stack-badge {
  background: #DBEAFE;
  color: #1E40AF;
}

.stack-radio-desc {
  font-size: 0.725rem;
  color: #64748B;
  line-height: 1.35;
}

/* Compact Stack Radio Selector for Create Form */
.create-stack-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.create-stack-radio-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
  user-select: none;
}

.create-stack-radio-card:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.create-stack-radio-card.selected {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #1D4ED8;
  box-shadow: 0 0 0 1px #2563EB;
}

.create-stack-radio-card input[type="radio"] {
  accent-color: #2563EB;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .stack-radio-grid {
    grid-template-columns: 1fr;
  }
  .create-stack-radio-grid {
    grid-template-columns: 1fr;
  }
}

/* Progress Preset Buttons */
.btn-progress-preset {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-progress-preset:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #2563EB;
  transform: translateY(-1px);
}

/* Tab 2: Dropzone & File Detection Tree */
.dropzone-panel {
  border: 2px dashed #CBD5E1;
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #F8FAFC;
  transition: all 0.25s ease;
  cursor: pointer;
}

.dropzone-panel:hover, .dropzone-panel.dragover {
  border-color: #2563EB;
  background: #EFF6FF;
}

.dropzone-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dropzone-main-text {
  font-size: 1rem;
  font-weight: 750;
  color: #0F172A;
  margin-bottom: 0.35rem;
}

.dropzone-sub-text {
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 1.25rem;
}

.dropzone-badge-info {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* Detection Tree */
.detection-tree-box {
  margin-top: 1.5rem;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
}

.detection-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.detection-header-label {
  font-size: 0.85rem;
  font-weight: 750;
  color: #0F172A;
}

.detection-size-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}

.tree-list-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 240px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
}

.tree-item-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #334155;
}

.tree-item-row.folder {
  font-weight: 650;
  color: #1E293B;
}

.tree-item-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tab 3: GitHub Connected & Repo List */
.github-connect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.github-user-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.github-avatar-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.github-status-headline {
  font-size: 0.875rem;
  font-weight: 750;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.github-status-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.github-status-sub {
  font-size: 0.775rem;
  color: #64748B;
}

.repo-selection-title {
  font-size: 0.875rem;
  font-weight: 750;
  color: #0F172A;
  margin-bottom: 0.65rem;
}

.repo-list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.repo-item-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.repo-item-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.repo-item-card.selected {
  border-color: #2563EB;
  background: #F8FAFC;
}

.repo-card-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.repo-item-card.selected .repo-card-radio {
  border-color: #2563EB;
}

.repo-item-card.selected .repo-card-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563EB;
}

.repo-card-info {
  flex: 1;
  line-height: 1.3;
}

.repo-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
}

.repo-card-desc {
  font-size: 0.775rem;
  color: #64748B;
}

/* Panel 4: Process Animation Modal & Success Card */
.process-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.process-modal-box {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.process-step-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748B;
  padding: 0.45rem 0;
  transition: all 0.2s ease;
}

.process-step-row.completed {
  color: #059669;
}

.process-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  background: #F1F5F9;
  color: #94A3B8;
  font-weight: 800;
}

.process-step-row.completed .process-step-icon {
  background: #ECFDF5;
  color: #059669;
}

.process-step-row.active .process-step-icon {
  background: #EFF6FF;
  color: #2563EB;
}

/* Success Card */
.success-preview-card {
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
}

.success-banner-top {
  padding: 1rem 1.25rem;
  background: #ECFDF5;
  border-bottom: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.875rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

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

.success-floating-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 99;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .workspace-container { flex-direction: column; }
  .sidebar { 
    width: 100%; 
    height: auto; 
    position: static; 
    border-right: none;
    border-bottom: 1px solid #BFDBFE;
    box-shadow: none;
  }
  .main-content {
    margin-left: 0 !important;
  }
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-section-title {
    display: none;
  }
  .sidebar-footer {
    display: none;
  }
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .visibility-options-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 1rem; height: 60px; }
  .search-box { width: 180px; }
  .search-shortcut { display: none; }
  .page-body { padding: 1.25rem 1rem; }
  .creation-tabs-wrap { flex-direction: column; }
}

/* =========================================================
   TELATENPEDIA DEV - LUXURY MODAL & POPUP DIALOG SYSTEM
   ========================================================= */

.tp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
}

.tp-modal-backdrop.tp-modal-active {
  opacity: 1;
  visibility: visible;
}

.tp-modal-card {
  background: #FFFFFF;
  border-radius: 28px;
  max-width: 460px;
  width: 100%;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 
    0 25px 60px -12px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(226, 232, 240, 0.9),
    0 0 40px -10px rgba(37, 99, 235, 0.12);
  position: relative;
  text-align: center;
  transform: scale(0.92) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.tp-modal-backdrop.tp-modal-active .tp-modal-card {
  transform: scale(1) translateY(0);
}

/* Close icon button at top-right */
.tp-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.tp-modal-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: rotate(90deg);
}

/* Modal Icon Container */
.tp-modal-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Danger (Delete / Destruction) */
.tp-modal-danger .tp-modal-icon-wrap {
  background: linear-gradient(135deg, #FEE2E2 0%, #FEF2F2 100%);
  border: 2px solid #FECACA;
  color: #DC2626;
  box-shadow: 0 0 0 8px rgba(254, 226, 226, 0.6), 0 12px 24px -6px rgba(239, 68, 68, 0.3);
}

/* Warning (Disconnect / Alert) */
.tp-modal-warning .tp-modal-icon-wrap {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border: 2px solid #FDE68A;
  color: #D97706;
  box-shadow: 0 0 0 8px rgba(254, 243, 199, 0.6), 0 12px 24px -6px rgba(245, 158, 11, 0.3);
}

/* Info / Primary */
.tp-modal-info .tp-modal-icon-wrap,
.tp-modal-primary .tp-modal-icon-wrap {
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  border: 2px solid #BFDBFE;
  color: #2563EB;
  box-shadow: 0 0 0 8px rgba(219, 234, 254, 0.6), 0 12px 24px -6px rgba(37, 99, 235, 0.3);
}

/* Success */
.tp-modal-success .tp-modal-icon-wrap {
  background: linear-gradient(135deg, #D1FAE5 0%, #ECFDF5 100%);
  border: 2px solid #A7F3D0;
  color: #059669;
  box-shadow: 0 0 0 8px rgba(209, 250, 229, 0.6), 0 12px 24px -6px rgba(16, 185, 129, 0.3);
}

/* Badge Pill */
.tp-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

.tp-modal-danger .tp-modal-badge {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.tp-modal-warning .tp-modal-badge {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.tp-modal-info .tp-modal-badge,
.tp-modal-primary .tp-modal-badge {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.tp-modal-success .tp-modal-badge {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* Title & Description */
.tp-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}

.tp-modal-desc {
  font-size: 0.925rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

/* Alert Callout Note */
.tp-modal-note {
  background: #FFF1F2;
  border: 1px dashed #FECDD3;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 0.825rem;
  color: #9F1239;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tp-modal-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.tp-modal-warning .tp-modal-note {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

/* Action Buttons Grid */
.tp-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.tp-modal-actions.single-action {
  grid-template-columns: 1fr;
}

.tp-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  outline: none;
}

.tp-modal-btn-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.tp-modal-btn-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
}

.tp-modal-btn-confirm {
  color: #FFFFFF;
}

.tp-modal-danger .tp-modal-btn-confirm {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.45);
}

.tp-modal-danger .tp-modal-btn-confirm:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(239, 68, 68, 0.55);
}

.tp-modal-warning .tp-modal-btn-confirm {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.45);
}

.tp-modal-warning .tp-modal-btn-confirm:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(245, 158, 11, 0.55);
}

.tp-modal-info .tp-modal-btn-confirm,
.tp-modal-primary .tp-modal-btn-confirm {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.45);
}

.tp-modal-info .tp-modal-btn-confirm:hover,
.tp-modal-primary .tp-modal-btn-confirm:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.55);
}

.tp-modal-btn:active {
  transform: scale(0.97) !important;
}

/* TOAST NOTIFICATION */
.tp-toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 90vw;
  width: 420px;
}

.tp-toast-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 
    0 20px 40px -10px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  pointer-events: auto;
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.tp-toast-card.tp-toast-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tp-toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-toast-success .tp-toast-icon {
  background: #ECFDF5;
  color: #10B981;
}

.tp-toast-info .tp-toast-icon {
  background: #EFF6FF;
  color: #2563EB;
}

.tp-toast-warning .tp-toast-icon {
  background: #FFFBEB;
  color: #F59E0B;
}

.tp-toast-danger .tp-toast-icon {
  background: #FEF2F2;
  color: #EF4444;
}

.tp-toast-text {
  flex: 1;
  text-align: left;
}

.tp-toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.15rem;
}

.tp-toast-message {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.4;
}

.tp-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #2563EB;
  width: 100%;
  animation: tpToastProgress 3.5s linear forwards;
}

.tp-toast-success .tp-toast-progress { background: #10B981; }
.tp-toast-warning .tp-toast-progress { background: #F59E0B; }
.tp-toast-danger .tp-toast-progress { background: #EF4444; }

@keyframes tpToastProgress {
  from { width: 100%; }
  to { width: 0%; }
}


