/* ============================
   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: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  animation: slideIn 0.3s ease;
}

.alert-error {
  border-left: 4px solid var(--color-error);
  background: var(--color-permission-no-bg);
  color: var(--color-error);
}

.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: var(--color-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: var(--color-text-main);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: var(--color-primary);
}

.action-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 10px;
}

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

.action-card h4,
.action-card h3 {
  margin: 0 0 8px 0;
  color: var(--color-text-main);
  font-size: 1.05rem;
  font-weight: 600;
}

.action-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  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: var(--color-text-main);
  min-width: 140px;
}

.role-value {
  color: var(--color-text-muted);
  font-weight: 500;
}


.sede-badge {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-primary);
}

/* Permissions Summary */
.permissions-summary {
  margin-top: 24px;
}

.section-subtitle {
  margin: -8px 0 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.permission-item.has-permission {
  background: var(--color-permission-yes-bg);
  border: 1px solid var(--color-permission-yes-border);
}

.permission-item.no-permission {
  background: var(--color-permission-no-bg);
  border: 1px solid var(--color-permission-no-border);
}

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

.permission-item.has-permission .permission-icon {
  color: var(--color-success);
}

.permission-item.no-permission .permission-icon {
  color: var(--color-error);
}

.permission-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.permission-title {
  font-weight: 500;
  color: var(--color-text-main);
}

.permission-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.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;
  }
}
