/* ============================================================
   Strategic HR PeopleOS — Design System & Custom CSS
   Modern, Indian MSME-First SaaS Theme
   ============================================================ */

:root {
  --hrms-primary: #1e3a8a;
  --hrms-primary-light: #3b82f6;
  --hrms-primary-dark: #0f172a;
  --hrms-secondary: #0d9488;
  --hrms-accent: #f59e0b;
  --hrms-danger: #ef4444;
  --hrms-success: #10b981;
  --hrms-warning: #f59e0b;
  --hrms-bg: #f8fafc;
  --hrms-card-bg: #ffffff;
  --hrms-border: #e2e8f0;
  --hrms-sidebar-bg: #0f172a;
  --hrms-sidebar-color: #94a3b8;
  --hrms-sidebar-active: #3b82f6;
  --hrms-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body.hrms-body {
  font-family: var(--hrms-font);
  background-color: var(--hrms-bg);
  color: #1e293b;
  overflow-x: hidden;
}

/* Sidebar */
.hrms-sidebar {
  width: 260px;
  min-height: 100vh;
  background-color: var(--hrms-sidebar-bg);
  color: var(--hrms-sidebar-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.hrms-sidebar .brand-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hrms-sidebar .nav-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 1.2rem 1.5rem 0.4rem;
}

.hrms-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.2s ease;
}

.hrms-sidebar .nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.hrms-sidebar .nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 100%);
  border-left: 3px solid var(--hrms-primary-light);
}

.hrms-sidebar .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Content Area */
.hrms-main {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.hrms-topbar {
  height: 70px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--hrms-border);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 990;
}

.hrms-content {
  padding: 1.75rem;
  flex: 1;
}

/* Stat Cards */
.hrms-stat-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--hrms-border);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hrms-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.hrms-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* AI Highlight Box */
.ai-smart-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ai-smart-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.kanban-col {
  flex: 0 0 280px;
  background-color: #f1f5f9;
  border-radius: 10px;
  padding: 1rem;
  min-height: 500px;
}

.kanban-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: grab;
}

/* AI Floating Chat Button & Drawer */
.ai-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  z-index: 1050;
  transition: transform 0.2s ease;
  border: none;
}

.ai-trigger-btn:hover {
  transform: scale(1.08);
}

.ai-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1060;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ai-drawer.open {
  right: 0;
}

.ai-drawer-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background-color: #f8fafc;
}

.ai-drawer-footer {
  padding: 1rem;
  background-color: #ffffff;
  border-top: 1px solid var(--hrms-border);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .hrms-sidebar {
    margin-left: -260px;
  }
  .hrms-sidebar.show {
    margin-left: 0;
  }
  .hrms-main {
    margin-left: 0;
  }
}
