:root {
    --bg: #000;
    --panel: #070b12;
    --card: #0d121b;
    --border: #1c2634;
    --yellow: #f7c600;
    --text: #fff;
    --muted: #8d97a8;
    --red: #ff4d4d;
    --green: #50d94c;
    --orange: #ff8a22;
    --blue: #4c8dff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #000;
    color: var(--text)
}

a {
    text-decoration: none
}

.landing,
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000
}

.landing-card {
    text-align: center
}

.landing-logo {
    width: 620px;
    max-width: 90vw;
    filter: drop-shadow(0 0 30px rgba(247, 198, 0, .18))
}

.landing-subtitle,
.login-box p {
    color: var(--muted);
    font-size: 20px
}

.btn-primary {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd400, #f4a900);
    color: #111;
    font-weight: 800;
    padding: 13px 22px;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(247, 198, 0, .18)
}

.btn-ghost {
    border: 1px solid var(--border);
    background: #080c14;
    color: #cfd6e4;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer
}

.login-box {
    width: 500px;
    max-width: 92vw;
    padding: 0px;
    background: rgba(13, 18, 27, .85);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center
}

.login-logo {
    width:500px;
    max-width:95vw;
    height:auto;

    display:block;
    margin:0 auto 10px auto;
}

.login-box input {
    height:40px;
    padding: 0px 12px;
    margin-top: 8px;
    font-size: 14px;
}

.login-box .btn-primary {
    margin-top: 25px;
    width: 70%;
    padding: 12px;
}

.login-box input,
.filters select,
.filters input,
.top-actions input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input {
    width: 70%;
    background: #070b12;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 12px;
    padding: 13px;
    margin-top: 10px
}

.msg {
    margin-top: 15px;
    color: var(--red)
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px
}

.brand img {
    width: 230px
}

.brand h1 {
    margin: 0;
    font-size: 32px
}

.brand span {
    color: var(--muted)
}

.top-actions {
    display: flex;
    gap: 12px;
    align-items: center
}

.top-actions input {
    width: 320px;
    margin: 0
}

.dashboard {
    padding: 24px 32px
}

.totals {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.total-card,
.filters,
.column,
.stat-card,
.modal-content {
    background: linear-gradient(180deg, rgba(13, 18, 27, .95), rgba(7, 11, 18, .95));
    border: 1px solid var(--border);
    border-radius: 18px
}

.total-card {
    padding: 22px
}

.total-card span {
    display: block;
    color: #cfd6e4
}

.total-card strong {
    font-size: 34px;
    display: block;
    margin: 6px 0
}

.total-card small {
    color: var(--muted)
}

.filters {
    margin: 16px 0;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: end
}

.filters label {
    color: #cfd6e4;
    font-size: 13px
}

.filters select {
    margin-top: 6px
}

.kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.column {
    padding: 14px;
    min-height: 420px
}

.column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

.column-head h2 {
    font-size: 16px
}

.column-head b {
    background: rgba(247, 198, 0, .15);
    color: var(--yellow);
    border-radius: 999px;
    padding: 4px 10px
}

.column.aguardando-acao {
    border-color: rgba(255, 138, 34, .45)
}

.column.em-andamento {
    border-color: rgba(247, 198, 0, .45)
}

.column.parada {
    border-color: rgba(255, 77, 77, .45)
}

.column.concluida {
    border-color: rgba(80, 217, 76, .45)
}

.demand-card {
    background: #08101a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: .2s
}

.demand-card:hover {
    transform: translateY(-2px);
    border-color: rgba(247, 198, 0, .35)
}

.card-top,
.meta,
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.tag,
.priority {
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 7px;
    padding: 4px 8px;
    font-weight: 800
}

.tag.bug,
.priority.alta,
.priority.urgente {
    background: rgba(255, 77, 77, .15);
    color: #ff6b6b
}

.tag.desenvolvimento {
    background: rgba(80, 217, 76, .16);
    color: #75ee72
}

.tag.tarefa,
.priority.normal {
    background: rgba(247, 198, 0, .16);
    color: var(--yellow)
}

.tag.suporte {
    background: rgba(126, 87, 255, .2);
    color: #a98cff
}

.tag.documentacao,
.priority.baixa {
    background: rgba(76, 141, 255, .18);
    color: #6ea2ff
}

.priority.media {
    background: rgba(141, 151, 168, .18);
    color: #cfd6e4
}

.demand-card h3 {
    font-size: 15px;
    margin: 12px 0 6px
}

.demand-card p {
    color: #cfd6e4;
    font-size: 13px;
    line-height: 1.45
}

.meta {
    color: #cfd6e4;
    font-size: 12px;
    margin: 12px 0
}

.card-actions button {
    background: #101a27;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer
}

.timer {
    color: var(--yellow);
    font-weight: 800
}

.stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.stat-card {
    padding: 18px;
    min-height: 260px
}

.stat-card.wide {
    grid-column: span 1
}

.stat-card h3 {
    margin-top: 0
}

.load-row,
.due-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: #cfd6e4
}

