/* Nord theme override for Authelia */
body {
  background-color: #2E3440 !important;
}

/* Main card / paper surfaces — nord1 elevated background, nord4 body text */
.MuiPaper-root {
  background-color: #3B4252 !important;
  color: #D8DEE9 !important;
}

/* Primary buttons — nord8 accent bg, nord0 text */
.MuiButton-containedPrimary {
  background-color: #88C0D0 !important;
  color: #2E3440 !important;
}
.MuiButton-containedPrimary:hover {
  background-color: #81A1C1 !important;
}

/* Outlined / text buttons — nord9 for secondary actions */
.MuiButton-outlined, .MuiButton-text {
  color: #81A1C1 !important;
  border-color: #81A1C1 !important;
}

/* Text inputs — nord4 text, nord2 border, nord8 focus */
.MuiOutlinedInput-root {
  color: #D8DEE9 !important;
}
.MuiOutlinedInput-notchedOutline {
  border-color: #434C5E !important;
}
.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: #81A1C1 !important;
}
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #88C0D0 !important;
}
.MuiInputLabel-root {
  color: #4C566A !important;
}
.MuiInputLabel-root.Mui-focused {
  color: #88C0D0 !important;
}

/* Links — nord8 primary accent, nord10 visited */
a {
  color: #88C0D0 !important;
}
a:visited {
  color: #5E81AC !important;
}

/* Typography — nord4 body text, nord6 for headings needing attention */
.MuiTypography-root {
  color: #D8DEE9 !important;
}
.MuiTypography-h5, .MuiTypography-h6 {
  color: #ECEFF4 !important;
}
.MuiTypography-colorTextSecondary {
  color: #4C566A !important;
}

/* App bar / header — nord1 elevated surface */
.MuiAppBar-root, header {
  background-color: #3B4252 !important;
}

/* Footer — nord3 muted text */
footer {
  color: #4C566A !important;
}
.MuiToolbar-root {
  color: #D8DEE9 !important;
}

/* Checkboxes — nord7 for interactive UI primitives */
.MuiCheckbox-root {
  color: #8FBCBB !important;
}
/* Icons — nord8 primary accent */
.MuiSvgIcon-root {
  color: #88C0D0 !important;
}

/* Error states — nord11 */
.MuiAlert-standardError, .Mui-error {
  color: #BF616A !important;
}

/* Success states — nord14 */
.MuiAlert-standardSuccess {
  color: #A3BE8C !important;
}

/* Warning states — nord13 */
.MuiAlert-standardWarning {
  color: #EBCB8B !important;
}

/* Dividers — nord2 */
.MuiDivider-root {
  border-color: #434C5E !important;
}

/* Scrollbar — nord0 track, nord3 thumb */
::-webkit-scrollbar {
  width: 8px;
  background-color: #2E3440;
}
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: #4C566A;
}

/* Selection — nord2 highlight bg */
::selection {
  background-color: #434C5E;
  color: #ECEFF4;
}

