/* 
  HR OS Command Center - Enterprise Layer
  Aesthetic: Sci-Fi Glassmorphism + SAP SuccessFactors functionality
*/

:root {
  --hr-primary: #00f2ff;
  --hr-secondary: #7000ff;
  --hr-glass: rgba(15, 23, 42, 0.85);
  --hr-border: rgba(0, 242, 255, 0.15);
}

/* 1. Employee Detail Slide Drawer */
.hr-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: var(--hr-glass);
  backdrop-filter: blur(40px);
  z-index: 2000;
  border-left: 1px solid var(--hr-border);
  transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.hr-drawer.active {
  right: 0;
}

/* 2. Org Chart Visuals */
.org-chart-container {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
}

.org-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hr-border);
  border-radius: 12px;
  padding: 15px 25px;
  text-align: center;
  position: relative;
  min-width: 180px;
  margin: 10px;
  transition: 0.3s;
}

.org-node:hover {
  background: rgba(0, 242, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.org-line {
  width: 2px;
  height: 20px;
  background: var(--hr-border);
}

/* 3. Grid-based HR Dashboard */
.hr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.hr-mini-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.hr-mini-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

/* 4. Hiring Pipeline Styles */
.hiring-pipeline {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px;
}

.hiring-stage {
  flex: 1;
  min-width: 250px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
}

.candidate-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: grab;
}

.candidate-card:hover {
  border-color: var(--hr-primary);
}

/* 5. Attendance Status Dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status-online { background: #10b981; box-shadow: 0 0 8px #10b981; }
.status-away { background: #ffa500; box-shadow: 0 0 8px #ffa500; }
.status-offline { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* 6. Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeInUp 0.5s ease forwards;
}

/* Glass Tabs for Internal HR Navigation */
.hr-navbar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hr-nav-item {
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    transition: 0.3s;
}

.hr-nav-item.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--hr-primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}
