.oportunidades-view {
  padding: 1.5rem;
  background-color: #f8f9fa;
  /* Light background for the page */
  min-height: 100vh;
}

/* Filters Bar */
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filters-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-input,
.filter-select,
.filter-date {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #4a5568;
  outline: none;
}

.filter-input {
  min-width: 200px;
}

.date-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-label {
  font-size: 0.85rem;
  color: #718096;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.btn-primary {
  background: #3182ce;
  /* Blue matching the image */
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #2b6cb0;
}

/* Table Card */
.table-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Column Widths */
.data-table th:nth-child(1) {
  width: 20%;
}

/* Nombre */
.data-table th:nth-child(2) {
  width: 15%;
}

/* Contacto */
.data-table th:nth-child(3) {
  width: 15%;
}

/* Responsable */
.data-table th:nth-child(4) {
  width: 12%;
}

/* Estado */
.data-table th:nth-child(5) {
  width: 12%;
}

/* Origen */
.data-table th:nth-child(6) {
  width: 13%;
}

/* Fecha Creación */
.data-table th:nth-child(7) {
  width: 13%;
}

/* Acciones */

.data-table th {
  background: white;
  color: #a0aec0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

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

.font-medium {
  font-weight: 500;
  color: #2d3748;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background-color: #f7fafc !important;
}



.actions-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: #4a5568;
  background: #edf2f7;
}

.btn-icon.delete:hover {
  color: #e53e3e;
  background: #fff5f5;
}

/* Badge */
.badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ebf8ff;
  color: #4299e1;
  border: 1px solid #bee3f8;
}

/* Pagination */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid #edf2f7;
  background: #fff;
}

.pagination-info {
  font-size: 0.85rem;
  color: #718096;
}

.pagination-controls {
  display: flex;
  gap: 0.25rem;
}

.page-btn {
  border: 1px solid #e2e8f0;
  background: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: #f7fafc;
}

.page-btn.active {
  background: #3182ce;
  color: white;
  border-color: #3182ce;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.text-right {
  text-align: right;
}

/* Loading/Empty */
.loading-state,
.empty-state {
  padding: 3rem;
  text-align: center;
  color: #718096;
}

/* Modal Form Styles moved/kept */
.form-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-cancel {
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}