.due-row em {
    color: var(--yellow);
    font-style: normal
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99
}

.modal.show {
    display: flex
}

.modal-content {
    width: 520px;
    max-width: 96vw;
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    position: relative
}

.modal-content.large {
    width: 1250px;
    max-width: 96vw;
}

.close {
    position: absolute;
    right: 18px;
    top: 16px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.form-grid textarea {
    grid-column: span 2;
    min-height: 90px
}

.form-grid button {
    grid-column: span 2
}

.detail-desc {
    color: #cfd6e4;
    line-height: 1.5
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0
}

.detail-grid span {
    background: #070b12;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: #cfd6e4
}

.inline-form {
    display: flex;
    gap: 10px
}

.inline-form input {
    margin: 0
}

.timeline>div,
.files a {
    display: block;
    background: #070b12;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    color: #cfd6e4
}

.timeline small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px
}

.empty {
    color: var(--muted);
    padding: 20px;
    text-align: center
}

@media(max-width:1100px) {

    .totals,
    .kanban,
    .stats {
        grid-template-columns: 1fr
    }

    .filters {
        grid-template-columns: 1fr 1fr
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start
    }

    .top-actions {
        width: 100%;
        flex-wrap: wrap
    }

    .top-actions input {
        width: 100%
    }

    .brand img {
        width: 180px
    }

    .landing-logo {
        width: 460px
    }
}
/* ===============================
   Hive Board V1.3 - Dashboard compacto e ações rápidas
   =============================== */

.topbar {
    padding: 16px 24px;
}

.brand img {
    width: 190px;
}

.brand h1 {
    font-size: 26px;
}

.brand span {
    font-size: 13px;
}

.dashboard {
    padding: 18px 24px;
}

.totals {
    gap: 10px;
}

.total-card.compact,
.total-card {
    padding: 12px 16px;
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "label value"
        "small value";
    align-items: center;
}

.total-card span {
    grid-area: label;
    font-size: 13px;
    color: #cfd6e4;
}

.total-card strong {
    grid-area: value;
    font-size: 30px;
    margin: 0;
    line-height: 1;
    color: var(--yellow);
}

.total-card small {
    grid-area: small;
    font-size: 11px;
}

.active-strip {
    margin: 12px 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(13, 18, 27, .95), rgba(7, 11, 18, .95));
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.active-strip-head {
    min-width: 190px;
}

.active-strip-head strong {
    display: block;
    font-size: 14px;
}

.active-strip-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.active-users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.active-pill,
.active-empty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #08101a;
    border: 1px solid rgba(247, 198, 0, .18);
    border-radius: 999px;
    padding: 8px 11px;
    color: #cfd6e4;
    font-size: 12px;
}

.active-pill b {
    color: #fff;
}

.active-pill small {
    color: #cfd6e4;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-pill em {
    color: var(--yellow);
    font-style: normal;
    font-weight: 800;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #6e7687;
}

.dot.on {
    background: var(--green);
    box-shadow: 0 0 12px rgba(80, 217, 76, .6);
}

.filters {
    margin: 12px 0;
    padding: 12px;
    gap: 10px;
}

.filters label {
    font-size: 12px;
}

.filters select,
.filters input,
.top-actions input {
    padding: 9px 11px;
    border-radius: 10px;
}

.kanban {
    gap: 10px;
}

.column {
    padding: 10px;
    min-height: 360px;
    border-radius: 16px;
}

.column-head {
    margin-bottom: 8px;
}

.column-head h2 {
    font-size: 13px;
    letter-spacing: .4px;
}

.demand-card {
    padding: 10px;
    margin-bottom: 9px;
    border-radius: 12px;
}

.demand-card.working {
    border-color: rgba(247, 198, 0, .55);
    box-shadow: 0 0 20px rgba(247, 198, 0, .08);
}

.demand-card h3 {
    font-size: 14px;
    margin: 9px 0 4px;
}

.demand-card p {
    font-size: 12px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    font-size: 11px;
    margin: 9px 0;
    align-items: flex-start;
}

