/* Vue Notus Design System Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500;700&display=swap');

:root {
  --notus-bg: #F1F5F9;
  --notus-header-bg: #059669; /* Emerald 600 */
  --notus-header-bg-gradient: linear-gradient(135deg, #047857 0%, #10B981 100%);
  --notus-sidebar-bg: #FFFFFF;
  --notus-card-bg: #FFFFFF;
  --notus-text-main: #1E293B;
  --notus-text-muted: #64748B;
  --notus-border: #E2E8F0;
  
  --notus-emerald: #10B981;
  --notus-emerald-hover: #059669;
  --notus-rose: #F43F5E;
  --notus-amber: #F59E0B;
  --notus-blue: #0284C7;
  --notus-slate: #64748B;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--notus-bg);
  color: var(--notus-text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar Styles */
.sidebar {
  width: 260px;
  background-color: var(--notus-sidebar-bg);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 1px solid var(--notus-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  border-bottom: 1px solid var(--notus-border);
  letter-spacing: -0.5px;
}

.sidebar-brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.sidebar-menu {
  padding: 16px 0;
  overflow-y: auto;
  flex: 1;
}

.menu-header {
  padding: 12px 24px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li a {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.menu-list li a:hover,
.menu-list li.active a {
  color: var(--notus-emerald);
  background-color: #ECFDF5;
  border-left: 4px solid var(--notus-emerald);
  font-weight: 600;
}

.menu-list li a i {
  width: 24px;
  font-size: 15px;
  margin-right: 8px;
}

/* Main Layout Wrapper */
.main-wrapper {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navbar Banner */
.top-navbar {
  background: var(--notus-header-bg-gradient);
  padding: 24px 32px 80px 32px;
  color: #FFFFFF;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.top-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header-title h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.top-navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-search-box {
  position: relative;
}

.nav-search-box input {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  padding: 8px 14px 8px 36px;
  border-radius: 20px;
  color: #0F172A;
  font-size: 12px;
  outline: none;
  width: 220px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-search-box input::placeholder {
  color: #94A3B8;
}

.nav-search-box input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  width: 260px;
}

.nav-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 13px;
}

.user-avatar-menu img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

/* Content Area */
.main-content {
  padding: 0 32px 32px 32px;
  margin-top: -60px;
  flex: 1;
}

/* Notus Form Layout Container */
.notus-form-wrapper {
  background: var(--notus-card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--notus-border);
  padding: 24px;
  margin-bottom: 24px;
}

.notus-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid #F1F5F9;
}

.notus-form-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Grid (3 Columns) */
.notus-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .notus-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Sections Inside Form */
.notus-card-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.notus-card-title {
  background: #F8FAFC;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E2E8F0;
  text-transform: uppercase;
}

.notus-card-body {
  padding: 16px;
}

/* Clean Pixel-Perfect Form Input Rows */
.notus-form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
  width: 100%;
}

.notus-form-label {
  width: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 8px;
  line-height: 1.2;
}

.notus-form-control {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

textarea.notus-form-control {
  resize: vertical;
  min-height: 52px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}

/* HIGH CONTRAST COLOR DIFFERENCE FOR ENABLED VS DISABLED STATES */
.notus-form-control:disabled,
.notus-form-control[disabled] {
  background-color: #E2E8F0 !important;
  border: 1px solid #CBD5E1 !important;
  color: #94A3B8 !important;
  cursor: not-allowed;
  opacity: 0.85;
}

.notus-form-control:not(:disabled) {
  background-color: #FFFFFF !important;
  border: 1.5px solid #10B981 !important;
  color: #0F172A !important;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.notus-form-control:not(:disabled):focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.2);
}

/* Mini Grid Fields for Financial Calculations */
.mini-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.mini-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.mini-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.mini-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

.mini-field-group {
  display: flex;
  flex-direction: column;
}

.mini-field-group label {
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.notus-number-input {
  text-align: right;
  font-family: 'Roboto Mono', monospace;
  padding: 6px 8px;
  font-size: 11px;
}

/* Action Buttons Bar */
.notus-action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  margin-top: 16px;
}

.btn-notus {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-notus-emerald { background: var(--notus-emerald); color: #FFF; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2); }
.btn-notus-emerald:hover { background: var(--notus-emerald-hover); transform: translateY(-1px); }

.btn-notus-rose { background: var(--notus-rose); color: #FFF; box-shadow: 0 2px 4px rgba(244, 63, 94, 0.2); }
.btn-notus-rose:hover { background: #E11D48; transform: translateY(-1px); }

.btn-notus-amber { background: var(--notus-amber); color: #FFF; }
.btn-notus-amber:hover { background: #D97706; }

.btn-notus-pink { background: #EC4899; color: #FFF; }
.btn-notus-pink:hover { background: #DB2777; }

.btn-notus-slate { background: var(--notus-slate); color: #FFF; }
.btn-notus-slate:hover { background: #475569; }

/* Terbilang Box */
.notus-terbilang-box {
  background: #EFF6FF !important;
  border: 1px solid #BFDBFE !important;
  color: #1D4ED8 !important;
  font-style: italic;
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
  font-size: 11px;
  box-sizing: border-box;
  resize: none;
}

/* ========================================================== */
/* STUNNING & MODERN ATTRACTIVE DATA TABLE GRID DESIGN */
/* ========================================================== */

.notus-grid-container {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.notus-grid-toolbar {
  padding: 16px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notus-grid-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Category Quick Filter Tabs */
.notus-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-tab-btn:hover {
  border-color: #10B981;
  color: #047857;
  background: #ECFDF5;
}

.filter-tab-btn.active {
  background: #047857;
  color: #FFFFFF;
  border-color: #047857;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

/* High Quality Table Styling */
.notus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.notus-table thead tr {
  background: linear-gradient(90deg, #F8FAFC 0%, #F1F5F9 100%);
}

.notus-table th {
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  padding: 14px 16px;
  border-bottom: 2px solid #E2E8F0;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.notus-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  vertical-align: middle;
  transition: background-color 0.15s ease;
}

.notus-table tbody tr {
  transition: all 0.2s ease;
}

.notus-table tbody tr:hover {
  background-color: #F0FDF4 !important; /* Soft Emerald Tint */
}

.notus-table tbody tr:hover td {
  color: #0F172A;
}

.notus-table tr.selected {
  background-color: #ECFDF5 !important;
  border-left: 4px solid #10B981;
}

/* Activity Code Mono Pill */
.code-pill {
  display: inline-block;
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
  color: #0369A1;
  border: 1px solid #7DD3FC;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: -0.3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Colorful Category Badges for Rincian */
.rinci-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
}

.badge-honorarium {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #6EE7B7;
}

.badge-narasumber {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.badge-lembur {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid #93C5FD;
}

.badge-transport {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #D8B4FE;
}

.badge-harian {
  background: #CCFBF1;
  color: #0F766E;
  border: 1px solid #5EEAD4;
}

.badge-default {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

/* Footer Counter Bar */
.notus-grid-footer {
  padding: 12px 20px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 20px 32px;
  background-color: var(--notus-bg);
  border-top: 1px solid var(--notus-border);
  font-size: 12px;
  color: var(--notus-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom Alert Message Box */
#alertBox {
  display: none;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

#alertBox.success {
  background-color: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

#alertBox.error {
  background-color: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

/* Modal Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: #0F172A;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748B;
  cursor: pointer;
}
