/* ============================================
   PRESENZE APP - Design System
   Aesthetic: Editorial / Refined Italian
   Font: DM Serif Display + DM Sans
   ============================================ */

:root {
  --bg: #F5F3EE;
  --surface: #FDFCF9;
  --surface-2: #EEEBe4;
  --border: #DDD9CF;
  --text-primary: #1A1916;
  --text-secondary: #6B6760;
  --text-muted: #9B9790;
  --accent: #2A5C45;
  --accent-light: #E8F0EB;
  --accent-hover: #1E4332;
  --danger: #C0392B;
  --danger-light: #FDECEA;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --success: #2A5C45;
  --success-light: #E8F0EB;
  --pending: #7C6D3F;
  --pending-light: #F5F0E0;
  --sidebar-width: 240px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(26,25,22,0.08), 0 4px 16px rgba(26,25,22,0.04);
  --shadow-modal: 0 8px 40px rgba(26,25,22,0.18);
  --transition: 0.18s ease;
}

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

html { font-size: 15px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ PAGES ============ */
.page { display: none; min-height: 100vh; }
.page.active { display: flex; }

/* ============ LOGIN ============ */
#page-login {
  background: var(--bg);
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#page-login::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42,92,69,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  animation: fadeUp 0.5s ease;
}

.login-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand-icon {
  font-size: 2.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  font-style: italic;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.login-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.login-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ============ APP LAYOUT ============ */
#page-app {
  flex-direction: row;
  background: var(--bg);
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  padding: 1.5rem 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.5rem 1.5rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.brand-icon-sm {
  color: var(--accent);
  font-size: 1rem;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-item svg { flex-shrink: 0; }

.sidebar-footer {
  padding: 1rem 1.25rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-details { min-width: 0; }

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}

.btn-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* ============ MAIN CONTENT ============ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  padding: 2rem 2.5rem;
  max-width: calc(100vw - var(--sidebar-width));
}

.view { display: none; }
.view.active { display: block; animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.view-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.view-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 0.1rem;
  font-style: italic;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--surface-2); }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #a93226; }

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

.btn-full { width: 100%; }

