
/* Optima v2 Brandkit CSS
   Fonts: Roboto (Light 300, Regular 400, Medium 500)
   Palette:
     Primary: #8174BA
     Mist:    #F1F1F1
     Blush:   #FAF1F2
     Rose:    #EBC7CB
     Gray:    #AEAEAE
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

:root{
  --opt-primary: #8174BA;
  --opt-mist: #F1F1F1;
  --opt-blush: #FAF1F2;
  --opt-rose: #EBC7CB;
  --opt-gray: #AEAEAE;

  --opt-text: #1f2937;
  --opt-text-muted: #6b7280;
  --opt-bg: #ffffff;
  --opt-radius: 16px;
  --opt-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

*{ box-sizing: border-box; }
html, body{
  margin: 0;
  padding: 0;
  background: var(--opt-mist);
  color: var(--opt-text);
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  line-height: 1.45;
}

/* Layout */
.opt-container{
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
}

.opt-card{
  background: var(--opt-bg);
  border-radius: var(--opt-radius);
  box-shadow: var(--opt-shadow);
  padding: 20px;
}

/* Top Nav */
.opt-topnav{
  background: var(--opt-primary);
  color: white;
  padding: 14px 0;
  box-shadow: var(--opt-shadow);
}
.opt-topnav .opt-container{
  display: flex;
  align-items: center;
  gap: 16px;
}
.opt-brand{
  font-weight: 500;
  letter-spacing: .4px;
  font-size: 18px;
}
.opt-navlinks{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.opt-navlinks a{
  color: white;
  text-decoration: none;
  opacity: 0.95;
  padding: 8px 12px;
  border-radius: 999px;
}
.opt-navlinks a:hover{
  background: rgba(255,255,255,.12);
}

/* Page Header */
.opt-page-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
}
.opt-page-title h1{
  font-size: 24px;
  margin: 0;
  font-weight: 500;
}
.opt-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}
.opt-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--opt-primary);
  background: white;
  color: var(--opt-primary);
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.opt-btn.primary{
  background: var(--opt-primary);
  color: white;
  border-color: var(--opt-primary);
}
.opt-btn.ghost{
  border-color: var(--opt-gray);
  color: var(--opt-text);
}

/* Tabs */
.opt-tabs{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}
.opt-tab{
  background: white;
  border: 1px solid var(--opt-gray);
  color: var(--opt-text);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
}
.opt-tab.active{
  background: var(--opt-primary);
  border-color: var(--opt-primary);
  color: white;
}

/* Filter bar */
.opt-filter{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.opt-input, .opt-select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--opt-gray);
  background: white;
}
.opt-input:focus, .opt-select:focus{
  outline: none;
  border-color: var(--opt-primary);
  box-shadow: 0 0 0 3px rgba(129,116,186,.15);
}

/* Table */
.opt-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.opt-thead th{
  text-align: left;
  font-weight: 500;
  color: var(--opt-text-muted);
  font-size: 13px;
  padding: 10px 12px;
}
.opt-row{
  background: white;
  border: 1px solid var(--opt-mist);
  border-radius: 12px;
  box-shadow: var(--opt-shadow);
}
.opt-row td{
  padding: 12px;
  vertical-align: middle;
}
.opt-badge{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--opt-blush);
  border: 1px solid var(--opt-rose);
  color: #7a2e40;
}
.opt-kpi{
  font-weight: 500;
}
.opt-money{
  font-variant-numeric: tabular-nums;
}

/* Footer actions */
.opt-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.opt-pagination{
  display: flex;
  gap: 6px;
}
.opt-chip{
  border: 1px solid var(--opt-gray);
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
}
.opt-chip.active{
  background: var(--opt-primary);
  border-color: var(--opt-primary);
  color: white;
}

/* Utilities */
.mt-2{ margin-top: 8px; }
.mt-3{ margin-top: 12px; }
.mt-4{ margin-top: 16px; }
.w-full{ width: 100%; }
.hidden{ display: none; }

/* Alerts */
.opt-alert{
  background: var(--opt-blush);
  border: 1px solid var(--opt-rose);
  color: #6d2435;
  padding: 12px 14px;
  border-radius: 12px;
}

/* Menu additions */
.opt-menu { padding: 8px; }
.opt-menu-group + .opt-menu-group { border-top: 1px solid var(--opt-mist); }
.opt-menu-header { width:100%; background:transparent; border:none; padding:12px 14px; text-align:left; font-weight:500; cursor:pointer; }
.opt-menu-header-inner{ display:flex; align-items:center; justify-content:space-between; }
.opt-menu-list { display:grid; gap:6px; padding:6px 10px 12px 12px; }
.opt-menu-link { display:block; padding:8px 10px; border-radius:10px; text-decoration:none; color:var(--opt-text); border:1px solid transparent; }
.opt-menu-link:hover { background: var(--opt-mist); }
.opt-menu-link.active { background: var(--opt-primary); color:white; }
