/* style.css - GreenLink Glass Dashboard Theme (shared) */

/* Reset & base */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --green-900:#063826; --green-700:#0b6b3d; --accent:#66bb6a;
  --bg:#eef7ef; --glass: rgba(255,255,255,0.6); --muted:#6b7280;
  --card-shadow: 0 8px 28px rgba(3,10,7,0.06);
  --radius:14px;
  --max-width:1200px;
}
html,body{height:100%;font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;}
body{background:linear-gradient(180deg,#f7fbf7,#eef7ef);color:#072018;}

/* layout */
.app{display:flex;min-height:100vh;align-items:stretch}
.sidebar{
  width:260px;background:linear-gradient(180deg,var(--green-900),var(--green-700));
  color: #e9f7ee;padding:22px;display:flex;flex-direction:column;gap:16px;
  position:fixed;left:0;top:0;bottom:0;border-right:1px solid rgba(255,255,255,0.04);
  box-shadow: 8px 0 30px rgba(2,6,2,0.06);transform:translateX(0);transition:transform .28s ease;
  z-index:40;border-radius:0 12px 12px 0;
}
.sidebar.hide{transform:translateX(-320px)}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;
      background:linear-gradient(135deg,var(--green-700),var(--green-900));font-weight:800;color:#fff;font-size:18px}
.brand h1{font-size:18px;color: #e9f7ee}

/* nav */
.nav{margin-top:6px;display:flex;flex-direction:column;gap:8px}
.nav a{display:flex;gap:12px;align-items:center;padding:10px;border-radius:10px;color:rgba(255,255,255,0.95);
       text-decoration:none;font-weight:600;transition:background .18s, transform .08s}
.nav a:hover{background:rgba(255,255,255,0.04);transform:translateX(4px)}
.nav a.active{background:rgba(255,255,255,0.06)}

/* bottom actions */
.sidebar .actions{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.08);color:#eaffef;padding:10px;border-radius:10px}
.btn-primary{background:linear-gradient(90deg,var(--green-700),var(--green-900));color:#fff;padding:10px;border-radius:10px;border:0;font-weight:700}
.logout-btn{
  background:#0f5132;
  color:#fff;
  border:0;
  padding:10px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}
.logout-btn i{margin-right:8px}

/* Farmer sidebar look (matches dashboard-farmer navbar) */
body.farmer-theme .sidebar{
  width:240px;
  background:linear-gradient(180deg,#064e3b,#054433);
  color:#eaf8ee;
  padding:20px;
  gap:12px;
  box-shadow:6px 0 18px rgba(2,6,23,0.06);
  border-right:0;
  border-radius:0;
}
body.farmer-theme .brand h1{font-size:18px;color:#eaf8ee}
body.farmer-theme .nav{margin-top:10px;gap:6px}
body.farmer-theme .nav a{
  padding:10px;
  border-radius:8px;
  color:rgba(255,255,255,0.92);
}
body.farmer-theme .nav a:hover{background:rgba(255,255,255,0.04);transform:none}
body.farmer-theme .nav a.active{background:rgba(255,255,255,0.06)}
body.farmer-theme .main{margin-left:240px}
body.farmer-theme .actions{margin-top:auto;display:flex;flex-direction:column;gap:10px}
body.farmer-theme .actions .btn-primary{
  padding:10px 14px;
  border-radius:8px;
  font-weight:700;
}
body.farmer-theme .actions .logout-btn{
  padding:10px;
  border-radius:8px;
  font-weight:700;
}
body.farmer-theme .main,
body.farmer-theme .container,
body.farmer-theme .card,
body.farmer-theme .grid-3 > *,
body.farmer-theme .two-col > *,
body.farmer-theme .charts-grid > * {
  min-width: 0;
}
body.farmer-theme .card {
  width: 100%;
  max-width: 100%;
}
body.farmer-theme .hamburger-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid #cfe8cf;
  background:linear-gradient(180deg,#ffffff,#eef8ef);
  color:#064e3b;
  box-shadow:0 8px 18px rgba(4,120,87,0.16);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease;
}
body.farmer-theme .hamburger-btn i{font-size:20px}
body.farmer-theme .hamburger-btn:active{transform:scale(.96)}

/* main */
.main{margin-left:260px;flex:1;padding:28px;transition:margin .28s}
.container{max-width:var(--max-width);margin:0 auto}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}
.page-title{font-size:22px;font-weight:800;color:var(--green-900)}
.page-sub{color:var(--muted);font-size:13px}

/* cards & grid */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:linear-gradient(180deg,rgba(255,255,255,0.85),rgba(255,255,255,0.7));
      border-radius:var(--radius);padding:18px;box-shadow:var(--card-shadow);border:1px solid rgba(255,255,255,0.6)}
.kpi{font-size:13px;color:#0b3f32}
.kpi .value{font-size:22px;font-weight:800;color:var(--green-700);margin-top:8px}
.small{font-size:13px;color:var(--muted)}

/* charts area */
.charts-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}
.chart-card{height:320px;padding:12px}

/* tables */
.table-wrap{overflow:auto;border-radius:10px}
table{width:100%;border-collapse:collapse;background:transparent;table-layout:fixed}
thead th{
  background:linear-gradient(90deg,#f1fcf1,#eef7ef);
  text-align:left;
  padding:12px;
  font-weight:700;
  color:#07311f;
  white-space:normal;
  overflow-wrap:anywhere;
}
tbody td{
  padding:12px;
  border-bottom:1px solid rgba(3,10,6,0.04);
  white-space:normal;
  overflow-wrap:anywhere;
}

/* forms */
.form-row{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
input[type="text"], input[type="number"], select, textarea{
  padding:10px;border-radius:8px;border:1px solid #e6efe6;background:#fbfffb;font-size:14px
}
textarea{min-height:100px}

/* floating add button */
.fab{position:fixed;right:20px;bottom:20px;background:linear-gradient(90deg,var(--green-700),var(--green-900));
     color:#fff;border:0;padding:14px;border-radius:999px;box-shadow:0 10px 30px rgba(6,56,42,0.18);cursor:pointer;z-index:50}

/* modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(2,6,3,0.45);display:flex;align-items:center;justify-content:center;z-index:120}
.modal{width:100%;max-width:640px;background:#fff;border-radius:12px;padding:18px;box-shadow:0 18px 40px rgba(2,6,3,0.2)}

/* responsive */
@media (max-width:1024px){
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .charts-row{grid-template-columns:1fr}
}
@media (max-width:760px){
  .sidebar{position:fixed;left:-320px;top:0;bottom:0}
  .sidebar.open{transform:translateX(320px)}
  .main{margin-left:0;padding:18px}
  .topbar{flex-direction:column;align-items:flex-start;gap:12px}
}
@media (max-width:760px){
  body.farmer-theme .hamburger-btn{
    display:inline-flex;
    position:fixed;
    top:14px;
    right:14px;
    z-index:95;
  }
  body.farmer-theme .sidebar{
    left:0;
    right:0;
    top:0;
    bottom:auto;
    width:100%;
    max-height:86vh;
    overflow:auto;
    z-index:90;
    border-radius:0 0 16px 16px;
    transform:translateY(-112%);
    opacity:0;
    transition:transform .28s ease, opacity .2s ease;
  }
  body.farmer-theme .sidebar.open{
    transform:translateY(0);
    opacity:1;
  }
  body.farmer-theme .sidebar .spacer{display:none}
  body.farmer-theme .main{margin-left:0;padding:16px}
  body.farmer-theme div[style*="grid-template-columns:320px 1fr"]{
    grid-template-columns:1fr !important;
  }
  body.farmer-theme div[style*="display:flex;gap:12px;margin-top:12px"]{
    flex-direction:column !important;
  }
  body.farmer-theme.nav-open::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(2,6,23,0.35);
    z-index:80;
    pointer-events:none;
  }
}
/* ============================================
   GLOBAL THEME (INDUSTRY)
============================================ */
:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-500: #10b981;
  --muted: #6b7280;
  --bg: #f6f9f6;
  --white: #ffffff;
}

/* Reset */
body {
  margin: 0;
  font-family: Inter, system-ui, Arial;
  background: var(--bg);
}

a { text-decoration: none; }

/* ============================================
   DASHBOARD HEADER
============================================ */
.dashboard-header {
  height: 64px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(2,6,23,0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-name {
  font-weight: 700;
  color: var(--green-900);
  font-size: 18px;
}

.header-right .user-email {
  color: var(--muted);
  font-size: 14px;
}

/* ============================================
   SIDEBAR
============================================ */
.dashboard-sidebar {
  width: 260px;
  background: var(--green-900);
  color: #fff;
  position: fixed;
  top: 64px;
  bottom: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-header h2 {
  margin: 0;
  color: #dff7e9;
}

.sidebar-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.sidebar-nav li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e8fff2;
}

.sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-nav li a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
}

.sidebar-logout {
  margin-top: auto;
  width: 100%;
}

/* ============================================
   MAIN PAGE LAYOUT
============================================ */
.dashboard-app {
  display: flex;
}

.dashboard-main {
  margin-left: 260px;
  padding: 30px;
  padding-top: 90px;
}

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.page-top h1 {
  margin: 0;
  color: var(--green-900);
}

.page-actions {
  display: flex;
  gap: 10px;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
  padding: 9px 16px;
  background: linear-gradient(90deg, var(--green-700), var(--green-900));
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary.small {
  padding: 6px 12px;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: var(--green-900);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-outline:hover {
  background: #f1f5f1;
}

/* ============================================
   CARDS
============================================ */
.card {
  background: var(--white);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.04);
}

/* ============================================
   TABLES
============================================ */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}

.data-table th {
  background: #f1f5f1;
  padding: 12px;
  text-align: left;
  font-size: 14px;
  color: var(--green-900);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #374151;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ============================================
   FORMS
============================================ */
.report-form {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.form-group-inline {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--muted);
}

.form-group-inline input,
.form-group-inline select {
  margin-top: 6px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--green-700);
  font-size: 20px;
}

@media (max-width: 760px) {
  .mobile-menu-btn {
    display: block;
  }

  .dashboard-sidebar {
    transform: translateX(-300px);
    transition: 0.3s;
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 90px 14px;
  }
}

/* Industry pages aligned to farmer-style navbar/sidebar */
body.industry-theme .sidebar,
body.industry-theme .dashboard-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #064e3b, #054433);
  color: #eaf8ee;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 6px 0 18px rgba(2, 6, 23, 0.06);
  border-right: 0;
  border-radius: 0;
}
body.industry-theme .main,
body.industry-theme .dashboard-main {
  margin-left: 240px;
  padding-top: 30px;
}
body.industry-theme .sidebar-header h2,
body.industry-theme .brand h1 {
  color: #eaf8ee;
  font-size: 18px;
}
body.industry-theme .sidebar-header p {
  color: rgba(234, 248, 238, 0.75);
}
body.industry-theme .sidebar-nav {
  margin-top: 10px;
}
body.industry-theme .sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
}
body.industry-theme .sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.04);
}
body.industry-theme .sidebar-nav li a.active {
  background: rgba(255, 255, 255, 0.06);
}
body.industry-theme .mobile-menu-btn,
body.industry-theme .hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #cfe8cf;
  background: linear-gradient(180deg, #ffffff, #eef8ef);
  color: #064e3b;
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.16);
  cursor: pointer;
}
body.industry-theme .mobile-menu-btn i,
body.industry-theme .hamburger-btn i {
  font-size: 20px;
}
body.industry-theme .dashboard-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
}
body.industry-theme .sidebar,
body.industry-theme .dashboard-sidebar {
  top: 0;
}
body.industry-theme .industry-menu-fab {
  display: none;
}

