/* Avaliações DC — design tokens from the Inventário (inventario-tm/static/css/base.css) */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #000000;
  color: #eceae8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0;
}
a { color: rgb(56, 97, 149); text-decoration: none; }
a:hover { color: rgb(86, 132, 190); }
::selection { background: rgba(56, 97, 149, 0.35); }

/* Top bar */
.topbar { height: 64px; background: #222020; border-bottom: 1px solid #3a3736; display: flex; align-items: center; padding: 0 32px; gap: 24px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: #ffffff; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.user-menu { position: relative; margin-left: auto; flex-shrink: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; background: none; border: none; padding: 0; }
.user-chip:hover .user-name { color: #a9c1df; }
.user-name { color: #eceae8; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgb(56, 97, 149); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
.user-menu-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px;
  background: #222020; border: 1px solid #3a3736; z-index: 20; flex-direction: column; padding: 6px;
}
.user-menu.open .user-menu-dropdown { display: flex; }
.user-menu-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #eceae8; font-size: 0.875rem; white-space: nowrap; }
.user-menu-dropdown a:hover { background: #373433; color: #eceae8; }
.user-menu-dropdown i { color: rgb(56, 97, 149); width: 16px; text-align: center; }

/* Page */
.page { max-width: 960px; margin: 0 auto; padding: 32px; min-height: calc(100vh - 64px - 70px); }
.content-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 1.75rem; font-weight: 300; color: #ffffff; margin: 0 0 4px 0; }
.page-subtitle { color: #9a9694; font-size: 0.875rem; margin: 0; }

.empty-state { text-align: center; padding: 80px 32px; color: #9a9694; grid-column: 1 / -1; }
.empty-state i { font-size: 2.5rem; color: rgb(56, 97, 149); margin-bottom: 16px; display: block; }
.empty-state-title { font-size: 1.0625rem; color: #eceae8; margin-bottom: 6px; }

.footer { margin: 0 auto; padding: 24px 32px; border-top: 1px solid #3a3736; display: flex; justify-content: space-between; align-items: center; color: #6e6b69; font-size: 0.8125rem; flex-wrap: wrap; gap: 8px; }

/* Evaluation list */
.eval-list { display: flex; flex-direction: column; gap: 12px; }
.eval-row { background: #222020; border: 1px solid #3a3736; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eval-name { color: #ffffff; font-weight: 600; font-size: 0.9375rem; margin: 0 0 2px 0; }
.eval-meta { color: #9a9694; font-size: 0.8125rem; margin: 0; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.5; border: 1px solid #3a3736; cursor: pointer; background: #373433; color: #eceae8; transition: all 120ms; }
.btn:hover { background: #454140; color: #eceae8; }
.btn-primary { background: rgb(56, 97, 149); border-color: rgb(56, 97, 149); color: #fff; }
.btn-primary:hover { background: rgb(46, 82, 128); color: #fff; }
.btn-danger { background: #dc3545; border-color: #dc3545; color: #fff; }
.btn-danger:hover { background: #b02a37; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 0.75rem; }
.form-card { background: #222020; border: 1px solid #3a3736; padding: 32px; max-width: 640px; margin: 0 auto 48px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8125rem; color: #9a9694; margin-bottom: 8px; font-weight: 600; }
.form-control, select.form-control, textarea.form-control {
  width: 100%; background: #373433; border: 1px solid #3a3736; color: #eceae8;
  padding: 10px 12px; font-size: 0.875rem; font-family: inherit;
}
.form-control:focus { border-color: rgb(56, 97, 149); outline: none; box-shadow: 0 0 0 .25rem rgba(56, 97, 149, 0.25); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-errors { color: #ff8f8f; font-size: 0.8125rem; margin-top: 6px; }
.form-hint { color: #9a9694; font-size: 0.78125rem; margin-top: 6px; }
.btn-primary-lg { width: 100%; background: rgb(56, 97, 149); color: #fff; border: none; padding: 14px 20px; font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background 120ms; margin-bottom: 12px; }
.btn-primary-lg:hover { background: rgb(46, 82, 128); color: #fff; }
.btn-secondary-lg { width: 100%; background: #222020; color: rgb(56, 97, 149); border: 1px solid #3a3736; padding: 14px 20px; font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background 120ms; }
.btn-secondary-lg:hover { background: #373433; color: rgb(86, 132, 190); }

.alert { padding: 12px 16px; margin-bottom: 20px; border: 1px solid #3a3736; background: #373433; color: #eceae8; }
.alert-success { border-color: #198754; }
.alert-error { border-color: #dc3545; }

/* Toasts — floating flash messages, bottom right, self-dismissing */
.toast-container {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: #222020; border: 1px solid #3a3736; border-left: 3px solid #9a9694;
  padding: 12px 14px; color: #eceae8; font-size: 0.875rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  animation: toast-in 160ms ease-out;
}
.toast-success { border-left-color: #198754; }
.toast-error { border-left-color: #dc3545; }
.toast-icon { flex-shrink: 0; color: #9a9694; }
.toast-success .toast-icon { color: #39d25f; }
.toast-error .toast-icon { color: #e77b84; }
.toast-text { flex: 1; min-width: 0; }
.toast-close {
  flex-shrink: 0; background: none; border: none; color: #6e6b69;
  font: inherit; font-size: 0.875rem; line-height: 1; padding: 0; cursor: pointer;
}
.toast-close:hover { color: #eceae8; }
.toast-leaving { opacity: 0; transform: translateX(16px); transition: opacity 180ms, transform 180ms; }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .toast-container { right: 12px; left: 12px; bottom: 12px; width: auto; } }

/* Login card (allauth override) */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: #222020; border: 1px solid #3a3736; padding: 40px 36px; }
.brand-block { text-align: center; margin-bottom: 32px; }
.brand-title { color: #ffffff; font-size: 1.25rem; font-weight: 600; margin: 0 0 6px 0; }
.brand-subtitle { color: #9a9694; font-size: 0.8125rem; margin: 0; }
.divider-text { text-align: center; color: #6e6b69; font-size: 0.8125rem; margin: 4px 0 24px 0; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: #ffffff; color: #212529; border: 1px solid #3a3736; padding: 12px 16px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background 120ms; }
.btn-google:hover { background: #ececec; color: #212529; }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }
.fine-print { text-align: center; color: #6e6b69; font-size: 0.75rem; margin-top: 24px; line-height: 1.6; }
.fine-print a { color: rgb(56, 97, 149); }
.back-link { display: flex; align-items: center; gap: 6px; color: #9a9694; font-size: 0.8125rem; margin-bottom: 28px; }
.back-link:hover { color: #a9c1df; }
.back-link i { font-size: 0.9rem; }

/* Allauth pages we don't template by hand — see templates/allauth/layouts/base.html.
   Allauth emits bare h1/p/form/input/button markup, so give those a house style. */
.allauth-page h1 { color: #ffffff; font-size: 1.25rem; font-weight: 600; margin: 0 0 12px 0; }
.allauth-page p { color: #9a9694; font-size: 0.875rem; margin: 0 0 12px 0; }
.allauth-page label { display: block; font-size: 0.8125rem; color: #9a9694; margin-bottom: 8px; font-weight: 600; }
.allauth-page input[type="text"], .allauth-page input[type="email"], .allauth-page input[type="password"] {
  width: 100%; background: #373433; border: 1px solid #3a3736; color: #eceae8;
  padding: 10px 12px; font: inherit; font-size: 0.875rem; margin-bottom: 12px;
}
.allauth-page button, .allauth-page input[type="submit"] {
  background: rgb(56, 97, 149); color: #fff; border: none; padding: 10px 20px;
  font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.allauth-page button:hover, .allauth-page input[type="submit"]:hover { background: rgb(46, 82, 128); }
.allauth-page ul { list-style: none; padding: 0; margin: 0 0 12px 0; }
.allauth-page li { padding: 6px 0; font-size: 0.875rem; }

@media (max-width: 860px) {
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px; }
  .content-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .page-title { font-size: 1.375rem; }
  .brand span { font-size: 0.9375rem; }
  .user-name { display: none; }
}
