/* ===========================
   SISTEMA DE TAREFAS - CSS
   ImaginaTech - Gestão de Tarefas
   =========================== */

/* ===========================
   ÍCONE DE TAREFAS NO HEADER
   =========================== */

.tasks-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-tasks {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-tasks:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    border-color: var(--neon-blue);
    background: var(--glass-bg);
}

/* Badge contador */
.tasks-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--neon-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 0, 85, 0.5);
    z-index: 1;
}

/* Animação piscante */
.tasks-badge.pulsing {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 0, 85, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 16px rgba(255, 0, 85, 0.8);
    }
}

/* ===========================
   DROPDOWN DE TAREFAS
   =========================== */

.tasks-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 750px;
    max-height: calc(100vh - 120px);
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Container principal com layout lado a lado */
.tasks-dropdown-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Seção principal de tarefas */
.tasks-main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.tasks-dropdown.active {
    display: flex;
    animation: dropdownSlideIn 0.3s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header do dropdown */
.tasks-dropdown-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(153, 69, 255, 0.1));
}

.tasks-dropdown-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-blue);
}

.tasks-dropdown-title i {
    font-size: 1.3rem;
}

.tasks-dropdown-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-close-dropdown {
    padding: 0.4rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Oculto por padrão, visível apenas no mobile */
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-close-dropdown:hover {
    background: var(--neon-red);
    color: white;
    border-color: var(--neon-red);
}

.btn-new-task {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-new-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Estilos do admin-overview removidos - integrado ao painel de último acesso */

/* Filtros */
.tasks-filters {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tasks-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    border-radius: 8px;
    padding: 0.25rem;
}

.tasks-toggle button {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tasks-toggle button.active {
    background: var(--neon-blue);
    color: white;
}

.tasks-status-filter {
    padding: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tasks-status-filter:hover {
    border-color: var(--neon-blue);
}

/* Lista de tarefas */
.tasks-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    max-height: 400px;
}

.tasks-list::-webkit-scrollbar {
    width: 6px;
}

.tasks-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.tasks-list::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

/* Card de tarefa */
.task-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.task-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

/* Cores por prioridade */
.task-card.priority-alta {
    border-left-color: var(--neon-red);
}

.task-card.priority-media {
    border-left-color: var(--neon-yellow);
}

.task-card.priority-baixa {
    border-left-color: var(--neon-green);
}

.task-card.completed {
    opacity: 0.6;
    border-left-color: rgba(255, 255, 255, 0.3);
}

.task-card.completed .task-title {
    text-decoration: line-through;
}

/* Conteúdo do card */
.task-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.task-checkbox:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
}

.task-checkbox.checked {
    background: var(--neon-green);
    border-color: var(--neon-green);
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.task-card-content {
    flex: 1;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.task-priority-icon {
    font-size: 0.8rem;
}

.task-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.task-meta-item i {
    font-size: 0.75rem;
}

.task-category {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Estado vazio */
.tasks-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.tasks-empty i {
    font-size: 3rem;
    color: var(--glass-border);
    margin-bottom: 1rem;
}

.tasks-empty p {
    margin: 0.5rem 0;
}

/* Link tarefas concluídas */
.tasks-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.tasks-footer a {
    color: var(--neon-purple);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tasks-footer a:hover {
    color: var(--neon-blue);
    text-decoration: underline;
}

/* ===========================
   MODAL DE TAREFA
   =========================== */

.task-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.task-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.task-modal {
    background: rgba(10, 14, 26, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-modal::-webkit-scrollbar {
    width: 6px;
}

.task-modal::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.task-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(153, 69, 255, 0.1));
}

.task-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: var(--neon-red);
    color: white;
    transform: rotate(90deg);
}

.task-modal-body {
    padding: 1.5rem;
}

.task-form-group {
    margin-bottom: 1.25rem;
}

.task-form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.task-form-label i {
    margin-right: 0.5rem;
    color: var(--neon-blue);
}

.task-form-label.required::after {
    content: '*';
    color: var(--neon-red);
    margin-left: 0.25rem;
}

.task-form-input,
.task-form-textarea,
.task-form-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.task-form-input:focus,
.task-form-textarea:focus,
.task-form-select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* ===========================
   DROPDOWN CUSTOMIZADO FUTURÍSTICO
   =========================== */

.task-form-select {
    /* Remove aparência padrão do navegador */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Estilo base */
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 24, 39, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    cursor: pointer;
    position: relative;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 500;

    /* Seta customizada usando gradiente */
    background-image:
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 24, 39, 0.95) 100%),
        linear-gradient(45deg, transparent 50%, var(--neon-blue) 50%),
        linear-gradient(135deg, var(--neon-blue) 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 20px) calc(50% - 2px),
        calc(100% - 15px) calc(50% - 2px);
    background-size:
        100% 100%,
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;

    /* Animação suave */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-form-select:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.task-form-select:focus {
    border-color: var(--neon-blue);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(0, 212, 255, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(26, 26, 46, 1) 0%, rgba(16, 24, 39, 1) 100%);
    transform: translateY(-2px);

    /* Seta fica mais brilhante no focus */
    background-image:
        linear-gradient(135deg, rgba(26, 26, 46, 1) 0%, rgba(16, 24, 39, 1) 100%),
        linear-gradient(45deg, transparent 50%, #00ff88 50%),
        linear-gradient(135deg, #00ff88 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 20px) calc(50% - 2px),
        calc(100% - 15px) calc(50% - 2px);
    background-size:
        100% 100%,
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

.task-form-select:active {
    transform: translateY(0);
}

/* Estilização das opções (com limitações de navegador) */
.task-form-select option {
    background-color: #16213e;
    color: #e0e0e0;
    padding: 12px 16px;
    font-weight: 500;
}

.task-form-select option:hover {
    background-color: #1e3a5f;
    color: var(--neon-blue);
}

.task-form-select option:checked,
.task-form-select option:focus {
    background: linear-gradient(135deg, #2A6EA7 0%, #1e5a8e 100%);
    color: #ffffff;
    font-weight: 600;
}

.task-form-select option:disabled {
    color: rgba(255, 255, 255, 0.3);
    background-color: rgba(26, 26, 46, 0.5);
    font-style: italic;
}

/* Efeito de glow quando aberto */
.task-form-select:focus::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    border-radius: inherit;
    opacity: 0.3;
    z-index: -1;
    filter: blur(8px);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.task-form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Multi-select de responsáveis */
.assignees-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem;
}

.assignee-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assignee-option:hover {
    background: rgba(0, 212, 255, 0.1);
}

.assignee-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--neon-blue);
    cursor: pointer;
}

.assignee-name {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Seletor de prioridade */
.priority-selector {
    display: flex;
    gap: 0.75rem;
}

.priority-option {
    flex: 1;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.priority-option:hover {
    transform: translateY(-2px);
}

.priority-option.selected {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.1);
}

.priority-option.alta {
    color: var(--neon-red);
}

.priority-option.media {
    color: var(--neon-yellow);
}

.priority-option.baixa {
    color: var(--neon-green);
}

.priority-option i {
    font-size: 1.5rem;
}

.priority-option span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Botões do modal */
.task-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-task {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-task-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    color: white;
}

.btn-task-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-task-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-task-secondary:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.1);
}

/* ===========================
   RESPONSIVIDADE MOBILE
   =========================== */

@media (max-width: 768px) {
    /* Botão de tarefas - igual aos outros */
    .btn-tasks {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    /* Dropdown com position fixed para não cortar */
    .tasks-dropdown {
        position: fixed;
        top: 70px;
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px); /* Dynamic viewport height */
        border-radius: 12px;
    }

    /* Layout empilhado no mobile */
    .tasks-dropdown-content {
        flex-direction: column;
        overflow-y: auto;
    }

    .admin-access-panel {
        width: auto !important;
        min-width: 0 !important;
        flex-shrink: 0;
        align-self: stretch;
    }

    .admin-access-item {
        padding: 0.5rem;
    }

    .admin-access-info {
        min-width: 0;
        flex: 1;
    }

    .admin-access-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }

    .tasks-main-section {
        flex: 1;
        min-height: 0;
    }

    /* Botão X visível no mobile */
    .btn-close-dropdown {
        display: flex;
    }

    .tasks-dropdown-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tasks-dropdown-title {
        font-size: 1rem;
    }

    .tasks-dropdown-title i {
        font-size: 1.1rem;
    }

    .btn-new-task {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }

    /* Filtros mais compactos */
    .tasks-filters {
        padding: 0.85rem 1rem;
        gap: 0.65rem;
    }

    .tasks-toggle button {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    .tasks-status-filter {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* Lista de tarefas - ocupa máximo possível */
    .tasks-list {
        padding: 0.85rem 1rem;
        max-height: calc(100vh - 300px);
        max-height: calc(100dvh - 300px);
        flex: 1;
    }

    /* Cards mais compactos e touch-friendly */
    .task-card {
        padding: 0.85rem;
        margin-bottom: 0.65rem;
    }

    .task-card:hover {
        transform: none; /* Remove transform no mobile para não interferir com scroll */
    }

    .task-title {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .task-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }

    .task-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.45rem;
    }

    /* Checkbox maior para touch */
    .task-checkbox {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    /* Modal de criação/edição */
    .task-modal {
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 2rem);
        max-height: calc(100dvh - 2rem);
        margin: 0.5rem;
        border-radius: 12px;
    }

    .task-modal-header {
        padding: 1.2rem;
    }

    .task-modal-title {
        font-size: 1.1rem;
    }

    .task-modal-body {
        padding: 1.2rem;
    }

    .task-form-label {
        font-size: 0.85rem;
    }

    .task-form-input,
    .task-form-textarea,
    .task-form-select {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .task-form-textarea {
        min-height: 90px;
    }

    /* Priority selector em coluna */
    .priority-selector {
        flex-direction: column;
        gap: 0.65rem;
    }

    .priority-option {
        padding: 0.85rem;
        flex-direction: row;
        justify-content: center;
    }

    .priority-option i {
        font-size: 1.3rem;
    }

    .priority-option span {
        font-size: 0.85rem;
    }

    /* Assignees list */
    .assignees-list {
        padding: 0.7rem;
    }

    .assignee-option {
        padding: 0.6rem;
    }

    .assignee-name {
        font-size: 0.85rem;
    }

    /* Footer com botões stack */
    .task-modal-footer {
        padding: 1.2rem;
        flex-direction: column;
        gap: 0.65rem;
    }

    .btn-task {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Empty state */
    .tasks-empty {
        padding: 2rem 1rem;
    }

    .tasks-empty i {
        font-size: 2.5rem;
    }

    .tasks-empty p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Botão de tarefas - igual aos outros */
    .btn-tasks {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .btn-tasks i {
        font-size: 0.9rem;
    }

    /* Badge sempre visível */
    .tasks-badge {
        top: -6px;
        right: -6px;
        font-size: 0.65rem;
        padding: 0.12rem 0.35rem;
        min-width: 18px;
    }

    /* Dropdown ainda mais compacto */
    .tasks-dropdown {
        top: 60px;
        left: 0.25rem;
        right: 0.25rem;
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
    }

    .tasks-dropdown-header {
        padding: 0.85rem;
    }

    .tasks-dropdown-title {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .tasks-dropdown-title i {
        font-size: 1rem;
    }

    .btn-new-task {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .btn-new-task i {
        font-size: 0.85rem;
    }

    /* Filtros */
    .tasks-filters {
        padding: 0.75rem 0.85rem;
    }

    .tasks-toggle button {
        padding: 0.55rem 0.4rem;
        font-size: 0.8rem;
    }

    .tasks-status-filter {
        font-size: 0.8rem;
    }

    /* Lista de tarefas - ocupa máximo possível */
    .tasks-list {
        padding: 0.75rem 0.85rem;
        max-height: calc(100vh - 280px);
        max-height: calc(100dvh - 280px);
        flex: 1;
    }

    /* Task cards */
    .task-card {
        padding: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .task-card-header {
        gap: 0.6rem;
    }

    .task-title {
        font-size: 0.85rem;
    }

    .task-meta {
        gap: 0.45rem;
        font-size: 0.7rem;
    }

    .task-meta-item i {
        font-size: 0.7rem;
    }

    .task-priority-icon {
        font-size: 0.75rem;
    }

    /* Modal */
    .task-modal {
        max-width: calc(100vw - 0.5rem);
        margin: 0.25rem;
    }

    .task-modal-header {
        padding: 1rem;
    }

    .task-modal-title {
        font-size: 1rem;
    }

    .task-modal-body {
        padding: 1rem;
    }

    .task-form-group {
        margin-bottom: 1rem;
    }

    .task-form-label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .task-form-input,
    .task-form-textarea,
    .task-form-select {
        padding: 0.65rem;
        font-size: 0.85rem;
    }

    .task-form-textarea {
        min-height: 80px;
    }

    .priority-option {
        padding: 0.75rem;
    }

    .priority-option i {
        font-size: 1.2rem;
    }

    .priority-option span {
        font-size: 0.8rem;
    }

    .assignee-option {
        padding: 0.5rem;
    }

    .assignee-name {
        font-size: 0.8rem;
    }

    .task-modal-footer {
        padding: 1rem;
    }

    .btn-task {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Empty state */
    .tasks-empty {
        padding: 1.5rem 0.75rem;
    }

    .tasks-empty i {
        font-size: 2rem;
    }

    .tasks-empty p {
        font-size: 0.85rem;
    }

    /* Footer */
    .tasks-footer {
        padding: 0.65rem 1rem;
    }

    .tasks-footer a {
        font-size: 0.8rem;
    }
}

/* ===========================
   MODAL DE DETALHES - PHASE 2
   =========================== */

.task-detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.task-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.task-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.task-detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-priority-badge {
    font-size: 1.2rem;
}

.task-priority-badge.alta {
    color: var(--neon-red);
}

.task-priority-badge.media {
    color: var(--neon-yellow);
}

.task-priority-badge.baixa {
    color: var(--neon-green);
}

/* Grid de informações */
.task-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.task-detail-value.code-link {
    color: var(--neon-blue);
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.task-detail-value.code-link:hover {
    color: var(--neon-purple);
}

.task-assignees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.assignee-badge {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 600;
}

.task-description {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.task-description.empty {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* ===========================
   SISTEMA DE COMENTÁRIOS
   =========================== */

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comments-container::-webkit-scrollbar {
    width: 6px;
}

.comments-container::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.comment-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--neon-blue);
    border-radius: 5px;
    animation: commentSlideIn 0.3s ease-out;
}

@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--neon-blue);
    font-size: 0.85rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.comments-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.comments-empty i {
    font-size: 2rem;
    color: var(--glass-border);
    margin-bottom: 0.5rem;
}

.comments-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.comments-loading i {
    font-size: 1.5rem;
    color: var(--neon-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Input de comentários */
.comment-input-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.comment-input {
    flex: 1;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: none;
    min-height: 80px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.comment-input::placeholder {
    color: var(--text-secondary);
}

.btn-send-comment {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-end;
}

.btn-send-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-send-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================
   LISTA DE ANEXOS
   =========================== */

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.attachments-list::-webkit-scrollbar {
    width: 6px;
}

.attachments-list::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-blue);
}

.attachment-icon {
    font-size: 1.5rem;
    color: var(--neon-blue);
}

.attachment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attachment-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.attachment-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.attachment-download {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attachment-download:hover {
    background: var(--neon-blue);
    color: white;
    transform: translateY(-2px);
}

.attachments-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===========================
   BOTÕES DE AÇÃO - DETALHES
   =========================== */

.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
}

.btn-task-action {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-task-action.transfer {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(153, 69, 255, 0.3));
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
}

.btn-task-action.transfer:hover {
    background: var(--neon-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 69, 255, 0.4);
}

.btn-task-action.attach {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.3));
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
}

.btn-task-action.attach:hover {
    background: var(--neon-yellow);
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-task-action.not-feasible {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.2), rgba(255, 0, 85, 0.3));
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.btn-task-action.not-feasible:hover {
    background: var(--neon-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.4);
}

.btn-task-action.complete {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.3));
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.btn-task-action.complete:hover {
    background: var(--neon-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* ===========================
   MODAL DE TRANSFERÊNCIA
   =========================== */

.transfer-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.transfer-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.transfer-modal {
    background: rgba(10, 14, 26, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

.transfer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.transfer-list::-webkit-scrollbar {
    width: 6px;
}

.transfer-list::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 3px;
}

/* ===========================
   MODAL DE ANEXOS
   =========================== */

.attachments-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.attachments-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.attachments-modal {
    background: rgba(10, 14, 26, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

.file-upload-area {
    padding: 2rem;
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    text-align: center;
    margin: 1rem;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--neon-yellow);
    background: rgba(255, 215, 0, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--neon-yellow);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-input {
    display: none;
}

.btn-select-file {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--neon-yellow), #ffa500);
    color: #111827;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-select-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.file-preview {
    margin: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: none;
}

.file-preview.active {
    display: block;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.file-preview-icon {
    font-size: 2rem;
    color: var(--neon-yellow);
}

.file-preview-details {
    flex: 1;
}

.file-preview-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
}

.file-preview-size {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-upload-file {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--neon-yellow), #ffa500);
    color: #111827;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-upload-file:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================
   RESPONSIVIDADE - PHASE 2
   =========================== */

@media (max-width: 768px) {
    /* Modal de detalhes */
    .task-detail-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .task-detail-header {
        gap: 0.6rem;
        margin-bottom: 0.85rem;
    }

    .task-detail-title {
        font-size: 1rem;
        gap: 0.4rem;
        line-height: 1.4;
    }

    .task-priority-badge {
        font-size: 1.1rem;
    }

    /* Grid em 1 coluna */
    .task-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .task-detail-label {
        font-size: 0.7rem;
    }

    .task-detail-value {
        font-size: 0.85rem;
    }

    /* Assignees badges */
    .task-assignees-list {
        gap: 0.4rem;
    }

    .assignee-badge {
        padding: 0.3rem 0.65rem;
        font-size: 0.75rem;
    }

    /* Description */
    .task-description {
        padding: 0.85rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Comentários */
    .comments-container {
        max-height: 250px;
        padding: 0.85rem;
        gap: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .comment-item {
        padding: 0.65rem;
        gap: 0.4rem;
    }

    .comment-author {
        font-size: 0.8rem;
    }

    .comment-time {
        font-size: 0.7rem;
    }

    .comment-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .comments-empty,
    .comments-loading {
        padding: 1.5rem;
    }

    .comments-empty i {
        font-size: 1.8rem;
    }

    .comments-empty p {
        font-size: 0.85rem;
    }

    /* Input de comentários */
    .comment-input-container {
        gap: 0.65rem;
        margin-top: 0.85rem;
    }

    .comment-input {
        padding: 0.65rem;
        font-size: 0.85rem;
        min-height: 70px;
    }

    .btn-send-comment {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        align-self: stretch;
        min-height: 44px; /* iOS touch target */
    }

    /* Anexos */
    .attachments-list {
        padding: 0.85rem;
        gap: 0.4rem;
        max-height: 180px;
    }

    .attachment-item {
        padding: 0.65rem;
        gap: 0.6rem;
    }

    .attachment-icon {
        font-size: 1.3rem;
    }

    .attachment-name {
        font-size: 0.85rem;
    }

    .attachment-meta {
        font-size: 0.7rem;
    }

    .attachment-download {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .attachments-empty {
        padding: 1.25rem;
        font-size: 0.85rem;
    }

    /* Botões de ação */
    .task-actions {
        gap: 0.65rem;
        padding-top: 0.85rem;
    }

    .btn-task-action {
        flex: 1 1 calc(50% - 0.35rem); /* 2 colunas no tablet */
        min-width: 140px;
        padding: 0.7rem 0.85rem;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* Transfer modal */
    .transfer-modal,
    .attachments-modal {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem;
        border-radius: 12px;
    }

    .transfer-list {
        padding: 0.85rem;
        max-height: 280px;
    }

    /* Attachments modal */
    .file-upload-area {
        padding: 1.75rem;
        margin: 1rem;
    }

    .file-upload-icon {
        font-size: 2.5rem;
        margin-bottom: 0.85rem;
    }

    .file-upload-text {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .file-upload-hint {
        font-size: 0.8rem;
    }

    .btn-select-file {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        margin-top: 0.85rem;
    }

    .file-preview {
        margin: 1rem;
        padding: 0.85rem;
    }

    .file-preview-info {
        gap: 0.65rem;
        margin-bottom: 0.85rem;
    }

    .file-preview-icon {
        font-size: 1.8rem;
    }

    .file-preview-name {
        font-size: 0.85rem;
    }

    .file-preview-size {
        font-size: 0.75rem;
    }

    .btn-upload-file {
        padding: 0.7rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    /* Modal de detalhes */
    .task-detail-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .task-detail-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .task-detail-title {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .task-priority-badge {
        font-size: 1rem;
    }

    .task-detail-grid {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .task-detail-label {
        font-size: 0.65rem;
    }

    .task-detail-value {
        font-size: 0.8rem;
    }

    .task-assignees-list {
        gap: 0.35rem;
    }

    .assignee-badge {
        padding: 0.25rem 0.55rem;
        font-size: 0.7rem;
    }

    .task-description {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    /* Comentários mais compactos */
    .comments-container {
        max-height: 200px;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .comment-item {
        padding: 0.55rem;
        gap: 0.35rem;
    }

    .comment-author {
        font-size: 0.75rem;
    }

    .comment-time {
        font-size: 0.65rem;
    }

    .comment-text {
        font-size: 0.8rem;
    }

    .comments-empty,
    .comments-loading {
        padding: 1.25rem 0.75rem;
    }

    .comments-empty i {
        font-size: 1.5rem;
    }

    .comments-empty p {
        font-size: 0.8rem;
    }

    /* Input comentários */
    .comment-input-container {
        flex-direction: column;
        gap: 0.6rem;
    }

    .comment-input {
        padding: 0.6rem;
        font-size: 0.8rem;
        min-height: 65px;
    }

    .btn-send-comment {
        width: 100%;
        padding: 0.65rem;
        font-size: 0.8rem;
    }

    /* Anexos */
    .attachments-list {
        padding: 0.75rem;
        max-height: 150px;
    }

    .attachment-item {
        padding: 0.6rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .attachment-icon {
        font-size: 1.2rem;
    }

    .attachment-info {
        flex: 1;
        min-width: 150px;
    }

    .attachment-name {
        font-size: 0.8rem;
    }

    .attachment-meta {
        font-size: 0.65rem;
    }

    .attachment-download {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.75rem;
        justify-content: center;
    }

    .attachments-empty {
        padding: 1rem;
        font-size: 0.8rem;
    }

    /* Botões de ação - stack vertical no mobile */
    .task-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-task-action {
        width: 100%;
        min-width: auto;
        padding: 0.7rem 0.85rem;
        font-size: 0.8rem;
    }

    /* Transfer modal */
    .transfer-modal,
    .attachments-modal {
        max-width: calc(100vw - 0.5rem);
        margin: 0.25rem;
    }

    .transfer-list {
        padding: 0.75rem;
        gap: 0.4rem;
        max-height: 250px;
    }

    /* Attachments modal */
    .file-upload-area {
        padding: 1.5rem 1rem;
        margin: 0.75rem;
    }

    .file-upload-icon {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .file-upload-text {
        font-size: 0.85rem;
    }

    .file-upload-hint {
        font-size: 0.75rem;
    }

    .btn-select-file {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .file-preview {
        margin: 0.75rem;
        padding: 0.75rem;
    }

    .file-preview-info {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .file-preview-icon {
        font-size: 1.6rem;
    }

    .file-preview-name {
        font-size: 0.8rem;
    }

    .file-preview-size {
        font-size: 0.7rem;
    }

    .btn-upload-file {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   ADMIN ACCESS PANEL
   =========================== */

.admin-access-panel {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    margin: 0.75rem;
    padding: 0.75rem;
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
}

.admin-access-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-access-header i {
    font-size: 0.75rem;
}

.admin-access-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-access-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.admin-access-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-access-item.online {
    background: rgba(0, 255, 136, 0.08);
}

.admin-access-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 212, 255, 0.2);
    position: relative;
    flex-shrink: 0;
}

.admin-access-avatar .online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 255, 136, 0);
    }
}

.admin-access-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.admin-access-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-access-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.admin-access-item.online .admin-access-time {
    color: var(--neon-green);
}

.admin-access-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-access-item:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(3px);
}

.admin-pending-count {
    background: var(--neon-blue);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.admin-access-empty {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Scrollbar customizada para lista de acesso */
.admin-access-list::-webkit-scrollbar {
    width: 4px;
}

.admin-access-list::-webkit-scrollbar-track {
    background: transparent;
}

.admin-access-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.admin-access-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Responsividade */
@media (max-width: 480px) {
    .admin-access-panel {
        margin: 0.5rem;
        padding: 0.5rem;
    }

    .admin-access-avatar {
        width: 28px;
        height: 28px;
    }

    .admin-access-name {
        font-size: 0.75rem;
    }

    .admin-access-time {
        font-size: 0.65rem;
    }
}
