/* ==========================================================================
   Featuron Engineering - Unified Dashboard Styling
   ========================================================================== */

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

body {
  font-family: 'Barlow', Arial, sans-serif;
  background: #f4f6f8;
  color: #1a202c;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.dash-header {
  background: #047A3D;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand-section {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo .dot {
  color: #6FB426;
}

.tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dash-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.dash-nav a.active {
  background: #fff;
  color: #047A3D;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6FB426;
  box-shadow: 0 0 6px #6FB426;
}

/* Main Container */
.dash-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px;
  flex: 1;
}

/* Hero Section */
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

/* Three Hero Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.report-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.report-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.card-service::before { background: #047A3D; }
.card-quotation::before { background: #0284c7; }
.card-invoice::before { background: #d97706; }

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 28px;
  line-height: 1;
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-service { background: #e6f4ea; color: #047A3D; }
.badge-quotation { background: #e0f2fe; color: #0284c7; }
.badge-invoice { background: #fef3c7; color: #b45309; }

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 20px;
}

.db-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 0;
}

.btn-primary-service {
  background: #047A3D;
  color: #fff;
  flex: 1;
}
.btn-primary-service:hover { background: #036130; }

.btn-primary-quotation {
  background: #0284c7;
  color: #fff;
  flex: 1;
}
.btn-primary-quotation:hover { background: #0369a1; }

.btn-primary-invoice {
  background: #d97706;
  color: #fff;
  flex: 1;
}
.btn-primary-invoice:hover { background: #b45309; }

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 35px;
}

.stat-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Recent Documents Section */
.recent-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.table-responsive {
  overflow-x: auto;
}

table.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.doc-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

table.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

table.doc-table tr:hover td {
  background: #f8fafc;
}

.type-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.pill-sr { background: #e6f4ea; color: #047A3D; }
.pill-qt { background: #e0f2fe; color: #0284c7; }
.pill-inv { background: #fef3c7; color: #b45309; }

.status-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pass { color: #047A3D; }
.status-fail { color: #d32f2f; }
.status-paid { color: #047A3D; }
.status-unpaid { color: #b45309; }

.btn-table-action {
  font-size: 12px;
  color: #047A3D;
  text-decoration: none;
  font-weight: 600;
}

.btn-table-action:hover {
  text-decoration: underline;
}

/* Footer */
.dash-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: auto;
}