@media (max-width: 760px) {
  .table-wrap,
  .table-wrapper {
    overflow-x: hidden;
  }
  table,
  .data-table {
    width: 100%;
    table-layout: fixed;
  }
  table th,
  table td,
  .data-table th,
  .data-table td {
    font-size: 12px;
    padding: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #mobileMenuBtn {
    position: fixed !important;
    top: 14px;
    right: 14px;
    left: auto !important;
    z-index: 1000;
  }
  body.industry-theme .mobile-menu-btn,
  body.industry-theme .hamburger-btn {
    display: inline-flex;
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 95;
  }
  body.industry-theme .sidebar,
  body.industry-theme .dashboard-sidebar {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    max-height: 86vh;
    overflow: auto;
    z-index: 90;
    border-radius: 0 0 16px 16px;
    transform: translateY(-112%);
    opacity: 0;
    transition: transform .28s ease, opacity .2s ease;
  }
  body.industry-theme .sidebar.open,
  body.industry-theme .dashboard-sidebar.open {
    transform: translateY(0);
    opacity: 1;
  }
  body.industry-theme .main,
  body.industry-theme .dashboard-main {
    margin-left: 0;
    padding: 16px;
  }
  body.industry-theme .industry-menu-fab {
    display: inline-flex;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 95;
  }
  body.industry-theme.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.35);
    z-index: 80;
    pointer-events: none;
  }
}