/* ============ FORMS ============ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,92,69,0.1);
}

.form-group textarea { resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.optional { font-weight: 400; color: var(--text-muted); text-transform: none; }

.select-filter {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  background: var(--surface);
  cursor: pointer;
  outline: none;
}

/* ============ CALENDAR ============ */
.calendar-legend {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-work { background: #4A9B7A; }
.dot-approved { background: var(--accent); }
.dot-pending { background: var(--warning); }
.dot-weekend { background: var(--border); }

.calendar-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calendar-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.calendar-day-name {
  padding: 0.65rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}

.calendar-days-row:last-child { border-bottom: none; }

.calendar-day {
  border-right: 1px solid var(--border);
  padding: 0.5rem;
  min-height: 80px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.calendar-day:last-child { border-right: none; }
.calendar-day:hover:not(.empty):not(.weekend) { background: var(--accent-light); }

.calendar-day.empty { cursor: default; background: var(--bg); }
.calendar-day.weekend { background: var(--bg); cursor: default; }
.calendar-day.today .day-number {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.selected {
  background: var(--accent) !important;
  color: white;
  border-color: var(--accent);
}

.calendar-day.selected .day-number {
  color: white;
  font-weight: 700;
}

.calendar-day.in-range {
  background: var(--accent-light) !important;
  border: 1px solid var(--accent);
}

.calendar-day.in-range:hover {
  background: var(--accent-lighter, rgba(100, 150, 255, 0.15)) !important;
}

.calendar-day.hover-preview-range {
  background: rgba(100, 150, 255, 0.25) !important;
  border: 1px dashed var(--accent);
  opacity: 0.8;
}

.calendar-day.hover-preview-range:hover {
  background: rgba(100, 150, 255, 0.35) !important;
}

.day-number {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
}

.weekend .day-number { color: var(--text-muted); }

.day-event {
  display: block;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-work { background: rgba(74,155,122,0.15); color: #2A6B51; }
.event-approved { background: var(--accent-light); color: var(--accent); }
.event-pending { background: var(--pending-light); color: var(--pending); }
.event-rejected { background: var(--danger-light); color: var(--danger); }

/* ============ LEAVES LIST ============ */
.leaves-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leave-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: box-shadow var(--transition);
  box-shadow: var(--shadow);
}

.leave-card:hover { box-shadow: 0 4px 20px rgba(26,25,22,0.1); }

.leave-card-left { display: flex; flex-direction: column; gap: 0.35rem; }

.leave-card-date {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.leave-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.leave-card-days {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.leave-card-reason {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.leave-card-user {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.leave-card-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-pending { background: var(--pending-light); color: var(--pending); }
.status-approved { background: var(--success-light); color: var(--success); }
.status-rejected { background: var(--danger-light); color: var(--danger); }

.btn-review, .btn-delete {
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}

.btn-review:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.btn-delete:hover { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state p { font-style: italic; }

/* ============ ADMIN TABS ============ */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: -1px;
}

.tab-btn {
  padding: 0.6rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.2s ease; }

/* ============ USERS LIST ============ */
#users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.user-card-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.user-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
  width: 100%;
}

.user-card-actions .btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  min-width: 75px;
}

.user-card-avatar {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.user-card-name { font-weight: 600; font-size: 0.9rem; }
.user-card-email { font-size: 0.78rem; color: var(--text-muted); }
.user-card-dept { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.15rem; }
.user-card-role { margin-top: 0.4rem; }

/* ============ BADGE ============ */
.badge {
  background: var(--danger);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  margin-left: auto;
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,25,22,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-modal);
  animation: fadeUp 0.25s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--surface-2); color: var(--text-primary); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.days-preview {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.review-info {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.review-info strong { display: block; font-size: 1rem; margin-bottom: 0.4rem; }

/* ============ ALERTS ============ */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(192,57,43,0.2);
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(42,92,69,0.2);
}

/* ============ TOAST ============ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--text-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: var(--shadow-modal);
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.toast.success { background: var(--accent); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============ UTILITIES ============ */
.hidden { display: none !important; }
.mt-2 { margin-top: 1.5rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    padding: 0.75rem;
  }
  .main-content { margin-left: 0; padding: 1rem; }
  .sidebar-nav { flex-direction: row; }
  .sidebar-footer { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .calendar-day { min-height: 50px; }
  #page-app { flex-direction: column; }
}

/* ============ NUOVI STILI v2 ============ */

/* Bottoni aggiuntivi */
.btn-accent2 {
  background: #5B4FCF;
  color: white;
  border-color: #5B4FCF;
}
.btn-accent2:hover { background: #4a3faa; }

.btn-accent3 {
  background: #B5541A;
  color: white;
  border-color: #B5541A;
}
.btn-accent3:hover { background: #9a4515; }

/* Legenda nuovi tipi */
.dot-permit { background: #7C6FD4; }
.dot-sick   { background: #C0672B; }

/* Calendario: nuovi tipi evento */
.event-permit { background: rgba(124,111,212,0.15); color: #5B4FCF; }
.event-sick   { background: rgba(192,103,43,0.15);  color: #B5541A; }

/* Entry tabs (nel modal unificato) */
.entry-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.entry-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.entry-tab:hover { color: var(--text-primary); }
.entry-tab.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Modal più largo */
.modal-wide { max-width: 520px; }

/* Info box */
.info-box {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Type badge nelle card */
.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.type-ferie    { background: var(--accent-light);          color: var(--accent); }
.type-permesso { background: rgba(124,111,212,0.12);       color: #5B4FCF; }
.type-malattia { background: rgba(192,103,43,0.12);        color: #B5541A; }

/* ============ BULK INSERT PANEL ============ */
.bulk-insert-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bulk-section { margin-bottom: 0.25rem; }

.bulk-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.bulk-type-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bulk-type-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.bulk-type-btn:hover { background: var(--surface-2); color: var(--text-primary); }
.bulk-type-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.bulk-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.bulk-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  background: var(--surface);
}

.bulk-user-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background var(--transition);
}
.bulk-user-item:hover { background: var(--surface-2); }
.bulk-user-item input[type="checkbox"] { cursor: pointer; accent-color: var(--accent); }
.bulk-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}
.bulk-user-name { font-size: 0.85rem; font-weight: 500; }
.bulk-user-dept { font-size: 0.75rem; color: var(--text-muted); }

.bulk-select-all-row {
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius);
  background: var(--accent-light);
}
.bulk-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}
.bulk-checkbox-label input { accent-color: var(--accent); cursor: pointer; }

.bulk-right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

@media (max-width: 768px) {
  .bulk-columns { grid-template-columns: 1fr; }
}
