        /* Botões de Ação */
   

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            touch-action: manipulation;
        }

        .btn-clear {
            background: linear-gradient(135deg, #ff6b6b, #ee5a52);
            color: white;
        }

        .btn-save {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .btn:active {
            transform: translateY(0);
        }


.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 5px;
    border: 3px solid #ddd;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.tool-btn:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.tool-btn.active {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.tool-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.tool-btn span:last-child {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

   
    .toggle-button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.toggle-button:hover {
    background-color: #0056b3;
}


#logoutBtn {
    padding: 8px 16px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#logoutBtn:hover {
    background: #ff3838;
}

.btn-save-work {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-load-work {
    background: linear-gradient(45deg, #17a2b8, #6f42c1);
    color: white;
}

.btn-save-work:hover {
    background: linear-gradient(45deg, #218838, #1e9e8a);
}

.btn-load-work:hover {
    background: linear-gradient(45deg, #138496, #5a32a3);
}

.save-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff !important;
}

.tool-btn.flash-feedback {
  transition: none !important;
}
@keyframes undoFlash {
  0%   { transform: scale(1);   filter: brightness(1); }
  40%  { transform: scale(1.15); filter: brightness(1.4); }
  100% { transform: scale(1);   filter: brightness(1); }
}

.flash-feedback {
  animation: undoFlash 240ms ease-out;
}

.recent-title {
  margin: 8px 0 4px;
  font-size: 0.9rem;
  color: #555;
}


/* Ações do Plano (Botões) */
.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-button {
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

/* Estilos específicos para botões de período */
.plan-button-monthly {
    background: #2196F3;
}

.plan-button-monthly:hover {
    background: #1976D2;
}

.plan-button-semiannual {
    background: #FF9800;
}

.plan-button-semiannual:hover {
    background: #F57C00;
}

.plan-button-annual {
    background: #4CAF50;
}

.plan-button-annual:hover {
    background: #388E3C;
}

.plan-button-free {
    background: #4CAF50;
    color: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    cursor: default;
    /* Não é um botão clicável */
}

.close-button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    /* Garante alinhamento vertical correto do 'X' */
}


/* ===== BARRA DE AÇÕES ===== */

.control-section .action-buttons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

.control-section .action-buttons .btn {
    min-width: 0;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 6px 2px;
    border: none;
    border-radius: 10px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.control-section .action-buttons .btn-icon {
    display: block;
    font-size: 15px;
    line-height: 1;
    margin: 0;
}

.control-section .action-buttons .btn-text {
    display: block;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

@media (max-width: 640px) {
    .control-section .action-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .control-section .action-buttons .btn {
        height: 42px;
        min-height: 42px;
        padding: 4px 2px;
        border-radius: 8px;
    }

    .control-section .action-buttons .btn-icon {
        font-size: 14px;
    }

    .control-section .action-buttons .btn-text {
        font-size: 8px;
    }
}