/* =========================================================================
   ProjectFlow - estilos proprios
   Complementa o Admin Gentelella (Bootstrap 3). Reutiliza as classes do
   template (x_panel, x_title, x_content, tile_count, label bg-*) e apenas
   acrescenta o que o template nao tem: quadro Kanban, cards de tarefa,
   avatares por iniciais e seletor de cores.
   ========================================================================= */

:root {
    --pf-navy: #2A3F54;
    --pf-border: #E6E9ED;
    --pf-muted: #73879C;
    --pf-todo: #F0AD4E;
    --pf-doing: #26B99A;
    --pf-done: #1ABB9C;
}

/* --- Marca ------------------------------------------------------------ */

.site-logo {
    height: 26px;
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
}

.pf-login-brand {
    text-align: center;
    margin-bottom: 10px;
}

.pf-login-brand img {
    max-height: 90px;
    width: auto;
    /* o logotipo e branco: precisa de fundo escuro para se ver */
    background: var(--pf-navy);
    padding: 10px 18px;
    border-radius: 6px;
}

.pf-remember {
    margin: 6px 0 12px;
    font-size: 12px;
    color: var(--pf-muted);
}

/* --- Avatares por iniciais (o template usa fotografias) ---------------- */

.pf-avatar,
.profile-initials,
.navbar-initials {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: var(--pf-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-right: 2px;
    vertical-align: middle;
}

.profile-initials {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    background: #34495E;
}

.navbar-initials {
    width: 29px;
    height: 29px;
    line-height: 29px;
    margin-right: 8px;
}

.pf-avatar-more {
    background: #9AA7B5;
}

.pf-avatar-lg {
    width: 72px;
    height: 72px;
    line-height: 72px;
    font-size: 24px;
    margin-bottom: 10px;
}

.pf-members {
    margin-top: 4px;
}

.pf-member-list li {
    padding: 4px 0;
}

/* --- Cartoes de projeto ----------------------------------------------- */

.pf-project-card .x_title h2 a {
    color: var(--pf-navy);
}

.pf-project-desc {
    min-height: 40px;
    color: var(--pf-muted);
    font-size: 12px;
}

.pf-project-meta {
    margin-bottom: 10px;
}

.pf-project-meta .label {
    margin-right: 3px;
}

.pf-project-footer {
    margin: 10px 0;
    padding-top: 8px;
    border-top: 1px solid var(--pf-border);
}

.pf-project-counts {
    margin-top: 8px;
    font-size: 11px;
    color: var(--pf-muted);
}

.pf-project-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--pf-border);
}

.pf-project-row:last-child {
    border-bottom: 0;
}

.pf-deadlines li {
    padding: 8px 0;
    border-bottom: 1px solid var(--pf-border);
}

.pf-deadlines li:last-child {
    border-bottom: 0;
}

/* --- Indicadores ------------------------------------------------------ */

.pf-stat-card .x_content {
    padding-top: 10px;
}

.pf-stat-value {
    font-size: 34px;
    font-weight: 300;
    line-height: 1.1;
}

.pf-stat-todo { border-top: 3px solid var(--pf-todo); }
.pf-stat-doing { border-top: 3px solid #3498DB; }
.pf-stat-done { border-top: 3px solid var(--pf-done); }

.pf-progress-wrapper {
    margin-bottom: 8px;
}

.pf-progress-label {
    font-size: 11px;
    color: var(--pf-muted);
    margin-bottom: 3px;
}

.pf-progress-big {
    text-align: center;
    margin-bottom: 12px;
}

.pf-progress-number {
    font-size: 46px;
    font-weight: 300;
    color: var(--pf-navy);
}

.pf-progress-number small {
    font-size: 20px;
}

.pf-summary-table td {
    border-top: 1px solid var(--pf-border) !important;
    font-size: 12px;
}

.pf-summary-highlight td {
    background: #F7F9FB;
}

.pf-alert-tight {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 8px 12px;
    font-size: 12px;
}

.pf-objectives {
    background: #F7F9FB;
    border-left: 3px solid var(--pf-navy);
    padding: 10px 14px;
    font-size: 13px;
}

.pf-empty {
    padding: 40px 10px;
    color: var(--pf-muted);
}

.pf-empty .fa {
    margin-bottom: 12px;
    opacity: .35;
}

.pf-breadcrumb {
    background: transparent;
    padding-left: 0;
}

.pf-title-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}

