/* ==========================================================================
   HR DESK 360 / WILD SCENT HRMS - ENTERPRISE DASHBOARD STYLES
   ========================================================================== */

:root {
  --hrms-navy: #1e2638;
  --hrms-navy-dark: #171d2b;
  --hrms-navy-light: #28334a;
  --hrms-sidebar-hover: #263147;
  --hrms-teal: #1abc9c;
  --hrms-teal-hover: #16a085;
  --hrms-cyan: #00bcd4;
  --hrms-blue: #007bff;
  --hrms-light-blue: #03a9f4;
  --hrms-green: #2ecc71;
  --hrms-lime: #8bc34a;
  --hrms-orange: #ff9800;
  --hrms-coral: #ff5722;
  --hrms-red: #f44336;
  --hrms-pink: #e91e63;
  --hrms-bg: #f4f6f9;
  --hrms-card-bg: #ffffff;
  --hrms-text-dark: #2c384e;
  --hrms-text-muted: #8c98a9;
  --hrms-border: #eaedf2;
  --hrms-radius: 6px;
  --hrms-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--hrms-bg);
  color: var(--hrms-text-dark);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn-export-hrms {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-export-hrms:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-export-hrms:first-child {
  border-radius: 4px 0 0 4px;
}

.btn-export-hrms:last-child {
  border-radius: 0 4px 4px 0;
}

.action-dropdown-trigger {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #475569;
}

.action-dropdown-trigger:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.hrms-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* TOP NAVBAR */
.hrms-header {
  height: 56px;
  background-color: var(--hrms-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.brand-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: rgba(255,255,255,0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.subdomain-badge {
  background: rgba(26, 188, 156, 0.15);
  color: #1abc9c;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(26, 188, 156, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-action-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 4px;
}

.header-action-btn .badge-counter {
  position: absolute;
  top: 1px;
  right: -2px;
  background: #34495e;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  height: 14px;
  min-width: 14px;
  line-height: 14px;
  border-radius: 7px;
  text-align: center;
  padding: 0 3px;
}

.user-profile-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.user-chevron {
  font-size: 11px;
  opacity: 0.8;
}

/* SIDEBAR & CONTENT CONTAINER */
.hrms-body {
  display: flex;
  margin-top: 56px;
  flex: 1;
}

.hrms-sidebar {
  width: 230px;
  background-color: var(--hrms-navy);
  flex-shrink: 0;
  min-height: calc(100vh - 56px);
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 900;
  transition: width 0.3s ease;
}

.sidebar-profile {
  padding: 20px 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-profile-info {
  overflow: hidden;
}

.sidebar-user-name {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  color: #8c9cb3;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.sidebar-menu-section {
  padding-top: 10px;
}

.section-label {
  padding: 12px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  color: #a4b4cb;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar-nav-item a:hover {
  background-color: var(--hrms-sidebar-hover);
  color: #ffffff;
}

.sidebar-nav-item.active > a {
  background-color: var(--hrms-teal);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-nav-item.open > a {
  background-color: #171f2e;
  color: #ffffff;
}

.sidebar-nav-item.open .nav-chevron {
  transform: rotate(90deg);
  display: inline-block;
  color: #fff;
}

/* SUBMENU */
.sidebar-submenu {
  list-style: none;
  background-color: #151b27;
  padding: 4px 0;
  display: none;
}

.sidebar-nav-item.open .sidebar-submenu {
  display: block;
}

.sidebar-submenu-item a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 18px 9px 34px !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease;
}

.sidebar-submenu-item a:hover {
  background-color: #1e2638 !important;
  color: #ffffff !important;
}

.sidebar-submenu-item.active a {
  color: #1abc9c !important;
  background-color: rgba(26, 188, 156, 0.1) !important;
  font-weight: 600 !important;
  border-left: 3px solid #1abc9c;
}

.sub-icon {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  opacity: 0.85;
}

/* SALARY SPECIFIC COMPONENTS */
.salary-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.salary-kpi-card {
  background: #ffffff;
  border: 1px solid var(--hrms-border);
  border-radius: var(--hrms-radius);
  padding: 16px 18px;
  box-shadow: var(--hrms-shadow);
}

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

.salary-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #1e2638;
  margin: 6px 0 2px;
}

.salary-kpi-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* LUXURY PAYSLIP DOSSIER MODAL */
.payslip-dossier {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 28px;
  font-family: inherit;
  color: #1e2638;
}

.payslip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #1e2638;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.payslip-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
}

.payslip-brand-sub {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.5px;
}

.payslip-period-badge {
  background: #00bcd4;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.payslip-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 11.5px;
}

.payslip-meta-item label {
  color: #64748b;
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.payslip-meta-item span {
  font-weight: 700;
  color: #1e2638;
}

.payslip-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.payslip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.payslip-table th {
  background: #f1f5f9;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
}

.payslip-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.payslip-table tr.total-row td {
  font-weight: 800;
  background: #f8fafc;
  border-top: 1px solid #cbd5e1;
}

.payslip-net-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.payslip-net-amount {
  font-size: 24px;
  font-weight: 900;
  color: #15803d;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.nav-chevron {
  font-size: 11px;
  color: #6c7d93;
}

.sidebar-nav-item.active .nav-chevron {
  display: none;
}

/* MAIN CONTENT */
.hrms-main {
  flex: 1;
  margin-left: 230px;
  padding: 24px 28px 40px;
  background-color: var(--hrms-bg);
  min-height: calc(100vh - 56px);
}

/* CARDS */
.hrms-card {
  background-color: var(--hrms-card-bg);
  border-radius: var(--hrms-radius);
  border: 1px solid var(--hrms-border);
  box-shadow: var(--hrms-shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hrms-text-dark);
}

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

.gear-dropdown-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ROW 1: SUMMARIES */
.row-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.summary-stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 6px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 17px;
  font-weight: 700;
  color: #2b3b4f;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 11px;
  color: #7a889b;
}

.tag-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tag-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
}

/* ROW 2: ACTION CARDS */
.row-action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.action-card {
  background: #fff;
  border-radius: var(--hrms-radius);
  border: 1px solid var(--hrms-border);
  box-shadow: var(--hrms-shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.action-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circle-orange {
  border: 2px solid #ff9800;
  color: #ff9800;
  background: rgba(255, 152, 0, 0.05);
}

.circle-green {
  border: 2px solid #2ecc71;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.05);
}

.circle-coral {
  border: 2px solid #ff5722;
  color: #ff5722;
  background: rgba(255, 87, 34, 0.05);
}

.action-info-title {
  font-size: 14px;
  font-weight: 700;
  color: #2a3547;
  margin-bottom: 2px;
}

.action-info-sub {
  font-size: 11.5px;
  color: #8c98a9;
}

.btn-hrms-action {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-hrms-action:hover {
  opacity: 0.9;
}

.btn-teal {
  background-color: #17a2b8;
}

.btn-orange {
  background-color: #ff6b6b;
}

/* ROW 3: GAUGES */
.row-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.gauge-card {
  display: flex;
  flex-direction: column;
}

.gauge-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  min-height: 140px;
}

.semi-gauge-svg {
  width: 220px;
  height: 110px;
  overflow: visible;
}

.gauge-center-text {
  text-align: center;
  margin-top: -30px;
  margin-bottom: 15px;
}

.gauge-center-sub {
  font-size: 11px;
  color: #8c98a9;
  text-transform: capitalize;
}

.gauge-center-val {
  font-size: 22px;
  font-weight: 800;
  color: #2b3b4f;
  line-height: 1.1;
}

.gauge-footer-stats {
  border-top: 1px solid #f1f4f8;
  padding-top: 12px;
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  color: #556274;
}

.gauge-footer-stats span {
  font-weight: 500;
}

/* ROW 4: EVENTS, NOTIFICATION, ACTIVITY */
.row-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* UPCOMING EVENTS */
.event-item {
  padding: 12px 0;
  border-bottom: 1px dashed #e8ecf1;
}

.event-item:last-child {
  border-bottom: none;
}

.event-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.event-diamond {
  color: #20c997;
  font-size: 12px;
}

.event-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #2a3547;
}

.event-date {
  font-size: 11px;
  color: #8c98a9;
  margin-left: auto;
}

.badge-role-orange {
  display: inline-block;
  background-color: #ff5722;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.event-coverage-box {
  background-color: #03a9f4;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.badge-birthday-green {
  display: inline-block;
  background-color: #8bc34a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}

/* SEND NOTIFICATION */
.form-group-hrms {
  margin-bottom: 12px;
}

.hrms-select, .hrms-textarea {
  width: 100%;
  border: 1px solid #dce2eb;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #495057;
  background-color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.hrms-select:focus, .hrms-textarea:focus {
  border-color: #00bcd4;
}

.hrms-textarea {
  resize: vertical;
  min-height: 80px;
}

.notification-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.btn-sms {
  background-color: #00bcd4;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-notification {
  background-color: #8bc34a;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ACTIVITY UPDATES */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.activity-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid;
  font-size: 12px;
}

.circle-border-cyan {
  border-color: #00bcd4;
  color: #00bcd4;
}

.circle-border-orange {
  border-color: #ff9800;
  color: #ff9800;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 12px;
  color: #3b4859;
  line-height: 1.4;
}

.activity-time {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* FOOTER */
.hrms-footer {
  padding: 14px 28px;
  margin-left: 230px;
  background: #fff;
  border-top: 1px solid #e8ecf1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #7b889b;
}

.footer-link-intech {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e91e63;
  font-weight: 600;
}

/* MODALS */
.hrms-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.hrms-modal-backdrop.show {
  display: flex;
}

.hrms-modal-box {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hrms-modal-header {
  padding: 16px 20px;
  background: var(--hrms-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hrms-modal-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.hrms-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.hrms-modal-body {
  padding: 20px;
}

.hrms-modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* TOAST */
.hrms-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e2638;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.hrms-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hrms-toast.toast-success {
  border-left: 4px solid var(--hrms-teal);
}

.hrms-toast.toast-info {
  border-left: 4px solid var(--hrms-cyan);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .row-summary, .row-action-cards, .row-gauges, .row-bottom-grid {
    grid-template-columns: 1fr;
  }
}
