* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: #f8f9fa; color: #333; }

/* Navbar */
.navbar { background: white; border-bottom: 1px solid #eaeaea; padding: 15px 30px; position: sticky; top: 0; z-index: 100; }
.nav-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 18px; color: #1a1a1a; }
.nav-logo { height: 40px; }
.btn-logout { background: transparent; border: 1px solid #ddd; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 14px; transition: all 0.2s; }
.btn-logout:hover { background: #f0f0f0; }

/* Dashboard */
.dashboard { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.dashboard-header h1 { font-size: 24px; font-weight: 600; color: #1a1a1a; }
#searchInput { padding: 10px 15px; border: 1px solid #ddd; border-radius: 6px; width: 300px; font-family: inherit; }

/* Table */
.table-container { background: white; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow-x: auto; border: 1px solid #eaeaea; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 16px 20px; border-bottom: 1px solid #eaeaea; }
th { background: #fafafa; font-weight: 600; font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
td { font-size: 14px; color: #333; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fdfdfd; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; background: #e3f2fd; color: #1976d2; }
.text-sm { font-size: 12px; color: #777; margin-top: 4px; }
.loading { text-align: center; color: #888; padding: 40px !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  #searchInput {
    width: 100%;
  }
  .nav-content {
    flex-direction: column;
    gap: 10px;
  }
  th, td {
    white-space: nowrap;
  }
  .dashboard {
    margin: 20px auto;
  }
}

/* Tabs styles */
.tabs-container {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 30px;
  padding-bottom: 1px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: #1a1a1a;
}
.tab-btn.active {
  color: #1976d2;
  border-bottom: 2px solid #1976d2;
}

/* Employee grid & cards */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.employee-card {
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}
.employee-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.emp-header {
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.emp-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.emp-puesto {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}
.emp-details {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
}

/* Vacation progress */
.vac-progress-wrap {
  margin: 12px 0;
}
.vac-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.vac-bar-bg {
  background: #f0f0f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.vac-bar-fill {
  background: #1976d2;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.vac-active-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}
.close-modal-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: #555;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}
.btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #1976d2;
  color: white;
}
.btn-primary:hover {
  background: #1565c0;
}
.btn-secondary {
  background: #f0f0f0;
  color: #333;
}
.btn-secondary:hover {
  background: #e0e0e0;
}
.btn-danger {
  background: #d32f2f;
  color: white;
}
.btn-danger:hover {
  background: #c62828;
}
.btn-card-action {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #1976d2;
  background: transparent;
  color: #1976d2;
  transition: all 0.2s;
}
.btn-card-action:hover {
  background: #1976d2;
  color: white;
}
.btn-word:hover {
  background: #004B87 !important;
}

