/* Hoja de estilos global para Alpha App con Material 3 Expressive */

:root {
  --app-max-width: 1440px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--md-sys-color-background, #fdf8fd);
  color: var(--md-sys-color-on-background, #1d1b20);
  min-height: 100vh;
}

/* Contenedor principal responsivo */
.app-container {
  max-width: var(--app-max-width);
  margin: 2rem auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
  width: 100%;
  box-sizing: border-box;
}

/* Encabezado */
.app-header {
  margin-bottom: 2rem;
}

.app-header-desc {
  font-size: 1.125rem;
  color: var(--md-sys-color-on-surface-variant, #49454f);
  margin-top: 0.5rem;
  max-width: 70ch;
  line-height: 1.6;
}

.app-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.app-auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--md-sys-color-surface-container, #f3edf7);
  border-radius: 16px;
}

.app-auth-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--md-sys-color-on-surface, #1d1b20);
  font-size: 0.9375rem;
}

.app-auth-link {
  text-decoration: none;
}

.app-divider {
  margin: 1.5rem 0;
}

/* Cuadrícula responsiva para tarjetas */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card-content {
  padding: 1.25rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-icon-success {
  color: #2e7d32;
  font-size: 28px;
}

.card-icon-primary {
  color: #1565c0;
  font-size: 28px;
}

.card-text {
  color: var(--md-sys-color-on-surface-variant, #49454f);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Estilos de botones de acción y menú M3E */
m3e-menu-item.menu-item-danger {
  --m3e-menu-item-color: var(--md-sys-color-error, #ba1a1a);
  --m3e-menu-item-container-hover-color: var(--md-sys-color-error-container, #ffdad6);
  --m3e-menu-item-ripple-color: var(--md-sys-color-error, #ba1a1a);
}