.pf-color-chip {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
    border: 1px solid rgba(0, 0, 0, .12);
}

/* --- Quadro Kanban ---------------------------------------------------- */

.pf-board {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
}

.pf-column {
    flex: 1 1 0;
    min-width: 260px;
    background: #F4F7FA;
    border: 1px solid var(--pf-border);
    border-radius: 4px;
}

.pf-column-header {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #fff;
    border-radius: 3px 3px 0 0;
}

.pf-column-todo .pf-column-header { background: var(--pf-todo); }
.pf-column-doing .pf-column-header { background: #3498DB; }
.pf-column-done .pf-column-header { background: var(--pf-done); }

.pf-column-count {
    float: right;
    background: rgba(0, 0, 0, .22);
}

.pf-column-body {
    padding: 10px;
    min-height: 140px;
    transition: background-color .15s ease;
}

.pf-column-body.pf-dragover {
    background: #E3ECF5;
    box-shadow: inset 0 0 0 2px #3498DB;
}

.pf-column-empty {
    text-align: center;
    color: #A6B3C0;
    font-size: 12px;
    padding: 22px 0;
    border: 1px dashed #CFD8E0;
    border-radius: 4px;
}

/* --- Cards do Kanban -------------------------------------------------- */

.pf-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--pf-border);
    border-left: 4px solid #3498DB;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    transition: box-shadow .15s ease, transform .15s ease;
}

.pf-card[draggable="true"] {
    cursor: grab;
}

.pf-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, .13);
}

.pf-card.pf-dragging {
    opacity: .45;
    transform: rotate(-1deg);
}

.pf-card-color {
    height: 3px;
    border-radius: 0 3px 0 0;
}

.pf-card-body {
    padding: 10px 12px 8px;
}

.pf-card-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--pf-navy);
    margin-bottom: 4px;
}

.pf-card-title a {
    color: var(--pf-navy);
}

.pf-card-desc {
    font-size: 11px;
    color: var(--pf-muted);
    margin-bottom: 6px;
}

.pf-card-meta {
    font-size: 11px;
    color: var(--pf-muted);
    margin-bottom: 6px;
}

.pf-card-meta span {
    margin-right: 10px;
    white-space: nowrap;
}

.pf-card-warning {
    font-size: 10px;
    color: #B8860B;
    background: #FFF6E0;
    padding: 3px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.pf-card-progress {
    position: relative;
    margin-bottom: 6px;
}

.pf-card-progress .progress {
    margin-bottom: 2px;
}

.pf-card-progress-value {
    font-size: 10px;
    color: var(--pf-muted);
}

.pf-card-actions {
    border-top: 1px solid var(--pf-border);
    padding: 5px 8px;
    text-align: right;
    background: #FBFCFD;
}

.pf-card-sub .pf-card-body {
    padding: 8px 10px;
}

/* --- Seletor de cores ------------------------------------------------- */

.pf-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-color-option {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
    margin: 0;
}

.pf-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-color-option .fa {
    display: none;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

.pf-color-option.selected {
    border-color: var(--pf-navy);
}

.pf-color-option.selected .fa {
    display: block;
}

/* --- Formularios ------------------------------------------------------ */

.pf-form .required {
    color: #E74C3C;
}

.pf-form .help-block {
    font-size: 11px;
}

.top-actions .btn {
    margin-left: 4px;
}

/* --- Notificacoes leves ----------------------------------------------- */

.pf-toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2050;
    width: 280px;
}

.pf-toast {
    background: var(--pf-navy);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.pf-toast.pf-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.pf-toast-error {
    background: #E74C3C;
}

.pf-toast-success {
    background: #1ABB9C;
}

/* --- Responsivo ------------------------------------------------------- */

@media (max-width: 767px) {
    .pf-board {
        flex-direction: column;
    }

    .pf-column {
        min-width: 100%;
    }
}
