/* public/css/profit-dashboard.css — Nova Store Profit Engine dashboard */

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; color: #fff; margin: 0 0 0.25rem; }
.page-subtitle { color: #888; font-size: 0.95rem; margin: 0; }

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.kpi-card {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.kpi-card.accent {
  border-color: #00F2EA;
  background: linear-gradient(135deg, #0a1a2e 0%, #1a2a3e 100%);
}
.kpi-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.kpi-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.kpi-card.accent .kpi-value { color: #00F2EA; }

/* Section Cards */
.section-card {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-card h2 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 1rem;
}

/* Split Bar */
.split-bar {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.split-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  transition: width 0.5s ease;
}
.split-segment.nova { background: #00F2EA; color: #0a0a1e; }
.split-segment.creator { background: #FF4D6D; }
.split-segment.brand { background: #6366f1; }
.split-note { color: #666; font-size: 0.8rem; margin: 0; }

/* Preview Form */
.preview-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.input-field {
  background: #0f0f23;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}
.input-field.input-sm { flex: 0; min-width: 80px; width: 80px; }
.input-field:focus { outline: none; border-color: #00F2EA; }
.btn-primary {
  background: #00F2EA;
  color: #0a0a1e;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-primary:hover { background: #00d4cd; }

/* Preview Result */
.preview-result {
  margin-top: 1rem;
  padding: 1rem;
  background: #0f0f23;
  border-radius: 8px;
  border: 1px solid #2a2a4a;
}
.preview-result .pr-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}
.preview-result .pr-row .pr-label { color: #888; }
.preview-result .pr-row .pr-value { color: #fff; font-weight: 600; }
.preview-result .pr-row.highlight .pr-value { color: #00F2EA; }
.preview-result .pr-divider {
  border-top: 1px solid #2a2a4a;
  margin: 0.5rem 0;
}

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  color: #888;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a4a;
}
.data-table td {
  padding: 0.6rem 0.5rem;
  color: #ccc;
  border-bottom: 1px solid #1a1a2e;
}
.data-table tr:hover td { background: #0f0f23; }
.empty-state { text-align: center; color: #555; padding: 2rem !important; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-vendor { background: #2a2a4a; color: #aaa; }
.badge-brand { background: #6366f133; color: #818cf8; }
.badge-pending { background: #f59e0b33; color: #f59e0b; }
.badge-completed { background: #10b98133; color: #10b981; }

@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-form { flex-direction: column; }
  .input-field.input-sm { width: 100%; min-width: 100%; }
}
