/* ============================================================
   Oasse Invoice — Premium Design System
   Modern Light Mode with Glassmorphism & Vibrant Accents
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-sidebar: #ffffff;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-glow: rgba(99, 102, 241, 0.2);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 50px rgba(0,0,0,0.12);
  
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --sidebar-w: 280px;
  --topbar-h: 70px;
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0a0b10;
  --bg-secondary: #12141c;
  --bg-card: #181a25;
  --bg-card-hover: #1e2130;
  --bg-input: #0f1118;
  --bg-sidebar: #0d0f16;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 50px rgba(0,0,0,0.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

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

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

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-logo {
  height: var(--topbar-h);
  padding: 0 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: 14px;
}
.sidebar-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.sidebar-logo h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar-nav { flex: 1; padding: 24px 16px; overflow-y: auto; }
.nav-section { margin-bottom: 20px; }
.nav-section-title {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); padding: 0 16px; margin-bottom: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .9rem; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
  margin-bottom: 2px;
}
.nav-item:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
  transform: translateX(4px);
}
.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.2);
}
.nav-item .nav-icon { 
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  color: var(--text-muted); transition: var(--transition); 
}
.nav-item .nav-icon svg { width: 18px; height: 18px; stroke-width: 2.5px; }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { color: var(--accent-hover); }

/* Main Content Area */
.main-content {
  flex: 1; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.03) 0px, transparent 50%);
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-title { 
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 600; 
}
.topbar-right { display: flex; align-items: center; gap: 24px; }
.topbar-user {
  display: flex; align-items: center; gap: 12px;
}
.topbar-user .user-avatar {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ── Typography & Headings ── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h2 { font-size: 1.85rem; letter-spacing: -0.02em; }
.page-header p { color: var(--text-secondary); margin-top: 6px; font-size: 0.95rem; }

/* ── Cards ── */
.card, .form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}
.card-header {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 1.15rem; }
.form-section:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; font-family: var(--font-heading);
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
  filter: brightness(1.1);
}
.btn-secondary {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(0,0,0,0.08);
  border-color: var(--border-light);
}
.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.btn-success:hover { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }

.text-right { text-align: right; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* ── Forms ── */
.form-group { margin-bottom: 24px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.form-label {
  display: block; margin-bottom: 8px;
  font-size: .88rem; font-weight: 600; color: var(--text-secondary);
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: .95rem;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-muted); }

.form-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: .92rem; color: var(--text-secondary);
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: var(--transition);
  background: rgba(0,0,0,0.02);
  border: 1px solid transparent;
}
.form-check:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent);
  cursor: pointer;
}

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 6px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
}
.badge-info { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }

/* ── Specific for Generate Page ── */
.input-rupiah {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  color: var(--accent-hover);
}

.form-hint {
  font-size: .8rem; color: var(--text-muted); margin-top: 6px;
  display: flex; align-items: center; gap: 4px;
}
.form-hint::before { content: 'ℹ️'; font-size: .9rem; opacity: .7; }

/* Section Transitions */
.collapsed {
  display: none;
  animation: slideDown .3s ease-out;
}
@keyframes slideDown { 
  from { opacity: 0; transform: translateY(-10px); } 
  to { opacity: 1; transform: translateY(0); } 
}
@keyframes flashIn { 
  from { opacity: 0; transform: translateY(-8px); } 
  to { opacity: 1; transform: none; } 
}

/* ── Flash Messages ── */
.flash {
  padding: 16px 24px; border-radius: var(--radius);
  margin-bottom: 32px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(10px);
}
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.flash-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* ── Mobile Sidebar Toggle ── */
.sidebar-toggle {
  display: none; width: 40px; height: 40px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 10px; color: var(--text-primary); cursor: pointer;
  align-items: center; justify-content: center;
}

.page-content {
  padding: 40px;
  flex: 1;
}


