/* Reset & Base Variables */
:root {
  --bg-color: #080c14;
  --panel-bg: rgba(15, 22, 36, 0.7);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(99, 102, 241, 0.2);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #10b981; /* Emerald / WhatsApp Green */
  --primary-glow: rgba(16, 185, 129, 0.15);
  --secondary: #6366f1; /* Indigo */
  --secondary-glow: rgba(99, 102, 241, 0.15);
  
  --success: #10b981;
  --info: #0ea5e9;
  --warning: #f59e0b;
  --danger: #f43f5e;
  
  --sidebar-width: 260px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Glowing Spheres */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.15;
}

.glow-1 {
  top: -10%;
  right: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
  bottom: -5%;
  left: 5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

.brand-text h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: var(--transition-smooth);
  width: 100%;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
  border-left: 3px solid var(--secondary);
  box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.05);
}

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

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

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.status-indicator-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  box-shadow: 0 0 8px var(--text-muted);
  transition: var(--transition-smooth);
}

.status-dot.configured {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.mock {
  background-color: var(--info);
  box-shadow: 0 0 8px var(--info);
}

.status-dot.unconfigured {
  background-color: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.status-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Main Content Area Styling */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.header-title h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-icon {
  padding: 10px 14px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Glassmorphism Cards */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dashboard-card {
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.card-header {
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.card-header .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

.card-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* KPI Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-icon.val-sent {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.metric-icon.val-delivered {
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(0, 165, 233, 0.2);
}

.metric-icon.val-read {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.metric-icon.val-failed {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.metric-data h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.metric-data p {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* Visualization Stats in Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.col-span-2 {
  grid-column: span 2;
}

.stats-visualization {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-bar-container {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-read {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.fill-delivered {
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

.fill-sent {
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.fill-failed {
  background: linear-gradient(90deg, #f43f5e, #e11d48);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.3);
}

.bar-value {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

/* Forms & inputs styling */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.required {
  color: var(--danger);
  margin-left: 2px;
}

input[type="text"],
input[type="password"],
textarea,
select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea {
  resize: vertical;
}

.help-text {
  font-size: 11px;
  color: var(--text-muted);
}

.radio-group-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.radio-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.radio-tab input[type="radio"] {
  display: none;
}

.radio-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.radio-tab.active i {
  color: var(--primary);
}

/* Send Page Layout */
.send-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.preview-panel-container {
  position: sticky;
  top: 40px;
}

.card-preview-sticky {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.03), transparent 60%), var(--panel-bg);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

/* WhatsApp Phone Mockup */
.whatsapp-mock {
  width: 280px;
  height: 480px;
  border-radius: 36px;
  background-color: #0b141a;
  border: 8px solid #2d383f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.mock-header {
  background-color: #202c33;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #111b21;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #657786;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.mock-info h4 {
  font-size: 12px;
  color: #e9edef;
  font-weight: 600;
}

.mock-info span {
  font-size: 9px;
  color: #8696a0;
  display: block;
}

.mock-chat-area {
  flex: 1;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(32, 44, 51, 0.15) 20%, transparent 20%), radial-gradient(rgba(32, 44, 51, 0.15) 20%, transparent 20%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mock-message {
  background-color: #005c4b; /* WhatsApp Sent Dark Theme */
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 90%;
  align-self: flex-end;
  color: #e9edef;
  font-size: 12px;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.mock-message::after {
  content: '';
  position: absolute;
  top: 0;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid #005c4b;
  border-bottom: 8px solid transparent;
}

.mock-msg-header {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 4px;
}

.mock-msg-body {
  line-height: 1.4;
  white-space: pre-wrap;
}

.mock-msg-footer {
  font-size: 9.5px;
  color: #8696a0;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 4px;
}

.mock-msg-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.mock-msg-buttons button {
  background: rgba(255,255,255,0.06);
  border: none;
  color: #00a884;
  font-size: 11px;
  font-weight: 600;
  padding: 6px;
  border-radius: 6px;
  width: 100%;
  cursor: default;
}

.mock-msg-time {
  display: block;
  text-align: right;
  font-size: 8px;
  color: rgba(233, 237, 239, 0.6);
  margin-top: 4px;
}

.mock-msg-time i {
  margin-left: 2px;
}

.text-blue {
  color: #53bdeb;
}

/* Variables Box */
.variables-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.variables-box h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Templates list cards */
.templates-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.template-item-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-smooth);
}

.template-item-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.template-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge-approved {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-rejected {
  background-color: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.template-meta-row {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.template-meta-row span i {
  margin-right: 4px;
}

.template-structure-preview {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.1);
  padding: 8px;
  border-radius: var(--radius-sm);
  flex: 1;
  max-height: 100px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.template-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr {
  transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Table Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: capitalize;
}

.status-badge i {
  font-size: 8px;
}

.status-badge.sent {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.status-badge.delivered {
  background: rgba(14, 165, 233, 0.15);
  color: #bae6fd;
}

.status-badge.read {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
}

.status-badge.failed {
  background: rgba(244, 63, 94, 0.15);
  color: #fecdd3;
}

.status-badge.queued {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
}

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

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

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-box {
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  animation: modalReveal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalReveal {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

.col-span-all {
  grid-column: 1 / -1;
}

.margin-top-md {
  margin-top: 20px;
}

.margin-top-lg {
  margin-top: 30px;
}

/* Configuration page guide list */
.webhook-guide {
  font-size: 13.5px;
  line-height: 1.6;
}

.guide-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-list li strong {
  color: var(--text-primary);
  display: block;
}

.guide-list code {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-family: monospace;
  font-size: 12.5px;
  display: inline-block;
  margin: 6px 0;
  border: 1px solid rgba(255,255,255,0.03);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 250px;
  max-width: 350px;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-success i {
  color: var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-error i {
  color: var(--danger);
}

.toast-info {
  border-left: 4px solid var(--info);
}

.toast-info i {
  color: var(--info);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Responsive adjust */
@media (max-width: 900px) {
  .sidebar {
    width: 70px;
    padding: 20px 10px;
    align-items: center;
  }
  .brand-text, .sidebar-footer, .nav-item span {
    display: none;
  }
  .main-content {
    margin-left: 70px;
    padding: 20px;
  }
  .send-layout {
    grid-template-columns: 1fr;
  }
  .preview-panel-container {
    position: static;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