/* Pages that should keep horizontal table scrolling */
body.table-scroll-page table,
body.table-scroll-page .data-table {
  min-width: 0;
  table-layout: fixed;
}
@media (max-width: 760px) {
  body.table-scroll-page table,
  body.table-scroll-page .data-table {
    min-width: 720px;
    table-layout: auto;
  }
  body.table-scroll-page .table-wrap,
  body.table-scroll-page .table-wrapper,
  body.table-scroll-page .card {
    overflow-x: auto !important;
  }
}

/* Global mobile readability tuning */
@media (max-width: 760px) {
  html { font-size: 15px; }
  body { line-height: 1.45; }
  .container { max-width: 100%; }
  .main,
  .dashboard-main { padding: 14px !important; }
  .page-title { font-size: 1.2rem; line-height: 1.25; }
  .subtitle,
  .page-sub,
  .muted,
  .small { font-size: 0.8rem; line-height: 1.35; }
  .card { padding: 14px; border-radius: 12px; }
  .btn-primary,
  .btn-outline,
  .logout-btn,
  .btn { padding: 9px 12px; font-size: 0.88rem; }
  .kpi .value,
  .kpi-value,
  .industry-value,
  .stat { font-size: 1.25rem !important; }
  .charts-row,
  .charts-grid,
  .grid-3,
  .industry-cards,
  .kpis { gap: 12px; }
  table th,
  table td,
  .data-table th,
  .data-table td {
    font-size: 0.76rem;
    line-height: 1.25;
  }
}

