/* ============================
   Estilos del Dashboard
   ============================ */
.dashboard-main {
  padding: 24px 0 0;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  margin-bottom: 24px;
}

.welcome-section h2 {
  margin: 0 0 8px 0;
  color: var(--color-text-main);
  font-size: 1.8rem;
  font-weight: 700;
}

.welcome-date {
  margin: 0 0 12px 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.welcome-description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0 24px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: slideIn 0.3s ease;
}

.alert-error {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

.alert-icon {
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.alert-message {
  flex: 1;
  font-weight: 500;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 32px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.action-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #1976d2;
}

.action-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1976d2;
  background: #e3f2fd;
  border-radius: 10px;
}

.action-icon svg {
  width: 22px;
  height: 22px;
}

.action-card h4,
.action-card h3 {
  margin: 0 0 8px 0;
  color: #222222;
  font-size: 1.05rem;
  font-weight: 600;
}

.action-card p {
  margin: 0;
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1976d2;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Role Info */
.role-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.role-label {
  font-weight: 600;
  color: #222222;
  min-width: 140px;
}

.role-value {
  color: #666666;
  font-weight: 500;
}

.sedes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sede-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #1976d2;
}

/* Permissions Summary */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.permission-item.has-permission {
  background: #f0f9f0;
  border: 1px solid #dcfce7;
}

.permission-icon {
  font-size: 1.1rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.permission-text {
  font-weight: 500;
  color: #222222;
}

.excel-status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #1b5e20;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .actions-grid {
    grid-template-columns: 1fr;
  }

  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .role-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .role-label {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .welcome-section h2 {
    font-size: 1.5rem;
  }

  .action-card {
    padding: 20px;
  }
}
