/* Ajustes compartilhados entre todas as páginas */
.topbar .theme-toggle,
.topbar .global-theme-toggle,
.profile-page-topbar .theme-toggle,
.profile-page-topbar .global-theme-toggle {
  width: 38px!important;
  height: 38px!important;
  min-width: 38px;
  display: inline-grid!important;
  place-items: center;
  border-radius: 10px!important;
  line-height: 1;
}
.brand,
.brand:visited,
.brand:hover,
.brand:focus { text-decoration: none!important; }
.sidebar { width:255px!important; padding:31px 20px 22px!important; }
.sidebar .brand,
.sidebar .brand.archive-page-brand {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px;
  margin:0 0 50px;
  color:#fff!important;
  font-family:'Space Grotesk',sans-serif;
  font-size:21px;
  font-weight:700;
  letter-spacing:-1px;
}
.sidebar .brand .brand-mark {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  background:#5478e9;
  color:#fff!important;
  font-size:20px;
}
.sidebar .brand>span:last-child { color:#fff!important; }
.sidebar .brand>span:last-child>span { color:#9db6ff!important; }
.sidebar .workspace { margin-bottom:28px; }
.sidebar-bottom { padding-top:26px; }
.profile-page-topbar .brand,
.admin-page-topbar .brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Space Grotesk',sans-serif;
  font-size:21px;
  font-weight:700;
  letter-spacing:-1px;
}
.profile-page-topbar .brand .brand-mark,
.admin-page-topbar .brand .brand-mark { width:30px; height:30px; border-radius:9px; }
.avatar.admin-avatar {
  background: linear-gradient(145deg,#f7d978,#b77a19)!important;
  color:#fff4bf!important;
  box-shadow:0 0 7px #f2c14b,0 0 16px #f2c14b88;
  text-shadow:0 0 6px #fff7c7;
}
.profile:has(.admin-avatar)>div>strong,
.profile-menu-heading:has(.admin-avatar) strong,
.archive-page-profile:has(.admin-avatar)>div>strong { color:#f7d978!important; text-shadow:0 0 7px #f2c14b,0 0 14px #f2c14b88; }
.top-actions { align-items: center; }
.profile,
.archive-page-profile {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.profile strong,.archive-page-profile strong { font-weight: 700; }
.profile small,.archive-page-profile small { line-height: 1.2; }
.nav-item { min-height: 42px; }
.nav-item-static { cursor: default; user-select: none; }
.nav-item > span { display: inline-grid; place-items: center; }
.archive-nav-icon svg { width: 16px!important; height: 16px!important; }
.action-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 7px; }
.action-btn:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.page-heading h1,.admin-page-heading h1,.profile-page-heading h1 { line-height: 1.12; }
.panel,.stat-card { overflow: hidden; }
.modal-backdrop { overscroll-behavior: contain; }
.modal-backdrop:not(.hidden) {
  position:absolute!important;
  top:var(--modal-scroll-top,0px)!important;
  right:0!important;
  left:0!important;
  width:100vw!important;
  height:100vh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:1000!important;
  transform:none!important;
}
.modal-backdrop:not(.hidden)>.modal {
  position:relative;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  margin:auto!important;
  max-height:calc(100vh - 40px)!important;
  overflow-y:auto!important;
  transform:translateZ(0)!important;
}
.modal-backdrop:not(.hidden):has(.notification-task-modal),
.modal-backdrop:not(.hidden):has(.task-collaboration) {
  align-items:flex-start!important;
  overflow-y:auto!important;
  padding-top:20px!important;
  padding-bottom:20px!important;
}
@media(max-width:650px){
  .topbar .theme-toggle,.topbar .global-theme-toggle,.profile-page-topbar .theme-toggle,.profile-page-topbar .global-theme-toggle { width:34px!important;height:34px!important;min-width:34px; }
  .profile { gap:7px; }
}

/* Refinamento visual compartilhado */
:root { --surface:#fff; }
body { line-height:1.45; -webkit-font-smoothing:antialiased; }
.dark-theme { --surface:#182337; }
.sidebar { border-right:1px solid rgba(255,255,255,.04); box-shadow:10px 0 32px rgba(20,34,58,.08); }
.sidebar .brand { margin-bottom:46px; }
.workspace { border:1px solid rgba(255,255,255,.04); box-shadow:0 8px 20px rgba(12,24,47,.12); }
.nav-menu { gap:4px; }
.nav-item { position:relative; transition:background .18s ease,color .18s ease,transform .18s ease; }
.nav-item:not(.nav-item-static):hover { transform:translateX(2px); }
.nav-item.active { box-shadow:inset 3px 0 0 #90aaff; }
.nav-item.active b { background:#5872ad; color:#fff; }
.topbar { position:relative; z-index:20; box-shadow:0 1px 0 rgba(53,72,106,.12),0 8px 24px rgba(27,46,78,.04); }
.profile-wrap { position:relative; z-index:30; }
.breadcrumb strong { font-weight:700; }
.page-heading { margin-bottom:32px; }
.page-heading h1,.admin-page-heading h1,.profile-page-heading h1 { letter-spacing:-1.35px; }
.panel,.stat-card { box-shadow:0 10px 26px rgba(36,57,91,.055); }
.panel:hover,.stat-card:hover { box-shadow:0 13px 30px rgba(36,57,91,.08); }
.panel-header h2 { letter-spacing:-.45px; }
.table-task { transition:color .16s ease; }
.table-task:hover { color:var(--blue); }
tbody tr { transition:background .16s ease; }
tbody tr:hover { background:rgba(91,123,190,.045); }
.btn { box-shadow:0 5px 14px rgba(39,67,116,.10); }
.btn-primary { box-shadow:0 7px 16px rgba(79,117,232,.20); }
.btn-secondary { border:1px solid rgba(138,153,179,.15); }
.task-status,.status-todo,.status-doing,.status-done { border:1px solid transparent; }
.profile-menu { z-index:100; box-shadow:0 18px 45px rgba(20,35,61,.18); }
.modal { box-shadow:0 24px 70px rgba(20,35,61,.25); }
.close-btn { transition:background .16s ease,color .16s ease,transform .16s ease; }
.empty-state,.my-empty { min-height:70px; display:grid; place-items:center; }
.dark-theme .panel,.dark-theme .stat-card { box-shadow:0 12px 28px rgba(0,0,0,.16); }
.dark-theme tbody tr:hover { background:rgba(126,157,225,.07); }
.dark-theme .sidebar { box-shadow:10px 0 32px rgba(0,0,0,.16); }
.dark-theme .btn-secondary { border-color:#405477; }
@media(max-width:650px){
  .page-heading { margin-bottom:24px; }
  .panel,.stat-card { box-shadow:0 7px 18px rgba(36,57,91,.06); }
  .nav-item:not(.nav-item-static):hover { transform:none; }
}

/* Movimento e feedback visual compartilhados */
.brand-logo {
  display:block;
  width:160px;
  height:50px;
  object-fit:contain;
  object-position:center;
  flex:0 0 auto;
  border-radius:12px;
  background:#fff;
  padding:4px;
}
body:not(.dark-theme) .brand-logo { border:1px solid #b8dce9; }
body.dark-theme .brand-logo { border:1px solid #405b73; }
.sidebar .brand-logo { width:200px; height:68px; }
.sidebar .brand-logo { object-fit:cover; object-position:center 48%; }
.login-visual .brand-logo { width:86px; height:86px; background:#fff; padding:5px; }
.mobile-brand .brand-logo { width:68px; height:68px; background:#fff; padding:4px; }
.profile-page-topbar .brand-logo { width:200px; height:68px; }
.profile-page-topbar .brand-logo { transform:none; }
.admin-page-topbar::before {
  content:"";
  width:200px;
  height:68px;
  flex:0 0 200px;
  border-radius:12px;
  background:#fff url('assets/logo-gcf-login.png') center/cover no-repeat;
  padding:4px;
  box-sizing:border-box;
}
.admin-page-topbar .profile { display:none!important; }
.profile-page-topbar .brand { order:0!important; margin-right:auto; }
.profile-page-topbar .global-theme-toggle { order:1!important; margin-left:0!important; }
.profile-page-topbar .back-link { order:2!important; margin-left:0!important; }
.admin-page-topbar::before { display:none!important; }
.admin-page-topbar .admin-page-brand { display:flex; align-items:center; flex:0 0 auto; }
.admin-page-topbar .brand-logo { width:200px; height:68px; }
.profile-page-topbar .brand-logo,.admin-page-topbar .brand-logo { object-fit:cover; object-position:center 48%; }
.profile-page-topbar,.admin-page-topbar { height:92px!important; }
.profile-page-topbar .brand,.admin-page-topbar .admin-page-brand { display:flex; align-items:center; height:100%; }

@keyframes ui-page-in {
  from { opacity:0; transform:translateY(10px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes ui-rise {
  from { opacity:0; transform:translateY(14px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes ui-modal-in {
  from { opacity:0; transform:translateY(18px) scale(.97); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes ui-glow {
  0%,100% { box-shadow:0 0 0 rgba(109,143,235,0); }
  50% { box-shadow:0 0 0 5px rgba(109,143,235,.10); }
}

body { animation:ui-page-in .42s ease both; }
.sidebar { animation:ui-page-in .48s ease both; }
.topbar { animation:ui-page-in .42s ease .04s both; }
.page-heading,.admin-page-heading,.profile-page-heading { animation:ui-rise .5s ease .08s both; }
.panel,.stat-card,.profile-card,.admin-card { animation:ui-rise .52s ease .14s both; }
.panel:nth-of-type(2),.stat-card:nth-of-type(2) { animation-delay:.20s; }
.panel:nth-of-type(3),.stat-card:nth-of-type(3) { animation-delay:.26s; }

.brand-mark { transition:transform .22s ease, box-shadow .22s ease; }
.brand:hover .brand-mark { transform:rotate(-6deg) scale(1.06); box-shadow:0 7px 18px rgba(93,126,225,.28); }
.nav-item { overflow:hidden; }
.nav-item::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.08) 48%,transparent 76%);
  transform:translateX(-120%);
  transition:transform .5s ease;
  pointer-events:none;
}
.nav-item:hover::after { transform:translateX(120%); }
.nav-item b { transition:transform .2s ease, background .2s ease; }
.nav-item:hover b { transform:scale(1.06); }

.panel,.stat-card,.profile-menu,.modal { transition:box-shadow .24s ease, transform .24s ease, border-color .24s ease; }
.panel:hover,.stat-card:hover { transform:translateY(-2px); }
.btn,.action-btn,.theme-toggle,.global-theme-toggle,.close-btn { transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover,.action-btn:hover,.theme-toggle:hover,.global-theme-toggle:hover { transform:translateY(-2px); }
.btn:active,.action-btn:active,.theme-toggle:active,.global-theme-toggle:active { transform:translateY(0) scale(.97); }
.btn-primary:hover { box-shadow:0 10px 24px rgba(79,117,232,.30); }
.close-btn:hover { transform:rotate(8deg) scale(1.06); }
.modal { animation:ui-modal-in .28s cubic-bezier(.22,.8,.26,1) both; }
.profile-menu { animation:ui-modal-in .22s ease both; transform-origin:top right; }
.profile-menu .profile-menu-item { transition:background .18s ease, transform .18s ease; }
.profile-menu .profile-menu-item:hover { transform:translateX(3px); }
.task-status,.status-todo,.status-doing,.status-done { transition:transform .2s ease, filter .2s ease; }
.task-status:hover,.status-todo:hover,.status-doing:hover,.status-done:hover { transform:scale(1.04); filter:brightness(1.08); }
tbody tr:hover .action-btn { animation:ui-glow .9s ease; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

/* Navegação e menus: movimento curto, estável e sem o salto da animação global. */
body,.sidebar,.topbar,.page-heading,.admin-page-heading,.profile-page-heading,.panel,.stat-card { animation:none!important; }
.profile-menu { animation:profile-menu-clean-in .15s ease-out both!important; transform-origin:top right; }
.profile-menu.profile-menu-closing { animation:profile-menu-clean-out .12s ease-in both!important; }
.profile-menu .profile-menu-item:hover { transform:none; }
.modal { animation:dialog-clean-in .18s ease-out both!important; }
@keyframes profile-menu-clean-in { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }
@keyframes profile-menu-clean-out { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-2px); } }
@keyframes dialog-clean-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* Login alinhado à identidade da logo */
.login-panel {
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  align-items:center;
  background:linear-gradient(145deg,#ffffff 0%,#f2f9fc 100%);
}
.login-panel::before,
.login-panel::after {
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border:1px solid rgba(37,169,216,.14);
  border-radius:50%;
  pointer-events:none;
  animation:login-orbit 14s ease-in-out infinite alternate;
}
.login-panel::before { top:-180px; right:-110px; box-shadow:0 0 0 32px rgba(37,169,216,.035),0 0 0 64px rgba(23,97,131,.025); }
.login-panel::after { bottom:-250px; left:-170px; width:520px; height:520px; animation-delay:-5s; }
@keyframes login-orbit {
  from { transform:translate3d(-18px,8px,0) rotate(-5deg); }
  to { transform:translate3d(18px,-14px,0) rotate(7deg); }
}
.login-content {
  position:relative;
  z-index:1;
  width:min(390px,100%);
  margin:0;
  text-align:center;
}
.login-content h2 { color:#185f80; }
.login-content .eyebrow { color:#149fcf; }
.login-subtitle { max-width:340px; margin-left:auto; margin-right:auto; }
.form-stack { text-align:left; }
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  border-color:#25a9d8;
  box-shadow:0 0 0 3px rgba(37,169,216,.16);
}
.login-panel .btn-primary {
  background:linear-gradient(135deg,#27add9 0%,#176183 100%);
  box-shadow:0 8px 18px rgba(23,97,131,.22);
}
.login-panel .btn-primary:hover {
  background:linear-gradient(135deg,#39b9e2 0%,#12536f 100%);
  box-shadow:0 11px 24px rgba(23,97,131,.28);
}
.login-panel .demo-hint strong { color:#176183; }
.login-panel .login-copyright { position:absolute; z-index:1; left:0; right:0; bottom:22px; color:#7294a4; }
.login-visual .brand-light .brand-logo,
.login-panel .mobile-brand .brand-logo { outline:2px solid rgba(37,169,216,.18); }
@media(max-width:900px){
  .login-panel { padding:30px 22px 64px; }
  .login-content { margin:0 auto; }
}

/* Nova composição da tela de login: acesso centralizado */
.login-screen {
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 18%,rgba(37,169,216,.16),transparent 26%),
    radial-gradient(circle at 84% 78%,rgba(23,97,131,.24),transparent 32%),
    linear-gradient(135deg,#0c1729 0%,#12243c 52%,#0b1525 100%);
}
.login-visual { display:none!important; }
.login-panel {
  width:100%;
  min-height:100vh;
  padding:72px 24px 76px;
  background:transparent;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.login-panel::before,
.login-panel::after {
  width:620px;
  height:620px;
  border-color:rgba(37,169,216,.18);
  animation:login-orbit 16s ease-in-out infinite alternate;
}
.login-panel::before { top:-360px; right:-110px; box-shadow:0 0 0 34px rgba(37,169,216,.045),0 0 0 68px rgba(23,97,131,.035); }
.login-panel::after { bottom:-410px; left:-170px; width:700px; height:700px; animation-delay:-6s; }
.mobile-brand {
  position:relative;
  z-index:1;
  display:flex!important;
  justify-content:center;
  margin:0 0 24px;
}
.mobile-brand .brand-logo {
  width:88px;
  height:88px;
  background:#fff;
  padding:5px;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(0,0,0,.20);
}
.login-content {
  position:relative;
  z-index:1;
  width:min(430px,100%);
  max-width:430px;
  margin:0;
  padding:34px 36px;
  border:1px solid rgba(129,183,211,.20);
  border-radius:22px;
  background:rgba(18,35,59,.82);
  box-shadow:0 24px 70px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05);
  text-align:center;
  backdrop-filter:blur(10px);
}
.login-content h2 { color:#f2f7ff; }
.login-content .eyebrow { color:#42c4eb; }
.login-subtitle { color:#a9bfd2; }
.form-stack { text-align:left; }
.form-stack label { color:#c5d6e6; }
.form-stack input {
  color:#edf7ff;
  background:#172b46;
  border-color:#385775;
}
.form-stack input::placeholder { color:#7891aa; }
.form-stack input:focus {
  border-color:#2db5df;
  box-shadow:0 0 0 3px rgba(45,181,223,.16);
}
.login-panel .btn-primary {
  background:linear-gradient(135deg,#28b1dc 0%,#176b8e 100%);
}
.login-panel .login-copyright { color:#7d9bb0; }
@media(max-width:520px){
  .login-panel { padding:62px 16px 64px; }
  .login-content { padding:28px 22px; border-radius:18px; }
}

/* Ajuste final do login: compacto, sem rolagem e com temas separados */
.login-screen {
  height:100vh;
  min-height:0;
  overflow:hidden;
}
.login-panel {
  height:100vh;
  min-height:0;
  padding:42px 18px 54px;
}
.mobile-brand { margin-bottom:14px; }
.mobile-brand .brand-logo { width:64px; height:64px; border-radius:14px; }
.mobile-brand .login-brand-symbol {
  display:block;
  width:58px;
  height:58px;
  flex:0 0 58px;
  border-radius:13px;
  background:#fff url('assets/logo-gcf-transparent.png') left center/220px auto no-repeat;
  box-shadow:0 10px 22px rgba(23,97,131,.16);
}
.mobile-brand .login-brand-name {
  color:#176183;
  font:700 17px/1.08 'Space Grotesk',sans-serif;
  letter-spacing:.25px;
  text-align:left;
  max-width:130px;
}
.mobile-brand .login-brand-name b { color:#27aeda; font-weight:700; }
.mobile-brand .login-logo-image {
  width:286px;
  height:124px;
  object-fit:cover;
  object-position:center;
  border-radius:14px;
  background:#fff;
  padding:20px;
  box-shadow:0 10px 24px rgba(23,97,131,.16);
  outline:0;
}
body:not(.dark-theme) .mobile-brand .login-logo-image { border-color:#a8d5e5; }
body.dark-theme .mobile-brand .login-logo-image { border-color:#405b73; }
.login-content {
  width:min(400px,calc(100vw - 32px));
  padding:25px 30px;
  border-color:#cbe7f1;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 48px rgba(23,97,131,.14);
}
.login-content h2 { color:#176183; font-size:30px; }
.login-subtitle { color:#66859a; }
.form-stack { gap:13px; margin-top:22px; }
.form-stack label { color:#41677c; }
.form-stack input {
  color:#183348;
  background:#f8fcfe;
  border-color:#b8dce9;
  padding:10px 12px;
}
.login-panel .btn-full { padding:12px; }
.login-panel .login-copyright { bottom:12px; }
.dark-theme .login-screen {
  background:
    radial-gradient(circle at 18% 18%,rgba(37,169,216,.13),transparent 26%),
    radial-gradient(circle at 84% 78%,rgba(23,97,131,.25),transparent 32%),
    linear-gradient(135deg,#0c1729 0%,#12243c 52%,#0b1525 100%);
}
.dark-theme .login-panel { background:transparent; }
.dark-theme .login-content {
  border-color:rgba(129,183,211,.20);
  background:rgba(18,35,59,.88);
  box-shadow:0 24px 60px rgba(0,0,0,.28);
}
.dark-theme .login-content h2 { color:#f2f7ff; }
.dark-theme .login-subtitle { color:#a9bfd2; }
.dark-theme .form-stack label { color:#c5d6e6; }
.dark-theme .form-stack input {
  color:#edf7ff;
  background:#172b46;
  border-color:#385775;
}
.dark-theme .mobile-brand .login-brand-name { color:#e8f4fb; }
.dark-theme .mobile-brand .login-brand-name b { color:#42c4eb; }
@media(max-width:520px){
  .login-panel { padding:36px 12px 48px; }
  .login-content { width:min(380px,calc(100vw - 24px)); padding:22px 20px; }
  .login-content h2 { font-size:27px; }
  .form-stack { margin-top:18px; }
}

/* Fundo animado adaptado ao tema */
.login-screen {
  background:
    radial-gradient(circle at 12% 15%,rgba(39,177,220,.22),transparent 24%),
    radial-gradient(circle at 88% 82%,rgba(23,97,131,.13),transparent 30%),
    linear-gradient(135deg,#f9fdff 0%,#eaf7fb 52%,#f4fbfd 100%);
}
.login-panel::before,
.login-panel::after {
  border-color:rgba(23,97,131,.16);
  box-shadow:0 0 0 34px rgba(39,177,220,.055),0 0 0 68px rgba(23,97,131,.035);
}
.login-panel::after { box-shadow:0 0 0 38px rgba(39,177,220,.045),0 0 0 76px rgba(23,97,131,.03); }
.dark-theme .login-screen {
  background:
    radial-gradient(circle at 12% 15%,rgba(39,177,220,.14),transparent 24%),
    radial-gradient(circle at 88% 82%,rgba(23,97,131,.28),transparent 30%),
    linear-gradient(135deg,#0b1525 0%,#12243c 52%,#091322 100%);
}
.dark-theme .login-panel::before,
.dark-theme .login-panel::after {
  border-color:rgba(68,196,235,.18);
  box-shadow:0 0 0 34px rgba(39,177,220,.045),0 0 0 68px rgba(23,97,131,.035);
}

/* Cartão de perfil adaptado ao tema claro */
.profile-summary-card {
  background:#fff!important;
  color:#182338!important;
  border:1px solid #dfe7ef;
  box-shadow:0 14px 30px rgba(33,57,87,.10)!important;
}
.profile-summary-card>p { color:#71839a!important; }
.profile-summary-divider { background:#e4ebf2!important; }
.profile-summary-row span { color:#8494a7!important; }
.profile-summary-row strong { color:#243247; }
.dark-theme .profile-summary-card { background:linear-gradient(145deg,#202f54,#172238)!important; color:#fff!important; border-color:transparent; box-shadow:0 15px 30px #17223820!important; }
.dark-theme .profile-summary-card>p { color:#b5c2db!important; }
.dark-theme .profile-summary-divider { background:#ffffff22!important; }
.dark-theme .profile-summary-row span { color:#8f9fbb!important; }
.dark-theme .profile-summary-row strong { color:#fff; }

@media(min-width:701px){
  body.profile-page { height:100vh; overflow:hidden; }
  .profile-page-topbar { height:76px; }
  .profile-page-content { padding-top:22px; padding-bottom:14px; }
  .profile-page-heading { margin-bottom:13px; }
  .profile-page-heading h1 { font-size:29px; margin-bottom:4px; }
  .profile-page-heading p:not(.eyebrow) { font-size:12px; }
  .profile-layout { gap:12px; }
  .profile-summary-card { padding:16px 18px; }
  .profile-avatar-large { width:56px; height:56px; border-radius:16px; font-size:23px; margin-bottom:10px; }
  .profile-summary-card h2 { font-size:17px; margin-bottom:3px; }
  .profile-summary-card>p { font-size:11px; }
  .profile-summary-divider { margin:13px 0 9px; }
  .profile-summary-row { margin-top:8px; gap:2px; }
  .profile-summary-row span { font-size:9px; }
  .profile-summary-row strong { font-size:11px; }
  .profile-form-card { padding:16px 20px; }
  .profile-form-card .panel-header { margin-bottom:10px; }
  .profile-form-card .panel-header h2 { font-size:16px; }
  .profile-form-card .panel-header p { font-size:10px; }
  .profile-form-card .task-form { gap:10px; }
  .profile-form-card label { gap:5px; font-size:11px; }
  .profile-form-card input { padding:9px 11px; }
  .profile-form-card .profile-security-action { margin-top:2px; padding-top:10px; }
  .profile-form-card .profile-security-action small { font-size:9px; margin-top:2px; }
  .profile-form-card .profile-account-actions { margin-top:10px; }
  .profile-form-card .btn { padding:10px 14px; }
}

/* Brilho dourado mais discreto no perfil do administrador */
.avatar.admin-avatar,
.mini-avatar.admin-avatar,
.profile-avatar-large.admin-avatar {
  box-shadow:0 0 4px rgba(242,193,75,.30)!important;
  text-shadow:0 0 2px rgba(255,247,199,.35)!important;
}
.profile:has(.admin-avatar)>div>strong,
.profile-menu-heading:has(.admin-avatar) strong,
.archive-page-profile:has(.admin-avatar)>div>strong,
.admin-page-topbar .profile strong,
.profile-summary-card:has(.admin-avatar) h2 {
  text-shadow:0 0 2px rgba(242,193,75,.28)!important;
}

/* Remove decorações do título da visão geral */
.app-shell .page-heading .wave { display:none!important; }
.app-shell .page-heading h1::after { display:none!important; }

/* Nova tarefa: destaque animado, mantendo a identidade azul do sistema */
#new-task-btn,
#new-user-btn {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:148px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(135deg,#6389f0 0%,#4f75e8 52%,#3860d0 100%);
  box-shadow:0 9px 20px rgba(79,117,232,.26),0 0 0 0 rgba(99,137,240,.28);
  transition:transform .24s ease,box-shadow .24s ease,filter .24s ease;
  animation:new-task-breathe 3.8s ease-in-out infinite;
}
#new-task-btn::before,
#new-user-btn::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-45% auto -45% -35%;
  width:34%;
  transform:skewX(-20deg) translateX(-220%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);
  animation:new-task-shine 3.8s ease-in-out infinite;
}
#new-task-btn span,
#new-user-btn span {
  font-size:17px;
  line-height:1;
  transition:transform .24s ease;
}
#new-task-btn:hover,
#new-user-btn:hover {
  filter:saturate(1.08) brightness(1.04);
  transform:translateY(-3px) scale(1.015);
  box-shadow:0 14px 28px rgba(79,117,232,.34),0 0 0 5px rgba(99,137,240,.10);
  animation:none;
}
#new-task-btn:hover span,
#new-user-btn:hover span { transform:rotate(90deg) scale(1.08); }
#new-task-btn:active,
#new-user-btn:active { transform:translateY(-1px) scale(.99); }
@keyframes new-task-shine {
  0%,58% { transform:skewX(-20deg) translateX(-220%); opacity:0; }
  66% { opacity:1; }
  78%,100% { transform:skewX(-20deg) translateX(520%); opacity:0; }
}
@keyframes new-task-breathe {
  0%,100% { box-shadow:0 9px 20px rgba(79,117,232,.26),0 0 0 0 rgba(99,137,240,.28); }
  50% { box-shadow:0 11px 23px rgba(79,117,232,.31),0 0 0 5px rgba(99,137,240,.08); }
}
@media (prefers-reduced-motion:reduce) {
  #new-task-btn,
  #new-task-btn::before,
  #new-user-btn,
  #new-user-btn::before { animation:none; }
}

/* Transição suave da troca entre modo claro e escuro */
body,
.app-shell,
.main-content,
.topbar,
.panel,
.stat-card,
.modal,
.profile-page,
.profile-page-topbar,
.profile-summary-card,
.profile-form-card,
.admin-page-shell,
.admin-page-topbar,
.admin-page-panel,
.admin-summary>div,
input,
select,
textarea {
  transition:background-color .38s ease,color .38s ease,border-color .38s ease,box-shadow .38s ease;
}
.theme-toggle,
.global-theme-toggle,
.login-theme-toggle {
  transition:transform .38s ease,background-color .38s ease,color .38s ease,border-color .38s ease,box-shadow .38s ease;
}
.theme-toggle:active,
.global-theme-toggle:active,
.login-theme-toggle:active {
  animation:theme-toggle-spin .42s ease;
}
@keyframes theme-toggle-spin {
  from { transform:rotate(0) scale(1); }
  50% { transform:rotate(180deg) scale(1.12); }
  to { transform:rotate(360deg) scale(1); }
}
@media (prefers-reduced-motion:reduce) {
  body,
  body * { transition:none!important; animation:none!important; }
}

/* Notificações ficam ancoradas ao botão, e não centralizadas como os modais */
#notifications-modal.modal-backdrop:not(.hidden) {
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100vw!important;
  height:100vh!important;
  display:block!important;
  padding:0!important;
  background:transparent!important;
  pointer-events:auto!important;
}
#notifications-modal .notifications-modal {
  position:fixed!important;
  top:76px!important;
  right:4.5%!important;
  left:auto!important;
  margin:0!important;
  width:min(430px,calc(100vw - 32px))!important;
  max-width:none!important;
  transform:none!important;
}

#task-notification-toast {
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:1100;
  display:flex;
  align-items:center;
  gap:11px;
  width:min(360px,calc(100vw - 32px));
  padding:13px 14px;
  border:1px solid rgba(126,157,225,.30);
  border-radius:13px;
  background:rgba(24,35,56,.97);
  color:#fff;
  box-shadow:0 16px 38px rgba(15,29,53,.28);
  opacity:0;
  pointer-events:none;
  transform:translateY(18px) scale(.97);
  transition:opacity .25s ease,transform .25s ease;
}
#task-notification-toast.show { opacity:1; pointer-events:auto; transform:translateY(0) scale(1); }
.task-notification-toast-icon {
  display:grid;
  place-items:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#4f75e8;
  color:#fff;
  font-weight:800;
}
.task-notification-toast-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:3px; }
.task-notification-toast-copy strong { font-size:12px; }
.task-notification-toast-copy small { overflow:hidden; color:#b9c7dc; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
#task-notification-toast button { border:0; border-radius:7px; padding:7px 9px; background:#6389f0; color:#fff; cursor:pointer; font:600 10px 'DM Sans'; }
#task-notification-toast .task-notification-toast-close { padding:2px 5px; background:transparent; color:#9eacc2; font-size:17px; }
body:not(.dark-theme) #task-notification-toast { border-color:#c9d8f5; background:#fff; color:#182338; box-shadow:0 16px 38px rgba(33,57,87,.20); }
body:not(.dark-theme) .task-notification-toast-copy small { color:#6f7f98; }
@media(max-width:650px){ #task-notification-toast { right:16px; bottom:16px; } }
@media(max-width:650px){
  #notifications-modal .notifications-modal {
    top:66px!important;
    right:16px!important;
    width:calc(100vw - 32px)!important;
  }
}

/* O OrganizaTI não usa anexos nem exportações nesta versão. */
.attachment-label,
#task-attachments,
.export-actions { display: none !important; }

/* Menu do perfil no mobile: ancorado na tela, sem escapar para fora do viewport. */
@media(max-width:650px){
  .topbar { z-index:120; }
  .profile-wrap { position:static; }
  .profile-menu {
    position:fixed;
    top:66px;
    right:12px;
    left:auto;
    width:min(250px,calc(100vw - 24px));
    max-height:calc(100vh - 80px);
    overflow-y:auto;
  }
}
