 :root {
      --primary: #D40000;
      --secondary: #ffaa0b;
      --bg: #ffffff;
      --card: #f7f7f7;
      --muted: #8b93a7;
      --text: #222;
      --success: #2ecc71;
      --warning: #f1c40f;
      --danger: #e74c3c;
      --radius: 16px;
      --ring: 0 0 0 2px rgba(212, 0, 0, .25);
      --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      --glass: rgba(0, 0, 0, 0.03);
      --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
      --sidebar-w: 280px;
      --sidebar-w-collapsed: 86px;
      --transition-fast: 160ms cubic-bezier(.2, .65, .3, 1);
      --transition-slow: 360ms cubic-bezier(.2, .65, .3, 1);
    }

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

    html,
    body {
      height: 100%
    }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      overflow: hidden;
    }

    /* Layout */
    .app {
      display: grid;
      grid-template-columns: var(--sidebar-w) 1fr;
      grid-template-rows: 72px 1fr;
      height: 100vh;
      transition: grid-template-columns var(--transition-slow);
    }

    .app.collapsed {
      grid-template-columns: var(--sidebar-w-collapsed) 1fr
    }

    /* Sidebar */
    .sidebar {
      grid-row: 1 / span 2;
      background: rgb(243, 239, 239);
      border-right: 1px solid rgba(0, 0, 0, 0.06);
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(4px);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      height: 72px;
      padding: 0 16px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent);
    }

    .brand .logo {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: var(--gradient);
      display: grid;
      place-items: center;
      color: white;
      box-shadow: 0 8px 20px rgba(212, 0, 0, .18);
    }

    .brand .title {
      font-weight: 800;
      letter-spacing: 0.6px
    }

    .brand .title span {
      opacity: .85;
      font-weight: 700
    }

    .nav {
      height: calc(100% - 72px);
      overflow-y: auto;
      padding: 12px 0px 24px 0px;
      scrollbar-width: thin
    }

    .nav-group {
      margin: 10px 0
    }

    .nav-item {
      list-style: none;
      margin: 8px 0;
      position: relative;
    }

    .link {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      border-radius: 14px;
      color: var(--text);
      text-decoration: none;
      background: transparent;
      transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
      outline: none;
      position: relative;
    }

    .link .icon {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: var(--glass);
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    }

    .link:hover {
      background: rgba(0, 0, 0, 0.06);
      transform: translateY(-1px)
    }

    .link:active {
      transform: translateY(0)
    }

    .link .chev {
      margin-left: auto;
      transition: transform var(--transition-fast)
    }

    .link.active {
      background: rgba(212, 0, 0, 0.18);
      box-shadow: var(--ring)
    }

    .link.active .icon {
      background: rgba(212, 0, 0, 0.22)
    }

    .submenu {
      height: 0;
      overflow: hidden;
      transition: height var(--transition-slow);
      padding-left: 24px
    }

    .submenu a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      margin: 6px 0;
      text-decoration: none;
      color: var(--text);
      background: transparent;
    }

    .submenu a:hover {
      background: rgba(0, 0, 0, 0.06)
    }

    /* Remove button border for sidebar dropdowns */
    .sidebar .nav-item>button.link {
      border: none;
      background: transparent;
      box-shadow: none;
      width: 100%;
      text-align: left;
      padding: 12px 14px;
    }

    /* Remove focus/active border for dropdowns */
    .sidebar .nav-item>button.link:focus,
    .sidebar .nav-item>button.link:active {
      border: none;
      box-shadow: none;
      outline: none;
    }

    /* Header */
    .header {
      background: rgb(243, 239, 239);
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 16px;
      position: sticky;
      top: 0;
      z-index: 3;
      backdrop-filter: blur(6px);
    }

    .header .toggle {
      width: 42px;
      height: 42px;
      border: none;
      border-radius: 12px;
      background: var(--gradient);
      color: white;
      cursor: pointer;
      display: grid;
      place-items: center;
      box-shadow: 0 8px 20px rgba(212, 0, 0, .18);
      transition: transform var(--transition-fast);
    }

    .header .toggle:hover {
      transform: translateY(-1px)
    }

    .header .title-wrap {
      display: grid;
      gap: 2px
    }

    .header .title {
      font-weight: 800;
      letter-spacing: .4px
    }

    .header .muted {
      color: var(--muted);
      font-size: 12px
    }

    .header .search {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(0, 0, 0, 0.04);
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 14px;
      padding: 6px 10px;
    }

    .header .search input {
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      min-width: 200px
    }

    .header .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.04);
      border: 1px solid rgba(0, 0, 0, 0.08);
      font-size: 12px
    }

    .header .avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--gradient)
    }

    /* Main */
    .main {
      padding: 20px;
      overflow-y: auto;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 18px;
    }

    .card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 18px;
    }

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

    .kpi .value {
      font-size: 24px;
      font-weight: 800;
    }

    .kpi .trend.up {
      color: var(--success);
    }

    .kpi .trend.down {
      color: var(--danger);
    }

    /* Page Header */
    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      border-radius: 12px;
      border: none;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .btn-primary {
      background: var(--gradient);
      color: white;
      box-shadow: 0 4px 12px rgba(212, 0, 0, 0.25);
    }
    
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(212, 0, 0, 0.3);
    }
    
    .btn-secondary {
      background: #f1f1f1;
      color: var(--text);
    }
    
    .btn-secondary:hover {
      background: #e5e5e5;
    }
    
    .btn-danger {
      background: var(--danger);
      color: white;
    }
    
    .btn-danger:hover {
      background: #c0392b;
      transform: translateY(-2px);
    }
    
    .btn-warning {
      background: var(--warning);
      color: white;
    }
    
    .btn-success {
      background: var(--success);
      color: white;
    }
    
    .btn-sm {
      padding: 8px 14px;
      font-size: 14px;
    }

    /* Form Styles */
    .form-container {
      max-width: 1300px;
      margin: 0 auto;
    }
    
    .form-card {
      background: white;
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: var(--shadow);
      margin-bottom: 24px;
    }
    
    .form-header {
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid #eee;
    }
    
    .form-header h3 {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
    }
    
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      font-size: 14px;
    }
    
    .form-control {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid #ddd;
      border-radius: 12px;
      font-family: inherit;
      font-size: 15px;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    
    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.1);
    }
    
    textarea.form-control {
      min-height: 120px;
      resize: vertical;
    }
    
    .form-hint {
      font-size: 13px;
      color: var(--muted);
      margin-top: 6px;
    }
    
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    
    @media (max-width: 768px) {
      .form-row {
        grid-template-columns: 1fr;
      }
    }
    
    /* Removal Specific Styles */
    .removal-reasons {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      margin-top: 16px;
    }
    
    .reason-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      border: 2px solid #eee;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .reason-option:hover {
      border-color: var(--primary);
    }
    
    .reason-option.selected {
      border-color: var(--primary);
      background-color: rgba(212, 0, 0, 0.05);
    }
    
    .reason-option input {
      display: none;
    }
    
    .reason-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: var(--glass);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
    }
    
    .customer-search {
      position: relative;
      margin-bottom: 20px;
    }
    
    .search-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 1px solid #eee;
      border-radius: 12px;
      box-shadow: var(--shadow);
      max-height: 200px;
      overflow-y: auto;
      z-index: 10;
      display: none;
    }
    
    .search-result {
      padding: 12px 16px;
      cursor: pointer;
      border-bottom: 1px solid #f5f5f5;
      transition: background 0.2s;
    }
    
    .search-result:hover {
      background: #f9f9f9;
    }
    
    .search-result:last-child {
      border-bottom: none;
    }
    
    .selected-customer {
      background: rgba(212, 0, 0, 0.05);
      border: 2px solid var(--primary);
      border-radius: 12px;
      padding: 20px;
      margin-top: 16px;
      display: none;
    }
    
    .customer-info {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 16px;
      align-items: start;
    }
    
    .customer-avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: var(--gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 600;
      font-size: 18px;
    }
    
    .customer-details h4 {
      margin-bottom: 8px;
      font-size: 18px;
    }
    
    .customer-details p {
      color: var(--muted);
      margin-bottom: 4px;
    }
    
    .removal-summary {
      background: rgba(231, 76, 60, 0.05);
      border: 1px solid rgba(231, 76, 60, 0.2);
      border-radius: 12px;
      padding: 20px;
      margin-top: 20px;
    }
    
    .summary-item {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .summary-item:last-child {
      border-bottom: none;
      font-weight: 600;
      font-size: 16px;
    }
    
    .warning-alert {
      background: rgba(231, 76, 60, 0.1);
      border: 1px solid rgba(231, 76, 60, 0.3);
      border-radius: 12px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }
    
    .warning-alert i {
      color: var(--danger);
      font-size: 20px;
    }
    
    .form-footer {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 24px;
      padding-top: 16px;
      border-top: 1px solid #eee;
    }

    /* Stats Cards */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 18px;
      margin-bottom: 24px;
    }
    
    .stat-card {
      background: white;
      border-radius: var(--radius);
      padding: 20px;
      box-shadow: var(--shadow);
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    .stat-icon {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }
    
    .stat-icon.danger {
      background: rgba(231, 76, 60, 0.1);
      color: var(--danger);
    }
    
    .stat-icon.warning {
      background: rgba(241, 196, 15, 0.1);
      color: var(--warning);
    }
    
    .stat-icon.success {
      background: rgba(46, 204, 113, 0.1);
      color: var(--success);
    }
    
    .stat-icon.info {
      background: rgba(52, 152, 219, 0.1);
      color: #3498db;
    }
    
    .stat-content h3 {
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 4px;
    }
    
    .stat-content p {
      color: var(--muted);
      font-size: 14px;
    }