/* Admin pages: mobile sidebar drops down from top */
@media (max-width: 760px) {
  body.admin-theme .mobile-menu-btn,
  body.admin-theme .hamburger-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 95;
  }
  body.admin-theme .sidebar {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    max-height: 86vh;
    overflow: auto;
    z-index: 90;
    border-radius: 0 0 16px 16px;
    transform: translateY(-112%);
    opacity: 0;
    transition: transform .28s ease, opacity .2s ease;
  }
  body.admin-theme .sidebar.open {
    transform: translateY(0);
    opacity: 1;
  }
  body.admin-theme .main {
    margin-left: 0;
    padding: 16px;
  }
  body.admin-theme.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.35);
    z-index: 80;
    pointer-events: none;
  }
}

/* Tablet behavior: collapse sidebar horizontally; keep desktop fixed */
@media (min-width: 761px) and (max-width: 1199px) {
  body.farmer-theme .hamburger-btn,
  body.industry-theme .mobile-menu-btn,
  body.industry-theme .hamburger-btn,
  body.admin-theme .mobile-menu-btn,
  body.admin-theme .hamburger-btn {
    display: inline-flex;
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 1000;
  }

  body.farmer-theme .sidebar,
  body.industry-theme .sidebar,
  body.industry-theme .dashboard-sidebar,
  body.admin-theme .sidebar {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 240px;
    max-height: none;
    border-radius: 0 12px 12px 0;
    transform: translateX(-280px);
    opacity: 1;
    transition: transform .28s ease;
    z-index: 90;
  }
  body.farmer-theme .sidebar.open,
  body.industry-theme .sidebar.open,
  body.industry-theme .dashboard-sidebar.open,
  body.admin-theme .sidebar.open {
    transform: translateX(0);
  }

  body.farmer-theme .main,
  body.industry-theme .main,
  body.industry-theme .dashboard-main,
  body.admin-theme .main {
    margin-left: 0;
    padding: 18px;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.35);
    z-index: 80;
    pointer-events: none;
  }
}

/* Industry dashboard visual refresh */
body.industry-theme {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 26%),
    radial-gradient(circle at left 18%, rgba(102, 187, 106, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fcf8 0%, #eef7ef 48%, #e7f2e8 100%);
}

body.industry-theme .main,
body.industry-theme .dashboard-main {
  padding: 32px;
}

body.industry-theme .container {
  max-width: 1240px;
}

body.industry-theme .page-header,
body.industry-theme .topbar,
body.industry-theme .page-top,
body.industry-theme .industry-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(110, 231, 183, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(6, 78, 59, 0.98), rgba(11, 107, 61, 0.92));
  border: 1px solid rgba(187, 247, 208, 0.22);
  box-shadow: 0 24px 44px rgba(6, 78, 59, 0.18);
  color: #fff;
}

