:root {
  --primary: #704764; /* HRMS Purple from image */
  --primary-dark: #5a3950;
  --accent: #00A09D; 
  --bg-main: #f4f7f6;
  --bg-card: #ffffff;
  --text-main: #4c4c4c;
  --text-muted: #878a8c;
  --border-color: #e2e2e2;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --radius: 2px;
  --shadow: 0 2px 4px rgba(0,0,0,0.04);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --present: #4caf50;
  --late: #ff9800;
  --absent: #f44336;
  --leave: #9c27b0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background-color: var(--primary);
  color: white;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-weight: 700;
  font-size: 20px;
  margin-right: 30px;
  text-decoration: none;
  color: white;
  letter-spacing: 0.5px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
  text-decoration: none;
  color: white;
  height: 100%;
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(255,255,255,0.15);
  opacity: 1;
}

.nav-item.active {
  background-color: rgba(0,0,0,0.1);
  box-shadow: inset 0 -3px 0 white;
}

/* Control Panel (Breadcrumbs & Actions) */
.control-panel {
  background-color: white;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb {
  font-size: 16px;
  font-weight: 400;
  color: #333;
}

.breadcrumb span {
  color: var(--text-muted);
}

.cp-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-secondary {
  background-color: white;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 20px;
  width: 100%;
}

/* Kanban / Check-in View (Odoo Style) */
.attendance-kiosk {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.kiosk-avatar {
  width: 120px;
  height: 120px;
  background-color: #eee;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-status {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.kiosk-time {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn-check {
  font-size: 20px;
  padding: 15px 40px;
  border-radius: 50px;
}

/* Table Design */
.table-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
}

.table tr:hover {
  background-color: #f1f1f1;
}

/* Badges - HRMS Style */
.badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-present { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.badge-late { background: #fff3e0; color: #ef6c00; border: 1px solid #ffe0b2; }
.badge-absent { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.badge-leave { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #ef6c00; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-info { background: #e3f2fd; color: #1565c0; }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

/* Stats Cards - HRMS Style */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid #704764;
  display: flex;
  flex-direction: column;
}

.stat-card.present { border-left-color: #00bcd4; }
.stat-card.late { border-left-color: #ffc107; }
.stat-card.absent { border-left-color: #f44336; }
.stat-card.leave { border-left-color: #9c27b0; }

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #888;
  margin-top: 5px;
}

/* Form Groups */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
}

.placeholder-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  opacity: 0.3;
  display: inline-block;
}

.placeholder-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ccc;
  display: inline-block;
  vertical-align: middle;
}