.meta span {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-status {
    margin-bottom: 8px;
}

.status-select {
    width: 100%;
    background: #070b12;
    border: 1px solid var(--border);
    color: #cfd6e4;
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 11px;
    outline: none;
}

.card-actions {
    align-items: center;
}

.work-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mini-btn {
    background: #101a27;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 9px;
    padding: 7px 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.mini-btn.primary {
    color: #111;
    background: linear-gradient(135deg, #ffd400, #f4a900);
    border: 0;
}

.mini-btn.warn {
    border-color: rgba(255, 138, 34, .45);
    color: #ffb466;
}

.mini-btn.ok {
    border-color: rgba(80, 217, 76, .45);
    color: #75ee72;
}

.card-timer {
    font-size: 12px;
    background: rgba(247, 198, 0, .12);
    border: 1px solid rgba(247, 198, 0, .25);
    border-radius: 999px;
    padding: 4px 7px;
}

.stats {
    margin-top: 14px;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.stat-card {
    padding: 14px;
    min-height: 210px;
}

.stat-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-card canvas {
    max-height: 160px;
}

.load-row,
.due-row {
    padding: 8px 0;
    font-size: 12px;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.detail-actions {
    min-width: 230px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-actions .status-select {
    width: 100%;
}

@media(max-width:1300px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:1100px) {
    .active-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   V1.4 - Demanda em execução destacada fora do Kanban
   ========================================================= */
.current-work{
    margin:16px 0 14px;
}

.current-work-empty,
.current-work-card{
    background:linear-gradient(135deg, rgba(247,198,0,.13), rgba(7,11,18,.96) 45%, rgba(13,18,27,.98));
    border:1px solid rgba(247,198,0,.45);
    border-radius:18px;
    padding:16px 18px;
    box-shadow:0 0 34px rgba(247,198,0,.10);
}

.current-work-empty{
    color:#cfd6e4;
}

.current-work-empty strong{
    display:block;
    color:#fff;
    font-size:15px;
    margin-bottom:4px;
}

.current-work-empty span{
    color:var(--muted);
    font-size:13px;
}

.current-work-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    cursor:pointer;
    position:relative;
    overflow:hidden;
}

.current-work-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:radial-gradient(circle at left, rgba(247,198,0,.17), transparent 38%);
    pointer-events:none;
}

.current-work-main,
.current-work-side{
    position:relative;
    z-index:1;
}

.current-label{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--yellow);
    text-transform:uppercase;
    letter-spacing:1.5px;
    font-size:11px;
    font-weight:900;
}

.pulse-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--yellow);
    box-shadow:0 0 0 0 rgba(247,198,0,.7);
    animation:hivePulse 1.7s infinite;
}

@keyframes hivePulse{
    0%{box-shadow:0 0 0 0 rgba(247,198,0,.7)}
    70%{box-shadow:0 0 0 12px rgba(247,198,0,0)}
    100%{box-shadow:0 0 0 0 rgba(247,198,0,0)}
}

.current-work-card h2{
    margin:8px 0 6px;
    font-size:20px;
}

.current-work-card p{
    margin:0;
    color:#cfd6e4;
    font-size:13px;
    line-height:1.45;
    max-width:820px;
}

.current-meta{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
    color:#cfd6e4;
    font-size:12px;
}

.current-work-side{
    min-width:230px;
    text-align:right;
}

.current-timer{
    display:block;
    font-size:34px;
    line-height:1;
    margin-bottom:12px;
    color:var(--yellow);
    font-weight:900;
    letter-spacing:1px;
}

.current-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}

.demand-card.working{
    display:none;
}

.app-footer{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;

  background:rgba(2,6,23,0.9);
  backdrop-filter:blur(6px);

  border-top:1px solid #222;
  padding:10px;

  z-index:999;

  margin-top:30px;
  text-align:center;
  font-size:12px;
  color:#aaa;
}

.detail-toolbar{
    display:flex;
    gap:10px;
    align-items:center;
    margin:18px 0;
    padding:12px;
    background:#070b12;
    border:1px solid var(--border);
    border-radius:12px;
}

.detail-two-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:18px;
}

.detail-panel{
    background:#070b12;
    border:1px solid var(--border);
    border-radius:14px;
    padding:10px;
}

.detail-panel h3{
    margin:0 0 6px 0;
    font-size:20px;
    color:var(--yellow);
}

@media(max-width:900px){
    .current-work-card{
        flex-direction:column;
        align-items:flex-start;
    }
    .current-work-side{
        min-width:0;
        width:100%;
        text-align:left;
    }
    .current-actions{
        justify-content:flex-start;
    }
    .current-timer{
        font-size:28px;
    }
}

/* =========================================================
   V1.6 - Cronômetro acumulado ao pausar e retomar
   ========================================================= */
.timer-label{
    display:block;
    color:var(--muted);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:6px;
}

.card-total-time{
    font-size:12px;
    color:#cfd6e4;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    padding:4px 7px;
}