@media (max-width: 1024px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,0.5); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .topbar { padding: 0 20px; }
}

@media (max-width: 768px) {
  .page-content { padding: 24px 20px; }
  .form-section { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Processing Modal Animation ── */
.processing-animation {
  position: relative;
  width: 80px; height: 80px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.processing-animation .icon { font-size: 2.5rem; z-index: 2; animation: rocketFloat 2s ease-in-out infinite; }
.pulse-ring {
  position: absolute; width: 100%; height: 100%;
  border: 4px solid var(--accent); border-radius: 50%;
  animation: pulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes rocketFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes pulseRing {
  0% { transform: scale(0.3); opacity: 0.8; }
  80%, 100% { transform: scale(1.2); opacity: 0; }
}

.progress-bar-container {
  width: 100%; height: 6px; background: rgba(0,0,0,0.05);
  border-radius: 10px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 30%; background: var(--accent-gradient);
  border-radius: 10px;
  animation: progressMove 2s infinite linear;
}
@keyframes progressMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
/* ── Tables ── */
.table-wrapper { overflow-x: auto; margin: -32px; margin-top: -32px; border-radius: var(--radius); }
.table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem;
}
.table th {
  background: rgba(0,0,0,0.02);
  padding: 16px 24px; text-align: left;
  font-family: var(--font-heading); font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; font-size: .75rem;
  border-bottom: 1px solid var(--border-color);
}
.table td {
  padding: 16px 24px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(0,0,0,0.02); color: var(--text-primary); }
.nowrap { white-space: nowrap; }

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter, 
.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_processing, 
.dataTables_wrapper .dataTables_paginate {
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  margin-bottom: 15px;
}
.dataTables_wrapper .dataTables_filter input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 6px 12px;
  margin-left: 10px;
}
.dataTables_wrapper .dataTables_length select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 4px 8px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--text-secondary) !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--accent-gradient) !important;
  border: none !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bg-card-hover) !important;
  color: #fff !important;
  border-color: var(--border-light) !important;
}
table.dataTable { border-bottom: 1px solid var(--border-color) !important; }
table.dataTable.no-footer { border-bottom: 1px solid var(--border-color) !important; }
.dataTables_empty { padding: 40px !important; color: var(--text-muted); }
.dataTables_processing {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  z-index: 100 !important;
}

/* ── Empty State ── */
.empty-state {
  text-align: center; padding: 60px 40px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 20px; opacity: .5; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Dashboard Stats ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.stat-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0; transition: var(--transition);
}
.stat-card:hover::before { opacity: 1; }
.stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; margin-bottom: 8px; position: relative; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); font-family: var(--font-heading); position: relative; }

/* ── Module Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.module-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
}
.module-card.disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.5); }
.module-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--border-color); }

.module-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px; border-radius: 6px; font-size: .65rem; font-weight: 800; text-transform: uppercase;
}
.module-badge.active { background: var(--success-bg); color: var(--success); }
.module-badge.soon { background: var(--border-color); color: var(--text-muted); }

.module-icon {
  font-size: 2.5rem; margin-bottom: 20px;
  width: 60px; height: 60px;
  background: rgba(0,0,0,0.03);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.module-card:hover .module-icon { background: var(--accent-glow); transform: rotate(-10deg) scale(1.1); }
.module-name { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; font-family: var(--font-heading); }
.module-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Modals ── */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: all .4s ease;
}
.modal-overlay.show {
  opacity: 1; visibility: visible;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%; max-width: 500px;
  transform: scale(0.9);
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal {
  transform: scale(1);
}

/* ── Dropdown ── */
.dropdown-wrapper { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 8px 0;
  min-width: 160px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all var(--transition); z-index: 1000;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text-secondary);
  font-size: .9rem; font-weight: 500; transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 20px;
}
.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.logo-area {
  text-align: center;
  margin-bottom: 30px;
}
.logo-area .logo-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}
.logo-area h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

