@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
:root{
  --bg:#111018;
  --card:#14121b;
  --accent1:#7b2cbf;
  --accent2:#c77dff;
  --muted:#b9a7d9;
}
*{box-sizing:border-box;font-family:'Poppins',system-ui,Segoe UI,Arial,sans-serif}
/* Fondo general */
body.bg {
  min-height: 100vh;         /* Ocupa toda la altura de la ventana */
  display: flex;
  justify-content: center;    /* Centra horizontal */
  align-items: center;        /* Centra vertical */
  background: linear-gradient(135deg, #1a1a2e, #7b2cbf); /* degradado violeta */
  font-family: 'Poppins', sans-serif;
  margin: 0;
}
/* Contenedor principal */
main.center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(30, 10, 60, 0.85); /* ligeramente translúcido */
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-width: 400px;           /* ancho máximo del login */
  width: 90%;                 /* ancho adaptable */
}
/* Títulos y subtítulos */
.brand {
  font-size: 2.5rem;
  color: #c77dff;
  margin-bottom: 0.5rem;
}
.subtitle {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1.5rem;
}
/* Formulario */
form.card {
  width: 100%;
  display: flex;
  flex-direction: column;
}
form.card label {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 1rem;
  color: #eee;
  font-weight: 500;
}


form.card input {
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: none;
  margin-top: 0.3rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

form.card input:focus {
  outline: 2px solid #c77dff;
  background: rgba(255,255,255,0.15);
}

/* Botones */
form.card .btn {
  padding: 0.7rem;
  border-radius: 0.8rem;
  border: none;
  background: #7b2cbf;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

form.card .btn:hover {
  background: #c77dff;
  box-shadow: 0 4px 15px rgba(199,125,255,0.5);
}

/* Botón secundario (MSAL) */
form.card .btn.secondary {
  background: transparent;
  border: 2px solid #c77dff;
  color: #c77dff;
  margin-top: 0.5rem;
}

form.card .btn.secondary:hover {
  background: #c77dff;
  color: #fff;
}

body.bg-dashboard {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #1a1a2e, #7b2cbf);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* styles.css */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(30, 10, 60, 0.85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.header h1 {
  font-size: 1.3rem;
  color: var(--accent2);
  margin: 0;
}

.container {
  display: flex;
  flex: 1;
  margin: 1rem;
  gap: 1rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 80px;
  background: rgba(20,5,50,0.8);
  border-radius: 1rem;
  padding: 1rem 0;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 1.5rem;
  margin: 1rem 0;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-btn.active, .nav-btn:hover {
  color: #c77dff;
  transform: scale(1.2);
}

.nav-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}
.nav-icons a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s;
}
.nav-icons a:hover {
  color: var(--accent2);
  transform: scale(1.2);
}
.header-right {
  display: flex;
  gap: 1rem;
}
main {
  padding: 1rem;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.view {
  background: rgba(30,10,60,0.75);
  border-radius: 1rem;
  padding: 1rem;
}

.view.hidden {
  display: none;
}
.task-form{display:grid;gap:8px}
.tasks-list{list-style:none;padding:0;margin-top:12px}
.tasks-list li{background:linear-gradient(90deg,rgba(123,44,191,0.06),rgba(199,125,255,0.02));padding:10px;border-radius:10px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}
.tasks-list li .meta{font-size:.85rem;color:var(--muted)}
.month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.month-grid .day{padding:10px;border-radius:8px;text-align:center;cursor:pointer}
.month-grid .day.today{outline:2px solid rgba(199,125,255,0.16)}
.notes-area{width:100%;height:300px;padding:12px;border-radius:12px;background:transparent;border:1px solid rgba(255,255,255,0.03);color:#fff}
.small-note{font-size:.85rem;color:var(--muted)}
footer{opacity:.9}