body.industry-theme .page-header::before,
body.industry-theme .topbar::before,
body.industry-theme .page-top::before,
body.industry-theme .industry-topbar::before,
body.industry-theme .page-header::after,
body.industry-theme .topbar::after,
body.industry-theme .page-top::after,
body.industry-theme .industry-topbar::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

body.industry-theme .page-header::before,
body.industry-theme .topbar::before,
body.industry-theme .page-top::before,
body.industry-theme .industry-topbar::before {
  width: 180px;
  height: 180px;
  top: -90px;
  right: -30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

body.industry-theme .page-header::after,
body.industry-theme .topbar::after,
body.industry-theme .page-top::after,
body.industry-theme .industry-topbar::after {
  width: 120px;
  height: 120px;
  bottom: -56px;
  left: 26px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0));
}

body.industry-theme .page-header > *,
body.industry-theme .topbar > *,
body.industry-theme .page-top > *,
body.industry-theme .industry-topbar > * {
  position: relative;
  z-index: 1;
}

body.industry-theme .page-title,
body.industry-theme .page-top h1,
body.industry-theme .industry-topbar h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.02em;
}

body.industry-theme .subtitle,
body.industry-theme .page-sub,
body.industry-theme .page-top p,
body.industry-theme .industry-topbar p {
  color: rgba(236, 255, 243, 0.82);
  font-size: 14px;
}

body.industry-theme .page-header .mobile-menu-btn,
body.industry-theme .page-header .hamburger-btn,
body.industry-theme .topbar .mobile-menu-btn,
body.industry-theme .topbar .hamburger-btn,
body.industry-theme .page-top .mobile-menu-btn,
body.industry-theme .page-top .hamburger-btn,
body.industry-theme .industry-topbar .mobile-menu-btn,
body.industry-theme .industry-topbar .hamburger-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: none;
}

body.industry-theme .page-header .mobile-menu-btn:hover,
body.industry-theme .page-header .hamburger-btn:hover,
body.industry-theme .topbar .mobile-menu-btn:hover,
body.industry-theme .topbar .hamburger-btn:hover,
body.industry-theme .page-top .mobile-menu-btn:hover,
body.industry-theme .page-top .hamburger-btn:hover,
body.industry-theme .industry-topbar .mobile-menu-btn:hover,
body.industry-theme .industry-topbar .hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.industry-theme .card,
body.industry-theme .section-card,
body.industry-theme .credit-card,
body.industry-theme .credit-listing,
body.industry-theme .quick-card,
body.industry-theme .transactions,
body.industry-theme .ai-insights {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  border: 1px solid rgba(205, 236, 215, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 249, 0.9));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.industry-theme .card::before,
body.industry-theme .section-card::before,
body.industry-theme .credit-card::before,
body.industry-theme .credit-listing::before,
body.industry-theme .quick-card::before,
body.industry-theme .transactions::before,
body.industry-theme .ai-insights::before,
body.industry-theme .card::after,
body.industry-theme .section-card::after,
body.industry-theme .credit-card::after,
body.industry-theme .credit-listing::after,
body.industry-theme .quick-card::after,
body.industry-theme .transactions::after,
body.industry-theme .ai-insights::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

body.industry-theme .card::before,
body.industry-theme .section-card::before,
body.industry-theme .credit-card::before,
body.industry-theme .credit-listing::before,
body.industry-theme .quick-card::before,
body.industry-theme .transactions::before,
body.industry-theme .ai-insights::before {
  width: 138px;
  height: 138px;
  top: -72px;
  right: -18px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0));
}

body.industry-theme .card::after,
body.industry-theme .section-card::after,
body.industry-theme .credit-card::after,
body.industry-theme .credit-listing::after,
body.industry-theme .quick-card::after,
body.industry-theme .transactions::after,
body.industry-theme .ai-insights::after {
  width: 96px;
  height: 96px;
  bottom: -44px;
  left: 16px;
  background: radial-gradient(circle, rgba(6, 78, 59, 0.08), rgba(6, 78, 59, 0));
}

body.industry-theme .card > *,
body.industry-theme .section-card > *,
body.industry-theme .credit-card > *,
body.industry-theme .credit-listing > *,
body.industry-theme .quick-card > *,
body.industry-theme .transactions > *,
body.industry-theme .ai-insights > * {
  position: relative;
  z-index: 1;
}

