/* ==========================================================================
   MY Apps OrionRe - Exact 1:1 Pixel-Perfect UI Matching User Design Image
   PT Orion Reasuransi Indonesia
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --bg-body: #f4f7fb;
  --bg-card: #ffffff;
  --border-card: #e5e7eb;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --color-produksi: #dc2626;
  --color-finance: #008080;
  --color-hcga: #d97706;
  --color-it: #1d4ed8;

  --box-produksi-bg: #ffe4e6;
  --box-finance-bg: #d1fae5;
  --box-hcga-bg: #fef3c7;
  --box-it-bg: #dbeafe;
}

[data-bs-theme="dark"] {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --border-card: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* 1. Header Topbar */
.exact-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-bs-theme="dark"] .exact-topbar {
  background: #1e293b;
  border-color: #334155;
}

.brand-logo-exact {
  height: 38px;
  width: auto;
}

.datetime-text-exact {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

/* 2. Title & Search Controls Section */
.title-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.main-portal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.search-box-exact {
  position: relative;
  width: 280px;
}

.search-box-exact input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .search-box-exact input {
  background: #1e293b;
  border-color: #334155;
}

.search-box-exact input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-box-exact i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* 3. Category Underline Tabs Nav */
.category-tabs-exact {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

[data-bs-theme="dark"] .category-tabs-exact {
  border-color: #334155;
}

.tab-link-exact {
  background: none;
  border: none;
  padding: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.tab-link-exact:hover {
  color: var(--text-primary);
}

.tab-link-exact.active {
  color: var(--text-primary);
  font-weight: 700;
}

.tab-link-exact.active::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #1e293b;
  border-radius: 2px;
}

[data-bs-theme="dark"] .tab-link-exact.active::after {
  background-color: #38bdf8;
}

/* 4. Exact 1:1 Application Cards Grid */
.app-card-exact {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Card Header Top Row */
.card-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  row-gap: 0.4rem;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

/* Square Icon Box */
.icon-box-square {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.icon-box-square img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.box-bg-produksi {
  background: var(--box-produksi-bg);
  color: var(--color-produksi);
}

.box-bg-finance {
  background: var(--box-finance-bg);
  color: var(--color-finance);
}

.box-bg-hcga {
  background: var(--box-hcga-bg);
  color: var(--color-hcga);
}

.box-bg-it {
  background: var(--box-it-bg);
  color: var(--color-it);
}

/* Oval Pill Category Badge */
.pill-badge-exact {
  border-radius: 50px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
}

.pill-produksi {
  background: var(--color-produksi);
}

.pill-finance {
  background: var(--color-finance);
}

.pill-hcga {
  background: var(--color-hcga);
}

.pill-it {
  background: var(--color-it);
}

/* Status Indicator Right */
.status-active-tag {
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.dot-green {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

/* Status Inactive */
.status-inactive-tag {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.dot-gray {
  width: 6px;
  height: 6px;
  background-color: #9ca3af;
  border-radius: 50%;
  display: inline-block;
}

/* Card Title */
.title-app-exact {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
  text-align: left;
  line-height: 1.3;
}

/* Full Width Launch Button */
.btn-launch-full {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  color: #1f2937;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .btn-launch-full {
  background: #334155;
  border-color: #475569;
  color: #f8fafc;
}

.btn-launch-full:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

[data-bs-theme="dark"] .btn-launch-full:hover {
  background: #475569;
  color: #ffffff;
}

/* Footer */
.exact-footer {
  padding: 1.5rem 0;
  margin-top: 3.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-card);
}