@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ========================================================= */
/* DESIGN SYSTEM: MODERN SOFT DARK BENTO (DRIBBLE / SPLIT)  */
/* ========================================================= */
:root {
  /* Surfaces Soft Matte Charcoal */
  --bg-primary: #121316;
  --bg-secondary: #17181d;
  --bg-card: #1c1d23;
  --bg-card-hover: #22232a;
  --bg-elevated: #262732;
  
  /* Borders & Highlights */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: #8b5cf6;
  
  /* Signature Brand Accent (Vibrant Violet / Lavender) */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-glow: rgba(124, 58, 237, 0.35);
  --primary-light: #a78bfa;
  
  /* Warm Sunset & Nature Secondary Accents */
  --accent-gold: #f59e0b;
  --accent-orange: #f97316;
  --accent-rose: #f43f5e;
  
  /* Semantic Status */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);
  --warning: #f59e0b;
  
  /* Typography */
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  /* Soft Heavy Radii (Bento & Pill Geometry) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Motion & Shadows */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-bento: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 22px 50px -10px rgba(0, 0, 0, 0.65);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(124, 58, 237, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(249, 115, 22, 0.04) 0%, transparent 40%);
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

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

/* ========================================================= */
/* SIDEBAR (SOFT PILL NAVIGATION)                           */
/* ========================================================= */
.sidebar {
  width: 270px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.5);
}

.brand-info h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-info span {
  font-size: 10.5px;
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  list-style: none;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #ffffff;
  background: #7c3aed;
  font-weight: 600;
  box-shadow: 0 6px 18px -4px rgba(124, 58, 237, 0.45);
}

.nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.nav-item.active i {
  color: #ffffff;
}

.sidebar-footer {
  padding: 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(18, 19, 22, 0.6);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #262732, #1c1d23);
  border: 1.5px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
}

.user-details {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--text-dim);
}

/* ========================================================= */
/* MAIN CONTENT & TOPBAR                                     */
/* ========================================================= */
.main-wrapper {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 19, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.page-title h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-title p {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Connection Status Pills */
.moodle-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  user-select: none;
}

.moodle-pill:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

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

/* Content Body */
.content-body {
  padding: 32px;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

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

/* ========================================================= */
/* BENTO STAT CARDS                                          */
/* ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-bento);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue { background: rgba(124, 58, 237, 0.15); color: var(--primary-light); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-icon.gold { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.stat-icon.cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.stat-val {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.stat-lbl {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================================================= */
/* BENTO PANELS & CONTAINERS                                 */
/* ========================================================= */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-bento);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.panel-header h3 i {
  color: var(--primary-light);
  font-size: 16px;
}

/* ========================================================= */
/* FORMS & INPUTS (PILL STYLE)                               */
/* ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: #15161a;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  color: #f9fafb;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-textarea {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 85px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: #1a1b20;
}

.form-select option {
  background: #1c1d23;
  color: #f9fafb;
}

/* ========================================================= */
/* BUTTONS (ROUNDED PILL GEOMETRY)                           */
/* ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 6px 18px -3px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 10px 24px -3px rgba(124, 58, 237, 0.65);
  transform: translateY(-1.5px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-success {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 6px 18px -3px rgba(5, 150, 105, 0.4);
}

.btn-success:hover {
  background: #10b981;
  transform: translateY(-1.5px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12.5px;
}

/* ========================================================= */
/* FILE DROPZONE                                             */
/* ========================================================= */
.dropzone {
  border: 2px dashed rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(124, 58, 237, 0.02);
  transition: var(--transition);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-light);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.15);
}

.dropzone-icon {
  font-size: 42px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

/* ========================================================= */
/* TABLES (SOFT BENTO ROUNDED ROWS)                          */
/* ========================================================= */
.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  text-align: left;
  font-size: 13.5px;
}