body.industry-theme .card:hover,
body.industry-theme .section-card:hover,
body.industry-theme .credit-listing:hover,
body.industry-theme .quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
}

body.industry-theme .summary-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  border: 1px solid rgba(198, 233, 209, 0.95);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

body.industry-theme .summary-card::before {
  content: "";
  position: absolute;
  top: -54px;
  right: -16px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0));
  pointer-events: none;
}

body.industry-theme .summary-card.highlight::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

body.industry-theme .kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5d7669;
}

body.industry-theme .kpi-value {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  color: #064e3b;
}

body.industry-theme .quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

body.industry-theme .quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: #063826;
  font-weight: 700;
}

body.industry-theme .quick-card i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.12);
  color: #0b6b3d;
  font-size: 20px;
}

body.industry-theme .table-wrap,
body.industry-theme .table-wrapper,
body.industry-theme .contributions-table {
  border-radius: 18px;
  border: 1px solid rgba(226, 240, 231, 0.8);
  background: rgba(255, 255, 255, 0.48);
}

body.industry-theme thead th,
body.industry-theme .data-table th {
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.96), rgba(236, 252, 243, 0.84));
  color: #325546;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.industry-theme tbody tr:hover,
body.industry-theme .data-table tbody tr:hover {
  background: rgba(240, 253, 244, 0.7);
}

body.industry-theme input[type="text"],
body.industry-theme input[type="number"],
body.industry-theme input[type="email"],
body.industry-theme input[type="password"],
body.industry-theme input[type="tel"],
body.industry-theme select,
body.industry-theme textarea,
body.industry-theme .input {
  border-radius: 12px;
  border: 1px solid rgba(148, 204, 164, 0.4);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.industry-theme input[type="text"]:focus,
body.industry-theme input[type="number"]:focus,
body.industry-theme input[type="email"]:focus,
body.industry-theme input[type="password"]:focus,
body.industry-theme input[type="tel"]:focus,
body.industry-theme select:focus,
body.industry-theme textarea:focus,
body.industry-theme .input:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  background: #fff;
}

body.industry-theme .label,
body.industry-theme .form-row label {
  color: #1f3b30;
  font-weight: 700;
}

body.industry-theme .btn-primary,
body.industry-theme .btn,
body.industry-theme .offset-btn,
body.industry-theme .report-btn,
body.industry-theme .fab {
  background: linear-gradient(90deg, #0d8d60, #064e3b);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(11, 107, 61, 0.18);
}

body.industry-theme .btn-outline,
body.industry-theme .btn-ghost,
body.industry-theme .report-btn.secondary {
  border-radius: 12px;
  border: 1px solid rgba(11, 107, 61, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #0b6b3d;
}

body.industry-theme .history-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #425b4f;
}

body.industry-theme .danger {
  background: linear-gradient(90deg, #dc2626, #991b1b);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(153, 27, 27, 0.18);
}

body.industry-theme .marketplace-filter {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(205, 236, 215, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 253, 249, 0.86));
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

body.industry-theme .credit-description {
  background: rgba(243, 250, 245, 0.92);
  border: 1px solid rgba(205, 236, 215, 0.8);
  border-radius: 12px;
}

/* Shared utility classes used across dashboard pages */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.kpi-item {
  padding: 16px;
  border-radius: 16px;
  background: rgba(248, 253, 249, 0.84);
  border: 1px solid rgba(205, 236, 215, 0.72);
}
.split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-badge.pending,
.status-badge.new {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.status-badge.verified,
.status-badge.accepted,
.status-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #0b6b3d;
}
.status-badge.rejected,
.status-badge.cancelled {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}
.status-badge.support {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

@media (max-width: 1024px) {
  body.industry-theme .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.industry-theme .main,
  body.industry-theme .dashboard-main {
    padding: 14px !important;
  }

  body.industry-theme .page-header,
  body.industry-theme .topbar,
  body.industry-theme .page-top,
  body.industry-theme .industry-topbar {
    padding: 18px;
    border-radius: 20px;
  }

  body.industry-theme .page-title,
  body.industry-theme .page-top h1,
  body.industry-theme .industry-topbar h2 {
    font-size: 24px;
  }

  body.industry-theme .quick-links {
    grid-template-columns: 1fr;
  }

  body.industry-theme .kpi-value {
    font-size: 26px;
  }
}