.custom-table th {
  padding: 12px 18px;
  color: #9ca3af;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 14px 18px;
  background: #17181e;
  color: #e5e7eb;
  transition: var(--transition);
}

.custom-table td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.custom-table td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.custom-table tr:hover td {
  background: #20222a;
  color: #ffffff;
}

/* ========================================================= */
/* BADGES (PILL SHAPE)                                       */
/* ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-valid {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-revoked {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-moodle {
  background: rgba(124, 58, 237, 0.12);
  color: #c084fc;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

/* Switch Toggle (Moodle / SMTP connection) */
.switch-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #262832;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.25s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

input:checked + .slider {
  background: #7c3aed;
  border-color: #8b5cf6;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.45);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #ffffff;
}

/* ========================================================= */
/* MODAL SYSTEM                                              */
/* ========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================= */
/* CANVA STUDIO INTERACTIVO (EDITOR VISUAL DRAG & DROP)      */
/* ========================================================= */
.studio-modal-box {
  background: #111216;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-xl);
  width: 96vw;
  max-width: 1400px;
  height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  padding: 0;
}

.studio-header {
  padding: 14px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.studio-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Mesa de trabajo del lienzo (Canva Workspace) */
.canva-workspace {
  flex: 1;
  background: #090a0d;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

/* Contenedor exacto donde descansa el PDF y la capa de arrastre */
.canva-stage-container {
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  user-select: none;
}

#pdfRenderCanvas {
  display: block;
}

#canvasOverlayLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* ========================================================= */
/* CANVA BOXES & DRAG ELEMENTS (CALIBRATION ZERO-ALTERATION)  */
/* ========================================================= */
/* CRITICAL: padding: 1px 4px; line-height: 1; must be preserved */
.draggable-item {
  position: absolute;
  cursor: grab;
  user-select: none;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1.5px dashed rgba(124, 58, 237, 0.75);
  background: rgba(124, 58, 237, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
  box-sizing: border-box;
}

.draggable-item .drag-content-text {
  display: inline-block;
  line-height: 1;
  pointer-events: none;
  vertical-align: baseline;
}

.drag-baseline-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(239, 68, 68, 0.45);
  pointer-events: none;
  opacity: 0.7;
}

.draggable-item:hover .drag-baseline-line,
.draggable-item.selected .drag-baseline-line,
.draggable-item.active-drag .drag-baseline-line {
  opacity: 1;
  background: #ef4444;
  height: 1.5px;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.7);
}

.draggable-item:hover {
  border-color: var(--primary-light);
  background: rgba(124, 58, 237, 0.15);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.draggable-item.active-drag {
  cursor: grabbing !important;
  border-color: #a78bfa;
  border-style: solid;
  background: rgba(124, 58, 237, 0.25);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
  z-index: 100 !important;
}

.draggable-item.selected {
  border-color: #f59e0b;
  border-style: solid;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.drag-label-tag {
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: #7c3aed;
  color: white;
  border-radius: var(--radius-full);
  pointer-events: none;
  letter-spacing: 0.03em;
}

/* Caja especial del QR */
.draggable-qr-box {
  position: absolute;
  cursor: grab;
  user-select: none;
  border: 2px dashed #10b981;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.draggable-qr-box:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.draggable-qr-box.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

/* Barra lateral de herramientas (Studio Sidebar) */
.studio-sidebar {
  width: 360px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  gap: 16px;
}

.field-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.field-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.field-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.field-pill.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

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

.toast {
  background: #1c1d23;
  border-left: 4px solid var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 13.5px;
  min-width: 280px;
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .sidebar { width: 70px; }
  .brand-info, .nav-item span, .user-details, .sidebar-footer button span { display: none; }
  .main-wrapper { margin-left: 70px; }
  .brand { justify-content: center; padding: 18px 0; }
  .nav-item { justify-content: center; padding: 14px 0; }
  .studio-main { flex-direction: column; }
  .studio-sidebar { width: 100%; height: 300px; }
}
